]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: qla2xxx: edif: Fix clang warning
authorQuinn Tran <qutran@marvell.com>
Thu, 22 Dec 2022 04:39:31 +0000 (20:39 -0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 14 Mar 2023 15:46:39 +0000 (16:46 +0100)
commit6ebed90fb2ceba36257be581193f26d4b974d18a
tree7c111e5b4864fa9a49ec7a78a87ee1f7a1118572
parente5287ed25a0c0186d14e3a87d901a99e996cad7d
scsi: qla2xxx: edif: Fix clang warning

BugLink: https://bugs.launchpad.net/bugs/2011425
[ Upstream commit 2f5fab1b6c3a8efc93ba52c28539c45a8d0142ad ]

clang warning:

  drivers/scsi/qla2xxx/qla_edif_bsg.h:93:12: warning: field remote_pid
  within 'struct app_pinfo_req' is less aligned than 'port_id_t' and is
  usually due to 'struct app_pinfo_req' being packed, which can lead to
  unaligned accesses [-Wunaligned-access]
  port_id_t remote_pid;
        ^
  2 warnings generated.

Remove u32 field in remote_pid to silence warning.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 7ebb336e45ef ("scsi: qla2xxx: edif: Add start + stop bsgs")
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/scsi/qla2xxx/qla_edif.c
drivers/scsi/qla2xxx/qla_edif_bsg.h