]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: lpfc: Fix incorrect big endian type assignment in bsg loopback path
authorJustin Tee <justintee8345@gmail.com>
Wed, 14 Jun 2023 17:59:44 +0000 (10:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:29 +0000 (12:22 +0200)
commitfa05aea2819542c35fbfe6ec6694b962991e14f6
treeff61d2c8eea6191a98894a736e780b4576643c3a
parentf0bf8a0711348f7582eb3992a9afb246430b81e3
scsi: lpfc: Fix incorrect big endian type assignment in bsg loopback path

[ Upstream commit 9cefd6e7e0a77b0fbca5c793f6fb6821b0962775 ]

The kernel test robot reported sparse warnings regarding incorrect type
assignment for __be16 variables in bsg loopback path.

Change the flagged lines to use the be16_to_cpu() and cpu_to_be16() macros
appropriately.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20230614175944.3577-1-justintee8345@gmail.com
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202306110819.sDIKiGgg-lkp@intel.com/
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/lpfc/lpfc_bsg.c