Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: trigger: stm32-lptimer: Fix build warnings about export.h

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/iio/trigger/stm32-lptimer-trigger.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://patch.msgid.link/20250610124855.269158-5-antonio.borneo@foss.st.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Antonio Borneo and committed by
Jonathan Cameron
d657e251 2628736b

+1
+1
drivers/iio/trigger/stm32-lptimer-trigger.c
··· 9 9 * Inspired by Benjamin Gaignard's stm32-timer-trigger driver 10 10 */ 11 11 12 + #include <linux/export.h> 12 13 #include <linux/iio/timer/stm32-lptim-trigger.h> 13 14 #include <linux/mfd/stm32-lptimer.h> 14 15 #include <linux/mod_devicetable.h>