Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip: loongson-eiointc: Add explicit include for cpuhotplug.h

Removing the include of cpu.h from of_device.h causes an error:

drivers/irqchip/irq-loongson-eiointc.c:420:9: error: implicit declaration of function 'cpuhp_setup_state_nocalls' [-Werror=implicit-function-declaration]

This driver doesn't even use DT, so all the DT includes can be dropped.

Link: https://lore.kernel.org/r/20230329-dt-cpu-header-cleanups-v1-17-581e2605fe47@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>

+1 -4
+1 -4
drivers/irqchip/irq-loongson-eiointc.c
··· 7 7 8 8 #define pr_fmt(fmt) "eiointc: " fmt 9 9 10 + #include <linux/cpuhotplug.h> 10 11 #include <linux/interrupt.h> 11 12 #include <linux/irq.h> 12 13 #include <linux/irqchip.h> 13 14 #include <linux/irqdomain.h> 14 15 #include <linux/irqchip/chained_irq.h> 15 16 #include <linux/kernel.h> 16 - #include <linux/platform_device.h> 17 - #include <linux/of_address.h> 18 - #include <linux/of_irq.h> 19 - #include <linux/of_platform.h> 20 17 #include <linux/syscore_ops.h> 21 18 22 19 #define EIOINTC_REG_NODEMAP 0x14a0