* [PATCH] iio: chemical: cleanup codestyle warning
@ 2026-07-23 16:10 Adi Nata
2026-07-23 21:51 ` Joshua Crofts
0 siblings, 1 reply; 6+ messages in thread
From: Adi Nata @ 2026-07-23 16:10 UTC (permalink / raw)
To: jic23, dlechner, nuno.sa, andy, mazziesaccount,
adinata.softwareengineer, email, u.kleine-koenig, linux-iio,
linux-kernel
Cc: linux-kernel-mentees
Reported by checkpatch:
FILE: drivers/iio/chemical/ccs811.c
WARNING: Prefer __packed over __attribute__((__packed__))
+} __attribute__((__packed__));
Signed-off-by: Adi Nata <adinata.softwareengineer@gmail.com>
---
drivers/iio/chemical/ccs811.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/chemical/ccs811.c b/drivers/iio/chemical/ccs811.c
index ce7187ccd706..0e5c79b775a2 100644
--- a/drivers/iio/chemical/ccs811.c
+++ b/drivers/iio/chemical/ccs811.c
@@ -70,7 +70,7 @@ struct ccs811_reading {
u8 status;
u8 error;
__be16 raw_data;
-} __attribute__((__packed__));
+} __packed;
struct ccs811_data {
struct i2c_client *client;
--
2.47.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] iio: chemical: cleanup codestyle warning
2026-07-23 16:10 [PATCH] iio: chemical: cleanup codestyle warning Adi Nata
@ 2026-07-23 21:51 ` Joshua Crofts
2026-07-23 21:53 ` Joshua Crofts
0 siblings, 1 reply; 6+ messages in thread
From: Joshua Crofts @ 2026-07-23 21:51 UTC (permalink / raw)
To: Adi Nata
Cc: jic23, dlechner, nuno.sa, andy, mazziesaccount, email,
u.kleine-koenig, linux-iio, linux-kernel, linux-kernel-mentees
On Fri, 24 Jul 2026 00:10:38 +0800
Adi Nata <adinata.softwareengineer@gmail.com> wrote:
> Reported by checkpatch:
> FILE: drivers/iio/chemical/ccs811.c
>
> WARNING: Prefer __packed over __attribute__((__packed__))
> +} __attribute__((__packed__));
Perhaps a nit, but I'd change the commit title to "prefer __packed"
and the commit message to something like:
"Change instance of __attribute__((__packed__)) to __packed per
checkpatch.pl warning.
Other than that:
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
>
> Signed-off-by: Adi Nata <adinata.softwareengineer@gmail.com>
> ---
> drivers/iio/chemical/ccs811.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/chemical/ccs811.c b/drivers/iio/chemical/ccs811.c
> index ce7187ccd706..0e5c79b775a2 100644
> --- a/drivers/iio/chemical/ccs811.c
> +++ b/drivers/iio/chemical/ccs811.c
> @@ -70,7 +70,7 @@ struct ccs811_reading {
> u8 status;
> u8 error;
> __be16 raw_data;
> -} __attribute__((__packed__));
> +} __packed;
>
> struct ccs811_data {
> struct i2c_client *client;
--
Kind regards,
Joshua Crofts
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] iio: chemical: cleanup codestyle warning
2026-07-23 21:51 ` Joshua Crofts
@ 2026-07-23 21:53 ` Joshua Crofts
2026-08-02 2:25 ` [PATCH v2] iio: chemical: ccs811: cleanup checkpatch __packed warning Adi Nata
0 siblings, 1 reply; 6+ messages in thread
From: Joshua Crofts @ 2026-07-23 21:53 UTC (permalink / raw)
To: Adi Nata
Cc: jic23, dlechner, nuno.sa, andy, mazziesaccount, email,
u.kleine-koenig, linux-iio, linux-kernel, linux-kernel-mentees
On Thu, 23 Jul 2026 23:51:39 +0200
Joshua Crofts <joshua.crofts1@gmail.com> wrote:
> On Fri, 24 Jul 2026 00:10:38 +0800
> Adi Nata <adinata.softwareengineer@gmail.com> wrote:
>
> > Reported by checkpatch:
> > FILE: drivers/iio/chemical/ccs811.c
> >
> > WARNING: Prefer __packed over __attribute__((__packed__))
> > +} __attribute__((__packed__));
>
> Perhaps a nit, but I'd change the commit title to "prefer __packed"
> and the commit message to something like:
>
> "Change instance of __attribute__((__packed__)) to __packed per
> checkpatch.pl warning.
>
> Other than that:
>
> Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
Additionally, you're missing the driver name in the subject/commit
message, it should be something like "iio: chemical: ccs811: prefer __packed"
--
Kind regards,
Joshua Crofts
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2] iio: chemical: ccs811: cleanup checkpatch __packed warning
2026-07-23 21:53 ` Joshua Crofts
@ 2026-08-02 2:25 ` Adi Nata
2026-08-02 15:14 ` David Lechner
2026-08-02 16:48 ` Jonathan Cameron
0 siblings, 2 replies; 6+ messages in thread
From: Adi Nata @ 2026-08-02 2:25 UTC (permalink / raw)
To: joshua.crofts1, jic23, dlechner, nuno.sa, andy, u.kleine-koenig,
email, adinata.softwareengineer, mazziesaccount, linux-iio,
linux-kernel
Cc: linux-kernel-mentees
Change instance of __attribute__((__packed__)) to __packed per
checkpatch.pl warning.
Reported by checkpatch:
FILE: drivers/iio/chemical/ccs811.c
WARNING: Prefer __packed over __attribute__((__packed__))
+} __attribute__((__packed__));
Signed-off-by: Adi Nata <adinata.softwareengineer@gmail.com>
v2:
- Rename commit message to include driver name
---
drivers/iio/chemical/ccs811.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/chemical/ccs811.c b/drivers/iio/chemical/ccs811.c
index ce7187ccd706..0e5c79b775a2 100644
--- a/drivers/iio/chemical/ccs811.c
+++ b/drivers/iio/chemical/ccs811.c
@@ -70,7 +70,7 @@ struct ccs811_reading {
u8 status;
u8 error;
__be16 raw_data;
-} __attribute__((__packed__));
+} __packed;
struct ccs811_data {
struct i2c_client *client;
--
2.47.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2] iio: chemical: ccs811: cleanup checkpatch __packed warning
2026-08-02 2:25 ` [PATCH v2] iio: chemical: ccs811: cleanup checkpatch __packed warning Adi Nata
@ 2026-08-02 15:14 ` David Lechner
2026-08-02 16:48 ` Jonathan Cameron
1 sibling, 0 replies; 6+ messages in thread
From: David Lechner @ 2026-08-02 15:14 UTC (permalink / raw)
To: Adi Nata, joshua.crofts1, jic23, nuno.sa, andy, u.kleine-koenig,
email, mazziesaccount, linux-iio, linux-kernel
Cc: linux-kernel-mentees
On 8/1/26 9:25 PM, Adi Nata wrote:
> Change instance of __attribute__((__packed__)) to __packed per
> checkpatch.pl warning.
>
> Reported by checkpatch:
> FILE: drivers/iio/chemical/ccs811.c
This same feedback applies to all of the other patches you have been
sending. Making checkpatch happy is not a good reason on it's own.
Find out the reason why checkpatch makes this suggestion in the first
place and use that as the justification for such changes.
>
> WARNING: Prefer __packed over __attribute__((__packed__))
> +} __attribute__((__packed__));
>
> Signed-off-by: Adi Nata <adinata.softwareengineer@gmail.com>
>
> v2:
> - Rename commit message to include driver name
>
> ---
> drivers/iio/chemical/ccs811.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/chemical/ccs811.c b/drivers/iio/chemical/ccs811.c
> index ce7187ccd706..0e5c79b775a2 100644
> --- a/drivers/iio/chemical/ccs811.c
> +++ b/drivers/iio/chemical/ccs811.c
> @@ -70,7 +70,7 @@ struct ccs811_reading {
> u8 status;
> u8 error;
> __be16 raw_data;
> -} __attribute__((__packed__));
> +} __packed;
>
> struct ccs811_data {
> struct i2c_client *client;
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2] iio: chemical: ccs811: cleanup checkpatch __packed warning
2026-08-02 2:25 ` [PATCH v2] iio: chemical: ccs811: cleanup checkpatch __packed warning Adi Nata
2026-08-02 15:14 ` David Lechner
@ 2026-08-02 16:48 ` Jonathan Cameron
1 sibling, 0 replies; 6+ messages in thread
From: Jonathan Cameron @ 2026-08-02 16:48 UTC (permalink / raw)
To: Adi Nata
Cc: joshua.crofts1, dlechner, nuno.sa, andy, u.kleine-koenig, email,
mazziesaccount, linux-iio, linux-kernel, linux-kernel-mentees
On Sun, 2 Aug 2026 10:25:56 +0800
Adi Nata <adinata.softwareengineer@gmail.com> wrote:
> Change instance of __attribute__((__packed__)) to __packed per
> checkpatch.pl warning.
>
> Reported by checkpatch:
> FILE: drivers/iio/chemical/ccs811.c
>
> WARNING: Prefer __packed over __attribute__((__packed__))
> +} __attribute__((__packed__));
>
> Signed-off-by: Adi Nata <adinata.softwareengineer@gmail.com>
>
> v2:
This needs to be below the ---
Also please do not send a new version of a series in reply to
an earlier one.
1. Leads to very confusing threads if there is much discussion.
2. Means your patch is way back in any reviewers inbox as sorting
is typically be date of first mail in thread.
Thanks,
Jonathan
> - Rename commit message to include driver name
>
> ---
> drivers/iio/chemical/ccs811.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/chemical/ccs811.c b/drivers/iio/chemical/ccs811.c
> index ce7187ccd706..0e5c79b775a2 100644
> --- a/drivers/iio/chemical/ccs811.c
> +++ b/drivers/iio/chemical/ccs811.c
> @@ -70,7 +70,7 @@ struct ccs811_reading {
> u8 status;
> u8 error;
> __be16 raw_data;
> -} __attribute__((__packed__));
> +} __packed;
>
> struct ccs811_data {
> struct i2c_client *client;
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-08-02 16:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-23 16:10 [PATCH] iio: chemical: cleanup codestyle warning Adi Nata
2026-07-23 21:51 ` Joshua Crofts
2026-07-23 21:53 ` Joshua Crofts
2026-08-02 2:25 ` [PATCH v2] iio: chemical: ccs811: cleanup checkpatch __packed warning Adi Nata
2026-08-02 15:14 ` David Lechner
2026-08-02 16:48 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox