Re: drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c:229:28: warning: taking address of packed member 'csr_ops' of class or structure 'adf_hw_device_data' may result in an unaligned pointer value
From: Giovanni Cabiddu
Date: Fri Sep 03 2021 - 04:54:41 EST
On Fri, Sep 03, 2021 at 03:26:45PM +0800, kernel test robot wrote:
> >> drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c:229:28: warning: taking address of packed member 'csr_ops' of class or structure 'adf_hw_device_data' may result in an unaligned pointer value [-Waddress-of-packed-member]
> adf_gen2_init_hw_csr_ops(&hw_data->csr_ops);
> ^~~~~~~~~~~~~~~~
> 3 warnings generated.
I already sent a fix to resolve such warnings:
https://patchwork.kernel.org/project/linux-crypto/patch/20210902083459.238983-1-giovanni.cabiddu@xxxxxxxxx/
Regards,
--
Giovanni