When the GICv3 header file is used in a C file that doesn't include any of the OF stuff, we end up with a bunch of ugly warnings. Let's keep GCC quiet by adding a forward declaration.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -330,6 +330,7 @@ struct rdists { · 329 unmodified lines | |||
| 330 | }; | 330 | }; |
| 331 | 331 | ||
| 332 | struct irq_domain; | 332 | struct irq_domain; |
| 333 | struct device_node; | ||
| 333 | int its_cpu_init(void); | 334 | int its_cpu_init(void); |
| 334 | int its_init(struct device_node *node, struct rdists *rdists, | 335 | int its_init(struct device_node *node, struct rdists *rdists, |
| 335 | struct irq_domain *domain); | 336 | struct irq_domain *domain); |