summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2021-08-31 01:12:43 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-09-14 04:15:40 +0200
commit59936430e6a6acb0ef943e9306506b2e9c2e45a8 (patch)
tree7340fcbc2b7cfabafed3f46ad9d03d4e311eeaaf /arch/arm/mm
parentscsi: elx: efct: Fix void-pointer-to-enum-cast warning for efc_nport_topology (diff)
downloadlinux-59936430e6a6acb0ef943e9306506b2e9c2e45a8.tar.xz
linux-59936430e6a6acb0ef943e9306506b2e9c2e45a8.zip
scsi: lpfc: Fix CPU to/from endian warnings introduced by ELS processing
The kernel test robot reported the following sparse warning: ".../lpfc_els.c:3984:25: sparse: sparse: cast from restricted __be16" For the error being flagged, using be32_to_cpu() on a be16 data type, it was simple enough. But a review of other elements and warnings were also evaluated. This patch corrected several items in the original patch: - Using be32_to_cpu() on a be16 data type - cpu_to_le32() used on a std uint32_t (CPU) data type. Note: This is a byte array, but stored in LE layout by hardware at 32-bit boundaries. So it possibly needed conversion. - Using cpu_to_le32() on a std uint16_t and assigned to a char typeA - Using le32_to_cpu() on a le16 type - Missing cpu_to_le16() on an assignment Link: https://lore.kernel.org/r/20210830231243.6227-1-jsmart2021@gmail.com Fixes: 9064aeb2df8e ("scsi: lpfc: Add EDC ELS support") Reported-by: kernel test robot <lkp@intel.com> Co-developed-by: Justin Tee <justin.tee@broadcom.com> Signed-off-by: Justin Tee <justin.tee@broadcom.com> Signed-off-by: James Smart <jsmart2021@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'arch/arm/mm')
0 files changed, 0 insertions, 0 deletions