@@ -350,13 +350,13 @@ struct irq_domain *irq_domain_create_legacy(struct fwnode_handle *fwnode,
350350 irq_hw_number_t first_hwirq ,
351351 const struct irq_domain_ops * ops ,
352352 void * host_data );
353- extern struct irq_domain * irq_find_matching_fwspec (struct irq_fwspec * fwspec ,
354- enum irq_domain_bus_token bus_token );
355- extern void irq_set_default_host (struct irq_domain * host );
356- extern struct irq_domain * irq_get_default_host (void );
357- extern int irq_domain_alloc_descs (int virq , unsigned int nr_irqs ,
358- irq_hw_number_t hwirq , int node ,
359- const struct irq_affinity_desc * affinity );
353+ struct irq_domain * irq_find_matching_fwspec (struct irq_fwspec * fwspec ,
354+ enum irq_domain_bus_token bus_token );
355+ void irq_set_default_host (struct irq_domain * host );
356+ struct irq_domain * irq_get_default_host (void );
357+ int irq_domain_alloc_descs (int virq , unsigned int nr_irqs ,
358+ irq_hw_number_t hwirq , int node ,
359+ const struct irq_affinity_desc * affinity );
360360
361361static inline struct fwnode_handle * of_node_to_fwnode (struct device_node * node )
362362{
@@ -370,8 +370,8 @@ static inline bool is_fwnode_irqchip(const struct fwnode_handle *fwnode)
370370 return fwnode && fwnode -> ops == & irqchip_fwnode_ops ;
371371}
372372
373- extern void irq_domain_update_bus_token (struct irq_domain * domain ,
374- enum irq_domain_bus_token bus_token );
373+ void irq_domain_update_bus_token (struct irq_domain * domain ,
374+ enum irq_domain_bus_token bus_token );
375375
376376static inline
377377struct irq_domain * irq_find_matching_fwnode (struct fwnode_handle * fwnode ,
@@ -454,7 +454,7 @@ static inline struct irq_domain *irq_domain_add_nomap(struct device_node *of_nod
454454 return IS_ERR (d ) ? NULL : d ;
455455}
456456
457- extern unsigned int irq_create_direct_mapping (struct irq_domain * host );
457+ unsigned int irq_create_direct_mapping (struct irq_domain * host );
458458#endif
459459
460460static inline struct irq_domain * irq_domain_add_tree (struct device_node * of_node ,
@@ -507,29 +507,29 @@ static inline struct irq_domain *irq_domain_create_tree(struct fwnode_handle *fw
507507 return IS_ERR (d ) ? NULL : d ;
508508}
509509
510- extern void irq_domain_remove (struct irq_domain * host );
510+ void irq_domain_remove (struct irq_domain * host );
511511
512- extern int irq_domain_associate (struct irq_domain * domain , unsigned int irq ,
513- irq_hw_number_t hwirq );
514- extern void irq_domain_associate_many (struct irq_domain * domain ,
515- unsigned int irq_base ,
516- irq_hw_number_t hwirq_base , int count );
512+ int irq_domain_associate (struct irq_domain * domain , unsigned int irq ,
513+ irq_hw_number_t hwirq );
514+ void irq_domain_associate_many (struct irq_domain * domain ,
515+ unsigned int irq_base ,
516+ irq_hw_number_t hwirq_base , int count );
517517
518- extern unsigned int irq_create_mapping_affinity (struct irq_domain * host ,
519- irq_hw_number_t hwirq ,
520- const struct irq_affinity_desc * affinity );
521- extern unsigned int irq_create_fwspec_mapping (struct irq_fwspec * fwspec );
522- extern void irq_dispose_mapping (unsigned int virq );
518+ unsigned int irq_create_mapping_affinity (struct irq_domain * host ,
519+ irq_hw_number_t hwirq ,
520+ const struct irq_affinity_desc * affinity );
521+ unsigned int irq_create_fwspec_mapping (struct irq_fwspec * fwspec );
522+ void irq_dispose_mapping (unsigned int virq );
523523
524524static inline unsigned int irq_create_mapping (struct irq_domain * host ,
525525 irq_hw_number_t hwirq )
526526{
527527 return irq_create_mapping_affinity (host , hwirq , NULL );
528528}
529529
530- extern struct irq_desc * __irq_resolve_mapping (struct irq_domain * domain ,
531- irq_hw_number_t hwirq ,
532- unsigned int * irq );
530+ struct irq_desc * __irq_resolve_mapping (struct irq_domain * domain ,
531+ irq_hw_number_t hwirq ,
532+ unsigned int * irq );
533533
534534static inline struct irq_desc * irq_resolve_mapping (struct irq_domain * domain ,
535535 irq_hw_number_t hwirq )
@@ -587,19 +587,21 @@ int irq_reserve_ipi(struct irq_domain *domain, const struct cpumask *dest);
587587int irq_destroy_ipi (unsigned int irq , const struct cpumask * dest );
588588
589589/* V2 interfaces to support hierarchy IRQ domains. */
590- extern struct irq_data * irq_domain_get_irq_data (struct irq_domain * domain ,
591- unsigned int virq );
592- extern void irq_domain_set_info (struct irq_domain * domain , unsigned int virq ,
593- irq_hw_number_t hwirq ,
594- const struct irq_chip * chip ,
595- void * chip_data , irq_flow_handler_t handler ,
596- void * handler_data , const char * handler_name );
597- extern void irq_domain_reset_irq_data (struct irq_data * irq_data );
590+ struct irq_data * irq_domain_get_irq_data (struct irq_domain * domain ,
591+ unsigned int virq );
592+ void irq_domain_set_info (struct irq_domain * domain , unsigned int virq ,
593+ irq_hw_number_t hwirq ,
594+ const struct irq_chip * chip ,
595+ void * chip_data , irq_flow_handler_t handler ,
596+ void * handler_data , const char * handler_name );
597+ void irq_domain_reset_irq_data (struct irq_data * irq_data );
598598#ifdef CONFIG_IRQ_DOMAIN_HIERARCHY
599- extern struct irq_domain * irq_domain_create_hierarchy (struct irq_domain * parent ,
600- unsigned int flags , unsigned int size ,
601- struct fwnode_handle * fwnode ,
602- const struct irq_domain_ops * ops , void * host_data );
599+ struct irq_domain * irq_domain_create_hierarchy (struct irq_domain * parent ,
600+ unsigned int flags ,
601+ unsigned int size ,
602+ struct fwnode_handle * fwnode ,
603+ const struct irq_domain_ops * ops ,
604+ void * host_data );
603605
604606static inline struct irq_domain * irq_domain_add_hierarchy (struct irq_domain * parent ,
605607 unsigned int flags ,
@@ -613,13 +615,13 @@ static inline struct irq_domain *irq_domain_add_hierarchy(struct irq_domain *par
613615 ops , host_data );
614616}
615617
616- extern int __irq_domain_alloc_irqs (struct irq_domain * domain , int irq_base ,
617- unsigned int nr_irqs , int node , void * arg ,
618- bool realloc ,
619- const struct irq_affinity_desc * affinity );
620- extern void irq_domain_free_irqs (unsigned int virq , unsigned int nr_irqs );
621- extern int irq_domain_activate_irq (struct irq_data * irq_data , bool early );
622- extern void irq_domain_deactivate_irq (struct irq_data * irq_data );
618+ int __irq_domain_alloc_irqs (struct irq_domain * domain , int irq_base ,
619+ unsigned int nr_irqs , int node , void * arg ,
620+ bool realloc ,
621+ const struct irq_affinity_desc * affinity );
622+ void irq_domain_free_irqs (unsigned int virq , unsigned int nr_irqs );
623+ int irq_domain_activate_irq (struct irq_data * irq_data , bool early );
624+ void irq_domain_deactivate_irq (struct irq_data * irq_data );
623625
624626static inline int irq_domain_alloc_irqs (struct irq_domain * domain ,
625627 unsigned int nr_irqs , int node , void * arg )
@@ -628,32 +630,29 @@ static inline int irq_domain_alloc_irqs(struct irq_domain *domain,
628630 NULL );
629631}
630632
631- extern int irq_domain_alloc_irqs_hierarchy (struct irq_domain * domain ,
632- unsigned int irq_base ,
633- unsigned int nr_irqs , void * arg );
634- extern int irq_domain_set_hwirq_and_chip (struct irq_domain * domain ,
635- unsigned int virq ,
636- irq_hw_number_t hwirq ,
637- const struct irq_chip * chip ,
638- void * chip_data );
639- extern void irq_domain_free_irqs_common (struct irq_domain * domain ,
640- unsigned int virq ,
641- unsigned int nr_irqs );
642- extern void irq_domain_free_irqs_top (struct irq_domain * domain ,
643- unsigned int virq , unsigned int nr_irqs );
644-
645- extern int irq_domain_push_irq (struct irq_domain * domain , int virq , void * arg );
646- extern int irq_domain_pop_irq (struct irq_domain * domain , int virq );
647-
648- extern int irq_domain_alloc_irqs_parent (struct irq_domain * domain ,
649- unsigned int irq_base ,
650- unsigned int nr_irqs , void * arg );
651-
652- extern void irq_domain_free_irqs_parent (struct irq_domain * domain ,
653- unsigned int irq_base ,
654- unsigned int nr_irqs );
655-
656- extern int irq_domain_disconnect_hierarchy (struct irq_domain * domain ,
633+ int irq_domain_set_hwirq_and_chip (struct irq_domain * domain ,
634+ unsigned int virq ,
635+ irq_hw_number_t hwirq ,
636+ const struct irq_chip * chip ,
637+ void * chip_data );
638+ void irq_domain_free_irqs_common (struct irq_domain * domain ,
639+ unsigned int virq ,
640+ unsigned int nr_irqs );
641+ void irq_domain_free_irqs_top (struct irq_domain * domain ,
642+ unsigned int virq , unsigned int nr_irqs );
643+
644+ int irq_domain_push_irq (struct irq_domain * domain , int virq , void * arg );
645+ int irq_domain_pop_irq (struct irq_domain * domain , int virq );
646+
647+ int irq_domain_alloc_irqs_parent (struct irq_domain * domain ,
648+ unsigned int irq_base ,
649+ unsigned int nr_irqs , void * arg );
650+
651+ void irq_domain_free_irqs_parent (struct irq_domain * domain ,
652+ unsigned int irq_base ,
653+ unsigned int nr_irqs );
654+
655+ int irq_domain_disconnect_hierarchy (struct irq_domain * domain ,
657656 unsigned int virq );
658657
659658static inline bool irq_domain_is_hierarchy (struct irq_domain * domain )
0 commit comments