linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] MIPS: ralink: of: fix build of rt2880_wdt watchdog module
@ 2021-05-14 13:17 Krzysztof Kozlowski
  2021-05-14 13:48 ` Guenter Roeck
  0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2021-05-14 13:17 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck, Thomas Bogendoerfer,
	Philipp Zabel, linux-watchdog, linux-kernel, linux-mips,
	John Crispin
  Cc: Lee Jones, Krzysztof Kozlowski, kernel test robot

When rt2880_wdt watchdog driver is built as a module, the
rt_sysc_membase needs to be exported (it is being used via inlined
rt_sysc_r32):

  ERROR: modpost: "rt_sysc_membase" [drivers/watchdog/rt2880_wdt.ko] undefined!

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 arch/mips/ralink/of.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c
index 0c5de07da097..b3ce706426c4 100644
--- a/arch/mips/ralink/of.c
+++ b/arch/mips/ralink/of.c
@@ -24,6 +24,8 @@
 #include "common.h"
 
 __iomem void *rt_sysc_membase;
+EXPORT_SYMBOL_GPL(rt_sysc_membase);
+
 __iomem void *rt_memc_membase;
 
 __iomem void *plat_of_remap_node(const char *node)
-- 
2.27.0


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

end of thread, other threads:[~2021-07-05 16:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 13:17 [PATCH] MIPS: ralink: of: fix build of rt2880_wdt watchdog module Krzysztof Kozlowski
2021-05-14 13:48 ` Guenter Roeck
2021-05-14 14:04   ` Krzysztof Kozlowski
2021-07-05 15:15     ` Krzysztof Kozlowski
2021-07-05 16:08       ` Guenter Roeck
2021-07-05 16:21         ` Krzysztof Kozlowski
2021-07-05 16:32           ` Guenter Roeck
2021-05-14 18:31   ` John Crispin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).