Re: [PATCH v6 1/7] iio: ssp_sensors: cleanup codestyle warning
From: Jonathan Cameron
Date: Sun Apr 19 2026 - 13:29:09 EST
On Wed, 15 Apr 2026 10:37:43 +0530
Sanjay Chitroda <sanjayembeddedse@xxxxxxxxx> wrote:
> From: Sanjay Chitroda <sanjayembeddedse@xxxxxxxxx>
>
> Reported by checkpatch:
> FILE: drivers/iio/common/ssp_sensors/ssp_spi.c
>
> WARNING: Prefer __packed over __attribute__((__packed__))
> +} __attribute__((__packed__));
>
> Signed-off-by: Sanjay Chitroda <sanjayembeddedse@xxxxxxxxx>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
In interests of cutting down on how many patches are in flight
I'm going to pick up at least the first few patches from your series.
If another version is needed for others don't resend the ones I've
picked up.
Applied this one.
thanks,
> ---
> drivers/iio/common/ssp_sensors/ssp_spi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/iio/common/ssp_sensors/ssp_spi.c b/drivers/iio/common/ssp_sensors/ssp_spi.c
> index 6c81c0385fb5..8c1e15d61db7 100644
> --- a/drivers/iio/common/ssp_sensors/ssp_spi.c
> +++ b/drivers/iio/common/ssp_sensors/ssp_spi.c
> @@ -29,7 +29,7 @@ struct ssp_msg_header {
> __le16 length;
> __le16 options;
> __le32 data;
> -} __attribute__((__packed__));
> +} __packed;
>
> struct ssp_msg {
> u16 length;