]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: ixp4xx: include irqs.h where needed
authorArnd Bergmann <arnd@arndb.de>
Mon, 17 Jun 2019 12:24:32 +0000 (14:24 +0200)
committerOlof Johansson <olof@lixom.net>
Tue, 18 Jun 2019 10:49:44 +0000 (03:49 -0700)
Multiple ixp4xx specific files require macros from irqs.h that
were moved out from mach/irqs.h, e.g.:

arch/arm/mach-ixp4xx/vulcan-pci.c:41:19: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
arch/arm/mach-ixp4xx/vulcan-pci.c:49:10: error: implicit declaration of function 'IXP4XX_GPIO_IRQ' [-Werror,-Wimplicit-function-declaration]
                return IXP4XX_GPIO_IRQ(INTA);

Include this header in all files that failed to build because of
that.

Fixes: dc8ef8cd3a05 ("ARM: ixp4xx: Convert to SPARSE_IRQ")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-ixp4xx/goramo_mlr.c
arch/arm/mach-ixp4xx/miccpt-pci.c
arch/arm/mach-ixp4xx/omixp-setup.c
arch/arm/mach-ixp4xx/vulcan-pci.c
arch/arm/mach-ixp4xx/vulcan-setup.c

index 4d805080020e32937ceec454f5ce0dd4a8ac094c..a0e0b6b7dc5c39364a5bce02d6ecc5d99e9838e0 100644 (file)
@@ -18,6 +18,8 @@
 #include <asm/mach/pci.h>
 #include <asm/system_info.h>
 
+#include "irqs.h"
+
 #define SLOT_ETHA              0x0B    /* IDSEL = AD21 */
 #define SLOT_ETHB              0x0C    /* IDSEL = AD20 */
 #define SLOT_MPCI              0x0D    /* IDSEL = AD19 */
index d114ccd2017cebcd4d3eac80b59daeaeb8f36ebf..ca889ef068a5f3ca73f28a3a363552072a23c854 100644 (file)
@@ -25,6 +25,8 @@
 #include <mach/hardware.h>
 #include <asm/mach-types.h>
 
+#include "irqs.h"
+
 #define MAX_DEV                4
 #define IRQ_LINES      4
 
index 2d494b45437670d2ab5c8c4a366c75c43d5d5967..c02fa6f4838278047d35613866337e2718e48ca2 100644 (file)
@@ -27,6 +27,8 @@
 
 #include <mach/hardware.h>
 
+#include "irqs.h"
+
 static struct resource omixp_flash_resources[] = {
        {
                .flags  = IORESOURCE_MEM,
index a4220fa5e0c3ef7cafa6c3a93e4c5209a28ac277..6e41e5ece4e12bc4719c4da2ebcf2e5347763f78 100644 (file)
@@ -21,6 +21,8 @@
 #include <asm/mach/pci.h>
 #include <asm/mach-types.h>
 
+#include "irqs.h"
+
 /* PCI controller GPIO to IRQ pin mappings */
 #define INTA   2
 #define INTB   3
index 2c03d2f6b6479b2b1423e347b1b69998e65810a9..d2ebb7c675a8c59c311d1bbc3f04a31bdbd04455 100644 (file)
@@ -22,6 +22,8 @@
 #include <asm/mach/arch.h>
 #include <asm/mach/flash.h>
 
+#include "irqs.h"
+
 static struct flash_platform_data vulcan_flash_data = {
        .map_name       = "cfi_probe",
        .width          = 2,