public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Antonio Borneo <antonio.borneo@foss.st.com>
To: "Alexandre Torgue" <alexandre.torgue@foss.st.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Fabrice Gasnier" <fabrice.gasnier@foss.st.com>,
	"Gatien Chevallier" <gatien.chevallier@foss.st.com>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"Lee Jones" <lee@kernel.org>,
	linux-iio@vger.kernel.org, "Nuno Sá" <nuno.sa@analog.com>,
	"Olivier Moysan" <olivier.moysan@foss.st.com>
Cc: Antonio Borneo <antonio.borneo@foss.st.com>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>,
	<linux-stm32@st-md-mailman.stormreply.com>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>
Subject: [PATCH 2/5] iio: adc: stm32-dfsdm: Fix build warnings about export.h
Date: Tue, 10 Jun 2025 14:48:52 +0200	[thread overview]
Message-ID: <20250610124855.269158-3-antonio.borneo@foss.st.com> (raw)
In-Reply-To: <20250610124855.269158-1-antonio.borneo@foss.st.com>

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
warnings with W=1:

drivers/iio/adc/stm32-dfsdm-adc.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
drivers/iio/adc/stm32-dfsdm-core.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing

Fix them.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
 drivers/iio/adc/stm32-dfsdm-adc.c  | 1 +
 drivers/iio/adc/stm32-dfsdm-core.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c
index f583924eb16bb..c2d21eecafe79 100644
--- a/drivers/iio/adc/stm32-dfsdm-adc.c
+++ b/drivers/iio/adc/stm32-dfsdm-adc.c
@@ -8,6 +8,7 @@
 
 #include <linux/dmaengine.h>
 #include <linux/dma-mapping.h>
+#include <linux/export.h>
 #include <linux/iio/adc/stm32-dfsdm-adc.h>
 #include <linux/iio/backend.h>
 #include <linux/iio/buffer.h>
diff --git a/drivers/iio/adc/stm32-dfsdm-core.c b/drivers/iio/adc/stm32-dfsdm-core.c
index 041dc9ebc0482..47e2d1338e9e6 100644
--- a/drivers/iio/adc/stm32-dfsdm-core.c
+++ b/drivers/iio/adc/stm32-dfsdm-core.c
@@ -8,6 +8,7 @@
 
 #include <linux/bitfield.h>
 #include <linux/clk.h>
+#include <linux/export.h>
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>
 #include <linux/interrupt.h>
-- 
2.34.1



  parent reply	other threads:[~2025-06-10 16:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-10 12:48 [PATCH 0/5] STM32: Fix build warnings about export.h Antonio Borneo
2025-06-10 12:48 ` [PATCH 1/5] bus: stm32_firewall: " Antonio Borneo
2025-06-10 13:30   ` Gatien CHEVALLIER
2025-06-10 12:48 ` Antonio Borneo [this message]
2025-06-10 13:05   ` [PATCH 2/5] iio: adc: stm32-dfsdm: " Fabrice Gasnier
2025-06-11 16:34     ` Jonathan Cameron
2025-06-10 12:48 ` [PATCH 3/5] iio: trigger: stm32-timer: " Antonio Borneo
2025-06-10 13:05   ` Fabrice Gasnier
2025-06-11 16:36     ` Jonathan Cameron
2025-06-10 12:48 ` [PATCH 4/5] iio: trigger: stm32-lptimer: " Antonio Borneo
2025-06-10 13:05   ` Fabrice Gasnier
2025-06-11 16:37     ` Jonathan Cameron
2025-06-10 12:48 ` [PATCH 5/5] mfd: stm32-timers: " Antonio Borneo
2025-06-10 13:06   ` Fabrice Gasnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250610124855.269158-3-antonio.borneo@foss.st.com \
    --to=antonio.borneo@foss.st.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=fabrice.gasnier@foss.st.com \
    --cc=gatien.chevallier@foss.st.com \
    --cc=jic23@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=nuno.sa@analog.com \
    --cc=olivier.moysan@foss.st.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox