On 2020/12/4 15:03, Herbert Xu Wrote: > On Thu, Nov 26, 2020 at 10:18:03AM +0800, Longfang Liu wrote: >> >> diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.h >> b/drivers/crypto/hisilicon/sec2/sec_crypto.h >> index 0e933e7..712176b 100644 >> --- a/drivers/crypto/hisilicon/sec2/sec_crypto.h >> +++ b/drivers/crypto/hisilicon/sec2/sec_crypto.h >> @@ -211,6 +219,167 @@ struct sec_sqe { >> struct sec_sqe_type2 type2; >> }; >> >> +#pragma pack(4) > > Please don't use pragma pack. Instead add the attributes as > needed to each struct or member. > > Cheers, > Can I use __attribute__((aligned(n))) instead of #pragma pack(n)? 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