From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3C3970 for ; Tue, 13 Apr 2021 07:40:17 +0000 (UTC) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-221-ecZ__soQOzqGJyvfJqYHXQ-1; Tue, 13 Apr 2021 08:40:13 +0100 X-MC-Unique: ecZ__soQOzqGJyvfJqYHXQ-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 13 Apr 2021 08:40:12 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.012; Tue, 13 Apr 2021 08:40:12 +0100 From: David Laight To: 'Mitali Borkar' , "sakari.ailus@linux.intel.com" , "bingbu.cao@intel.com" , "tian.shu.qiu@intel.com" , "mchehab@kernel.org" , "gregkh@linuxfoundation.org" CC: "linux-media@vger.kernel.org" , "linux-staging@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "outreachy-kernel@googlegroups.com" , "mitali_s@me.iitr.ac.in" Subject: RE: [PATCH 2/6] staging: media: intel-ipu3: preferred __aligned(size) over __attribute__aligned(size) Thread-Topic: [PATCH 2/6] staging: media: intel-ipu3: preferred __aligned(size) over __attribute__aligned(size) Thread-Index: AQHXLyewN18t7A08NkSuo10kWluH2aqyET/A Date: Tue, 13 Apr 2021 07:40:12 +0000 Message-ID: <277be5f4da82449aaf0a635b60ad0728@AcuMS.aculab.com> References: In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: Mitali Borkar > Sent: 12 April 2021 00:09 >=20 > This patch fixes the warning identified by checkpatch.pl by replacing > __attribute__aligned(size) with __aligned(size) >=20 > Signed-off-by: Mitali Borkar > --- > .../staging/media/ipu3/include/intel-ipu3.h | 74 +++++++++---------- > 1 file changed, 37 insertions(+), 37 deletions(-) >=20 > diff --git a/drivers/staging/media/ipu3/include/intel-ipu3.h > b/drivers/staging/media/ipu3/include/intel-ipu3.h > index 589d5ccee3a7..d95ca9ebfafb 100644 > --- a/drivers/staging/media/ipu3/include/intel-ipu3.h > +++ b/drivers/staging/media/ipu3/include/intel-ipu3.h > @@ -84,7 +84,7 @@ struct ipu3_uapi_grid_config { > */ > struct ipu3_uapi_awb_raw_buffer { > =09__u8 meta_data[IPU3_UAPI_AWB_MAX_BUFFER_SIZE] > -=09=09__attribute__((aligned(32))); > +=09=09__aligned(32); > } __packed; WTF? It either has 1-byte alignment because it is just __u8, 32-byte because of the aligned(32), or 1 byte because of the outer packed. What alignment does this (and all the other) structures actually need? Specifying 'packed' isn't free. =09David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1= PT, UK Registration No: 1397386 (Wales)