lkml.org 
[lkml]   [2023]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 17/19] 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.

    Signed-off-by: Rob Herring <robh@kernel.org>
    ---
    Please ack and I will take the series via the DT tree.
    ---
    drivers/irqchip/irq-loongson-eiointc.c | 5 +----
    1 file changed, 1 insertion(+), 4 deletions(-)

    diff --git a/drivers/irqchip/irq-loongson-eiointc.c b/drivers/irqchip/irq-loongson-eiointc.c
    index d15fd38c1756..fd9d87f1470e 100644
    --- a/drivers/irqchip/irq-loongson-eiointc.c
    +++ b/drivers/irqchip/irq-loongson-eiointc.c
    @@ -7,16 +7,13 @@

    #define pr_fmt(fmt) "eiointc: " fmt

    +#include <linux/cpuhotplug.h>
    #include <linux/interrupt.h>
    #include <linux/irq.h>
    #include <linux/irqchip.h>
    #include <linux/irqdomain.h>
    #include <linux/irqchip/chained_irq.h>
    #include <linux/kernel.h>
    -#include <linux/platform_device.h>
    -#include <linux/of_address.h>
    -#include <linux/of_irq.h>
    -#include <linux/of_platform.h>
    #include <linux/syscore_ops.h>

    #define EIOINTC_REG_NODEMAP 0x14a0
    --
    2.39.2

    \
     
     \ /
      Last update: 2023-03-29 17:54    [W:2.997 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site