On 2020/12/7 11:45, Herbert Xu Wrote: > On Mon, Dec 07, 2020 at 11:43:38AM +0800, liulongfang wrote: >> >> Can I use __attribute__((aligned(n))) instead of #pragma pack(n)? > > We normally just use __aligned(n) in the kernel. > > Cheers, > I need to use "__packed __aligned(n)" to make sure the structure length is normal. Is it possible to use "__packed __aligned(n)" in the kernel? Thanks. Longfang.
- [PATCH 0/5] crypto: hisilicon - add some new algorithms Longfang Liu
- [PATCH 1/5] crypto: hisilicon/hpre - add version adapt t... Longfang Liu
- [PATCH 5/5] crypto: hisilicon/sec - fixes some coding st... Longfang Liu
- [PATCH 2/5] crypto: hisilicon/sec - add new type of sqe ... Longfang Liu
- Re: [PATCH 2/5] crypto: hisilicon/sec - add new type... Herbert Xu
- Re: [PATCH 2/5] crypto: hisilicon/sec - add new ... liulongfang
- Re: [PATCH 2/5] crypto: hisilicon/sec - add new ... liulongfang
- Re: [PATCH 2/5] crypto: hisilicon/sec - add ... Herbert Xu
- Re: [PATCH 2/5] crypto: hisilicon/sec -... liulongfang
- Re: [PATCH 2/5] crypto: hisilicon/s... Herbert Xu
- Re: [PATCH 2/5] crypto: hisilic... liulongfang
- [PATCH 4/5] crypto: hisilicon/sec - add new AEAD mode fo... Longfang Liu
- [PATCH 3/5] crypto: hisilicon/sec - add new skcipher mod... Longfang Liu
- Re: [PATCH 0/5] crypto: hisilicon - add some new algorit... Herbert Xu