OSDN Git Service

ARM: s3c: irq-s3c24xx: include headers for missing declarations
authorKrzysztof Kozlowski <krzk@kernel.org>
Sat, 6 Feb 2021 13:36:14 +0000 (14:36 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 8 Feb 2021 17:09:30 +0000 (18:09 +0100)
Include headers to fix W=1 build warnings:

  arch/arm/mach-s3c/irq-s3c24xx.c:389:5: warning:
    no previous prototype for ‘s3c24xx_set_fiq’ [-Wmissing-prototypes]
  arch/arm/mach-s3c/irq-s3c24xx.c:683:13: warning:
    no previous prototype for ‘s3c2410_init_irq’ [-Wmissing-prototypes]

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20210206133615.119804-1-krzk@kernel.org
arch/arm/mach-s3c/irq-s3c24xx.c

index 79b5f19..3368159 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/of.h>
 #include <linux/of_irq.h>
 #include <linux/of_address.h>
+#include <linux/spi/s3c24xx.h>
 
 #include <asm/exception.h>
 #include <asm/mach/irq.h>
@@ -32,6 +33,7 @@
 #include "cpu.h"
 #include "regs-irqtype.h"
 #include "pm.h"
+#include "s3c24xx.h"
 
 #define S3C_IRQTYPE_NONE       0
 #define S3C_IRQTYPE_EINT       1