public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Pinctrl: core: export pinctrl_provide_dummies() to fix build error
@ 2025-10-28  6:13 Gary Yang
  2025-10-28  9:49 ` Linus Walleij
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Yang @ 2025-10-28  6:13 UTC (permalink / raw)
  To: linus.walleij, robh, krzk+dt, conor+dt
  Cc: linux-gpio, devicetree, linux-kernel, linux-arm-kernel,
	cix-kernel-upstream, sfr, Gary Yang

If a pinctrl driver uses pinctrl_provide_dummies() interface, and

is built as a module, then an error occur as follow:

ERROR: modpost: "pinctrl_provide_dummies" [drivers/pinctrl/cix/pinctrl-sky1-base.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:147: Module.symvers] Error 1
make[1]: *** [/home/gary/workspace/upstream/kernel_upstream/Makefile:1960: modpost] Error 2
make: *** [Makefile:248: __sub-make] Error 2

Signed-off-by: Gary Yang <gary.yang@cixtech.com>
---
 drivers/pinctrl/core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index c5dbf4e9db84..acf4a86fb5cd 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -70,6 +70,7 @@ void pinctrl_provide_dummies(void)
 {
 	pinctrl_dummy_state = true;
 }
+EXPORT_SYMBOL_GPL(pinctrl_provide_dummies);
 
 const char *pinctrl_dev_get_name(struct pinctrl_dev *pctldev)
 {
-- 
2.49.0


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

end of thread, other threads:[~2025-11-05  1:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-28  6:13 [PATCH] Pinctrl: core: export pinctrl_provide_dummies() to fix build error Gary Yang
2025-10-28  9:49 ` Linus Walleij
2025-10-29  3:35   ` 回复: " Gary Yang
2025-11-04 10:49     ` Linus Walleij
2025-11-05  1:50       ` 回复: " Gary Yang

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