nvme: fix sparse warning on effects masking
PATCH 1/1 nvme: fix sparse warning on effects masking
From: Keith Busch <[email protected]>
The log entries are stored in le32, so use appropriate byte swapping macros.
Reported-by kernel test robot <[email protected]>
Signed-off-by Keith Busch <[email protected]>
--- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/core.c +1 -1
@@ -3104,7 +3104,7 @@ static void nvme_init_known_nvm_effects(struct nvme_ctrl *ctrl)* Rather than blindly freezing the IO queues for this effect that * doesn't even apply to IO, mask it off. */ - log->acs[nvme_admin_security_recv] &= ~NVME_CMD_EFFECTS_CSE_MASK ; + log->acs[nvme_admin_security_recv] &=cpu_to_le32 (~NVME_CMD_EFFECTS_CSE_MASK ); log->iocs[nvme_cmd_write] |=cpu_to_le32 (NVME_CMD_EFFECTS_LBCC ); log->iocs[nvme_cmd_write_zeroes] |=cpu_to_le32 (NVME_CMD_EFFECTS_LBCC );
Signature · 1 line
2.30.2
Quoted 9 lines · Keith Busch
From: Keith Busch <[email protected]>
The log entries are stored in le32, so use appropriate byte swapping macros.
Reported-by kernel test robot <[email protected]>Signed-off-by Keith Busch <[email protected]>---
Reviewed-by Chaitanya Kulkarni <[email protected]>
-ck
Thanks,
applied to nvme-6.3.