Skip to content

Commit aa4a1d5

Browse files
Jiri Slaby (SUSE)KAGA-KOKO
authored andcommitted
irqdomain: Remove extern from function declarations
'extern' is not needed for function declarations. So remove it from irqdomain.h. Note that the declarations are now unified as some had 'extern' and some did not. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 01499ae commit aa4a1d5

File tree

1 file changed

+71
-69
lines changed

1 file changed

+71
-69
lines changed

include/linux/irqdomain.h

Lines changed: 71 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -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

361361
static 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

376376
static inline
377377
struct 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

460460
static 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

524524
static 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

534534
static 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);
587587
int 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

604606
static 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

624626
static inline int irq_domain_alloc_irqs(struct irq_domain *domain,
625627
unsigned int nr_irqs, int node, void *arg)
@@ -628,32 +630,32 @@ 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_alloc_irqs_hierarchy(struct irq_domain *domain,
634+
unsigned int irq_base,
635+
unsigned int nr_irqs, void *arg);
636+
int irq_domain_set_hwirq_and_chip(struct irq_domain *domain,
637+
unsigned int virq,
638+
irq_hw_number_t hwirq,
639+
const struct irq_chip *chip,
640+
void *chip_data);
641+
void irq_domain_free_irqs_common(struct irq_domain *domain,
642+
unsigned int virq,
643+
unsigned int nr_irqs);
644+
void irq_domain_free_irqs_top(struct irq_domain *domain,
645+
unsigned int virq, unsigned int nr_irqs);
646+
647+
int irq_domain_push_irq(struct irq_domain *domain, int virq, void *arg);
648+
int irq_domain_pop_irq(struct irq_domain *domain, int virq);
649+
650+
int irq_domain_alloc_irqs_parent(struct irq_domain *domain,
651+
unsigned int irq_base,
652+
unsigned int nr_irqs, void *arg);
653+
654+
void irq_domain_free_irqs_parent(struct irq_domain *domain,
655+
unsigned int irq_base,
656+
unsigned int nr_irqs);
657+
658+
int irq_domain_disconnect_hierarchy(struct irq_domain *domain,
657659
unsigned int virq);
658660

659661
static inline bool irq_domain_is_hierarchy(struct irq_domain *domain)

0 commit comments

Comments
 (0)