]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mfd: stm32-timers: Fix build warnings about export.h
authorAntonio Borneo <antonio.borneo@foss.st.com>
Tue, 10 Jun 2025 12:48:55 +0000 (14:48 +0200)
committerLee Jones <lee@kernel.org>
Thu, 24 Jul 2025 10:27:01 +0000 (11:27 +0100)
After commit a934a57a42f6 ("scripts/misc-check: check missing #include
<linux/export.h> when W=1") and commit 7d95680d64ac ("scripts/misc-check:
check unnecessary #include <linux/export.h> when W=1") we get the build
warning with W=1:

drivers/mfd/stm32-timers.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing

Fix it.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Acked-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20250610124855.269158-6-antonio.borneo@foss.st.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/stm32-timers.c

index e3c116ee4034ace9dffadff16621dccafe8fc4b9..b3dbc02aaf7989978c92947612b37a6596df34ed 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <linux/bitfield.h>
+#include <linux/export.h>
 #include <linux/mfd/stm32-timers.h>
 #include <linux/module.h>
 #include <linux/of_platform.h>