Linux SOC development
 help / color / mirror / Atom feed
* [PATCH] ARM: pxa: fix build breakage on PXA3xx
@ 2024-07-13  3:34 Dmitry Torokhov
  2024-07-15 11:50 ` patchwork-bot+linux-soc
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Torokhov @ 2024-07-13  3:34 UTC (permalink / raw)
  To: Arnd Bergmann, soc
  Cc: Daniel Mack, Haojian Zhuang, Robert Jarzmik, Russell King,
	Linus Walleij, linux-arm-kernel, linux-kernel

Commit 917195d6f829 ("ARM: pxa: consolidate GPIO chip platform data")
tried to reuse the same instance of platform data for PXA25x and PXA27x
GPIO controllers by moving it into arch/arm/mach-pxa/devices.c
Unfortunately this file is built for other PXA variants which resulted
in the following error:

>> arm-linux-gnueabi-ld: arch/arm/mach-pxa/devices.o:(.data+0x167c): undefined reference to `gpio_set_wake'

Fix this by using #ifdef around PXA25x and PXA27x GPIO controller device
structures and associated data.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407112039.cyyIQ3Js-lkp@intel.com/
Fixes: 917195d6f829 ("ARM: pxa: consolidate GPIO chip platform data")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 arch/arm/mach-pxa/devices.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c
index d050a4c78f97..7695cfce01a1 100644
--- a/arch/arm/mach-pxa/devices.c
+++ b/arch/arm/mach-pxa/devices.c
@@ -633,6 +633,7 @@ struct platform_device pxa27x_device_pwm1 = {
 };
 #endif /* CONFIG_PXA27x || CONFIG_PXA3xx */
 
+#if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x)
 const struct software_node pxa2xx_gpiochip_node = {
 	.name	= "gpio-pxa",
 };
@@ -684,6 +685,7 @@ struct platform_device pxa27x_device_gpio = {
 		.platform_data	= &pxa2xx_gpio_info,
 	},
 };
+#endif /* CONFIG_PXA25x || CONFIG_PXA27x */
 
 static struct resource pxa_dma_resource[] = {
 	[0] = {
-- 
2.45.2.993.g49e7a77208-goog


-- 
Dmitry

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: pxa: fix build breakage on PXA3xx
  2024-07-13  3:34 [PATCH] ARM: pxa: fix build breakage on PXA3xx Dmitry Torokhov
@ 2024-07-15 11:50 ` patchwork-bot+linux-soc
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+linux-soc @ 2024-07-15 11:50 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: soc

Hello:

This patch was applied to soc/soc.git (for-next)
by Arnd Bergmann <arnd@arndb.de>:

On Fri, 12 Jul 2024 20:34:51 -0700 you wrote:
> Commit 917195d6f829 ("ARM: pxa: consolidate GPIO chip platform data")
> tried to reuse the same instance of platform data for PXA25x and PXA27x
> GPIO controllers by moving it into arch/arm/mach-pxa/devices.c
> Unfortunately this file is built for other PXA variants which resulted
> in the following error:
> 
> >> arm-linux-gnueabi-ld: arch/arm/mach-pxa/devices.o:(.data+0x167c): undefined reference to `gpio_set_wake'
> 
> [...]

Here is the summary with links:
  - ARM: pxa: fix build breakage on PXA3xx
    https://git.kernel.org/soc/soc/c/dead06c5e110

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-15 11:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-13  3:34 [PATCH] ARM: pxa: fix build breakage on PXA3xx Dmitry Torokhov
2024-07-15 11:50 ` patchwork-bot+linux-soc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox