From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: linux-iio@vger.kernel.org
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>
Subject: [PATCH v2 1/3] iio: common: ssp_sensors: Use __packed instead of __packed__
Date: Mon, 30 Nov 2026 18:01:11 +0100 [thread overview]
Message-ID: <20261130170400.3629799-2-andriy.shevchenko@linux.intel.com> (raw)
In-Reply-To: <20261130170400.3629799-1-andriy.shevchenko@linux.intel.com>
Sparse can't recognise __packed__ as compiler attribute:
.../ssp_sensors/ssp_dev.c:30:3: warning: symbol '__packed__' was not declared. Should it be static?
Moreover it appears that the culprit commit (see Fixes tag below)
mistakenly used the non-existed keyword replacing the compiler attribute
with the exported variable named '__packed__'.
Use __packed instead of __packed__ to fix the regression and make
sparse happy.
Fixes: 74c3923344c6 ("iio: ssp_sensors: cleanup codestyle warning")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/iio/common/ssp_sensors/ssp_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/common/ssp_sensors/ssp_dev.c b/drivers/iio/common/ssp_sensors/ssp_dev.c
index 40b658d39294..456d59dc53dd 100644
--- a/drivers/iio/common/ssp_sensors/ssp_dev.c
+++ b/drivers/iio/common/ssp_sensors/ssp_dev.c
@@ -27,7 +27,7 @@ struct ssp_instruction {
__le32 a;
__le32 b;
u8 c;
-} __packed__;
+} __packed;
static const u8 ssp_magnitude_table[] = {110, 85, 171, 71, 203, 195, 0, 67,
208, 56, 175, 244, 206, 213, 0, 92, 250, 0, 55, 48, 189, 252, 171,
--
2.50.1
next prev parent reply other threads:[~2026-11-30 17:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 17:01 [PATCH v2 0/3] iio: Unify __packed use and fix a hidden regression Andy Shevchenko
2026-11-30 17:01 ` Andy Shevchenko [this message]
2026-11-30 17:01 ` [PATCH v2 2/3] iio: chemical: ccs811: Use __packed shortcut for compiler attribute Andy Shevchenko
2026-11-30 17:01 ` [PATCH v2 3/3] iio: chemical: sgp30: " Andy Shevchenko
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=20261130170400.3629799-2-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=nuno.sa@analog.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