mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] spi: loongson: Fix build warnings about export.h
@ 2025-06-08 14:29 Huacai Chen
  2025-06-09  0:40 ` Masahiro Yamada
  2025-06-09 13:40 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Huacai Chen @ 2025-06-08 14:29 UTC (permalink / raw)
  To: Masahiro Yamada, linux-kbuild, Mark Brown, Yinbo Zhu, Huacai Chen
  Cc: linux-spi, linux-kernel, Xuerui Wang, Jiaxun Yang, Huacai Chen

After commit a934a57a42f64a4 ("scripts/misc-check: check missing #include
<linux/export.h> when W=1") and 7d95680d64ac8e836c ("scripts/misc-check:
check unnecessary #include <linux/export.h> when W=1"), we get some build
warnings with W=1:

drivers/spi/spi-loongson-core.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing

So fix these build warnings for SPI/Loongson.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
---
 drivers/spi/spi-loongson-core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/spi/spi-loongson-core.c b/drivers/spi/spi-loongson-core.c
index 4fec226456d1..b46f072a0387 100644
--- a/drivers/spi/spi-loongson-core.c
+++ b/drivers/spi/spi-loongson-core.c
@@ -5,6 +5,7 @@
 #include <linux/clk.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/export.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
-- 
2.47.1


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

end of thread, other threads:[~2025-06-09 13:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-08 14:29 [PATCH] spi: loongson: Fix build warnings about export.h Huacai Chen
2025-06-09  0:40 ` Masahiro Yamada
2025-06-09 13:40 ` Mark Brown

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

all inboxes | Powered by JetHome®