ARM: exynos4: Fix build error due to 'gic_bank_offset' undeclared
Subsystems (3)
PATCH 1/2 ARM: exynos4: Fix build error due to 'gic_bank_offset' undeclared
Fix below build error:
CC arch/arm/mach-exynos/cpu.oarch/arm/mach-exynos/cpu.c: In function 'exynos4_init_irq':arch/arm/mach-exynos/cpu.c:245: error: 'gic_bank_offset' undeclared (first use in this function) arch/arm/mach-exynos/cpu.c:245: error: (Each undeclared identifier is reported only once arch/arm/mach-exynos/cpu.c:245: error: for each function it appears in.) arch/arm/mach-exynos/cpu.c:243: warning: unused variable 'bank_offset'
make[1]: *** [arch/arm/mach-exynos/cpu.o] Error 1
make: *** [arch/arm/mach-exynos] Error 2
--- arch/arm/mach-exynos/cpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-exynos/cpu.c +1 -1
@@ -240,7 +240,7 @@ static const struct of_device_id exynos4_dt_irq_match[] = {void __init exynos4_init_irq (void ) {int irq; -unsigned int bank_offset; +unsigned int gic_bank_offset; gic_bank_offset =soc_is_exynos4412 () ?0x4000 :0x8000 ;
Signature · 1 line
1.7.5.4
PATCH 2/2 ARM: exynos4: Fix build error
Trivial fix to fix below build error:
CC arch/arm/mach-exynos/mach-universal_c210.oarch/arm/mach-exynos/mach-universal_c210.c:24: error: expected identifier or '(' before '<' token
--- arch/arm/mach-exynos/mach-universal_c210.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-exynos/mach-universal_c210.c +1 -1
@@ -21,7 +21,7 @@#include <linux/mmc/host.h> #include <linux/i2c-gpio.h> #include <linux/i2c/mcs.h> - <linux/i2c/atmel_mxt_ts.h> +#include <linux/i2c/atmel_mxt_ts.h> #include <asm/mach/arch.h> #include <asm/hardware/gic.h>
Signature · 1 line
1.7.5.4
Quoted 11 lines · Axel Lin
Fix below build error:
CCarch/arm/mach-exynos/cpu.oarch/arm/mach-exynos/cpu.c: In function 'exynos4_init_irq':arch/arm/mach-exynos/cpu.c:245: error: 'gic_bank_offset' undeclared (first use in this function)arch/arm/mach-exynos/cpu.c:245: error: (Each undeclared identifier is reported only oncearch/arm/mach-exynos/cpu.c:245: error: for each function it appears in.)arch/arm/mach-exynos/cpu.c:243: warning: unused variable 'bank_offset'
make[1]: *** [arch/arm/mach-exynos/cpu.o] Error 1
make: *** [arch/arm/mach-exynos] Error 2Signed-off-by Axel Lin <[email protected]>
Arghhh... My bad. Thanks for fixing that.
Quoted 17 lines
--- arch/arm/mach-exynos/cpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-exynos/cpu.c +1
-1@@ -240,7 +240,7 @@ static const struct of_device_id exynos4_dt_irq_match[] = {void __init exynos4_init_irq (void ) {int irq; -unsigned int bank_offset; +unsigned int gic_bank_offset; gic_bank_offset =soc_is_exynos4412 () ?0x4000 :0x8000 ;
Signature · 1 line
Jazz is not dead. It just smells funny...
Quoted 14 lines · Marc Zyngier
Quoted 4 lines · Axel Lin
Fix below build error:
CCarch/arm/mach-exynos/cpu.oarch/arm/mach-exynos/cpu.c: In function 'exynos4_init_irq':arch/arm/mach-exynos/cpu.c:245: error: 'gic_bank_offset' undeclared(first use in this function)
Quoted 1 line
arch/arm/mach-exynos/cpu.c:245: error: (Each undeclared identifier isreported only once
Quoted 5 lines
arch/arm/mach-exynos/cpu.c:245: error: for each function it appears in.)arch/arm/mach-exynos/cpu.c:243: warning: unused variable 'bank_offset' make[1]: *** [arch/arm/mach-exynos/cpu.o] Error 1
make: *** [arch/arm/mach-exynos] Error 2
Quoted 6 lines
Quoted 1 line
Signed-off-by Axel Lin <[email protected]>Arghhh... My bad. Thanks for fixing that.
Acked-by Marc Zyngier <[email protected]>
Hi Marc,
Since the commit 4e44d2cb("ARM: exynos4: convert to CONFIG_MULTI_IRQ_HANDLER") is not in my tree, this should be handled in your tree and Axel's patch, "ARM: exynos4: Fix build error" is too.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
Quoted 22 lines
arch/arm/mach-exynos/cpu.c static const struct of_device_id
Quoted 9 lines
--- arch/arm/mach-exynos/cpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-exynos/cpu.c +0
-0@@ -240,7 +240,7 @@ static const struct of_device_idexynos4_dt_irq_match[] = {
arch/arm/mach-exynos/cpu.c static const struct of_device_id exynos4_dt_irq_match[] = { · line 246
Quoted 8 lines
arch/arm/mach-exynos/cpu.c +1
-1void __init exynos4_init_irq (void ) {int irq; -unsigned int bank_offset; +unsigned int gic_bank_offset; gic_bank_offset =soc_is_exynos4412 () ?0x4000 :0x8000 ;--
Jazz is not dead. It just smells funny...
Quoted 17 lines · Kukjin Kim
Quoted 16 lines · Marc Zyngier
Quoted 4 lines · Axel Lin
Fix below build error:
CCarch/arm/mach-exynos/cpu.oarch/arm/mach-exynos/cpu.c: In function 'exynos4_init_irq':arch/arm/mach-exynos/cpu.c:245: error: 'gic_bank_offset' undeclared(first use in this function)
Quoted 1 line
arch/arm/mach-exynos/cpu.c:245: error: (Each undeclared identifier isreported only once
Quoted 6 lines
arch/arm/mach-exynos/cpu.c:245: error: for each function it appears in.)arch/arm/mach-exynos/cpu.c:243: warning: unused variable 'bank_offset' make[1]: *** [arch/arm/mach-exynos/cpu.o] Error 1
make: *** [arch/arm/mach-exynos] Error 2Signed-off-by Axel Lin <[email protected]>
Quoted 7 lines
Quoted 4 lines
Arghhh... My bad. Thanks for fixing that.
Acked-by Marc Zyngier <[email protected]>Hi Marc,
Since the commit 4e44d2cb("ARM: exynos4: convert to
CONFIG_MULTI_IRQ_HANDLER") is not in my tree, this should be handled in your tree and Axel's patch, "ARM: exynos4: Fix build error" is too.
Hi Kukjin,
No problem, I'll take these through my tree and send a pull request to Russell.
Cheers,
M.
Signature · 1 line
Jazz is not dead. It just smells funny...