diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2018-10-19 02:12:50 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-10-21 04:32:07 -0400 |
commit | 0f99153def98134403c9149128e59d3e1786cf04 (patch) | |
tree | 26ee2daa74ec7b48654bdded77affe677dbf1cd6 | |
parent | b6aeddea74b08518289fc86545297cf18a0b53a7 (diff) |
powerpc/msi: Fix compile error on mpc83xx
mpic_get_primary_version() is not defined when not using MPIC.
The compile error log like:
arch/powerpc/sysdev/built-in.o: In function `fsl_of_msi_probe':
fsl_msi.c:(.text+0x150c): undefined reference to `fsl_mpic_primary_get_version'
Signed-off-by: Jia Hongtao <hongtao.jia@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Reported-by: Radu Rendec <radu.rendec@gmail.com>
Fixes: 807d38b73b6 ("powerpc/mpic: Add get_version API both for internal and external use")
Cc: stable@vger.kernel.org
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/include/asm/mpic.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/mpic.h b/arch/powerpc/include/asm/mpic.h index fad8ddd697ac..0abf2e7fd222 100644 --- a/arch/powerpc/include/asm/mpic.h +++ b/arch/powerpc/include/asm/mpic.h | |||
@@ -393,7 +393,14 @@ extern struct bus_type mpic_subsys; | |||
393 | #define MPIC_REGSET_TSI108 MPIC_REGSET(1) /* Tsi108/109 PIC */ | 393 | #define MPIC_REGSET_TSI108 MPIC_REGSET(1) /* Tsi108/109 PIC */ |
394 | 394 | ||
395 | /* Get the version of primary MPIC */ | 395 | /* Get the version of primary MPIC */ |
396 | #ifdef CONFIG_MPIC | ||
396 | extern u32 fsl_mpic_primary_get_version(void); | 397 | extern u32 fsl_mpic_primary_get_version(void); |
398 | #else | ||
399 | static inline u32 fsl_mpic_primary_get_version(void) | ||
400 | { | ||
401 | return 0; | ||
402 | } | ||
403 | #endif | ||
397 | 404 | ||
398 | /* Allocate the controller structure and setup the linux irq descs | 405 | /* Allocate the controller structure and setup the linux irq descs |
399 | * for the range if interrupts passed in. No HW initialization is | 406 | * for the range if interrupts passed in. No HW initialization is |