[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250608142737.168829-1-chenhuacai@loongson.cn>
Date: Sun, 8 Jun 2025 22:27:37 +0800
From: Huacai Chen <chenhuacai@...ngson.cn>
To: Masahiro Yamada <masahiroy@...nel.org>,
linux-kbuild@...r.kernel.org,
Takashi Iwai <tiwai@...e.com>,
Mark Brown <broonie@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>,
Huacai Chen <chenhuacai@...nel.org>
Cc: linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org,
Xuerui Wang <kernel@...0n.name>,
Jiaxun Yang <jiaxun.yang@...goat.com>,
Huacai Chen <chenhuacai@...ngson.cn>
Subject: [PATCH] ASoC: 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:
sound/soc/loongson/loongson_i2s.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
So fix these build warnings for ASoC/Loongson.
Signed-off-by: Huacai Chen <chenhuacai@...ngson.cn>
---
sound/soc/loongson/loongson_i2s.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/loongson/loongson_i2s.c b/sound/soc/loongson/loongson_i2s.c
index e8852a30f213..e336656e13eb 100644
--- a/sound/soc/loongson/loongson_i2s.c
+++ b/sound/soc/loongson/loongson_i2s.c
@@ -9,6 +9,7 @@
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
+#include <linux/export.h>
#include <linux/pm_runtime.h>
#include <linux/dma-mapping.h>
#include <sound/soc.h>
--
2.47.1
Powered by blists - more mailing lists