diff options
author | Huacai Chen <chenhuacai@loongson.cn> | 2025-06-08 22:29:39 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-06-08 23:30:04 +0100 |
commit | 1dd630088332b5b310f3dd7eaacae9f3c4465651 (patch) | |
tree | 8f7a970420be1c1dacbc102b66bdede2508ce050 | |
parent | 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff) |
spi: loongson: Fix build warnings about export.h
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>
Link: https://patch.msgid.link/20250608142939.172108-1-chenhuacai@loongson.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-loongson-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
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> |