[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20231119134009.8015-1-chentao@kylinos.cn>
Date: Sun, 19 Nov 2023 21:40:09 +0800
From: Kunwu Chan <chentao@...inos.cn>
To: njavali@...vell.com, mrangankar@...vell.com,
GR-QLogic-Storage-Upstream@...vell.com, jejb@...ux.ibm.com,
martin.petersen@...cle.com
Cc: kunwu.chan@...mail.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org, Kunwu Chan <chentao@...inos.cn>
Subject: [PATCH] scsi: qedi: Fix warning of restricted __le32 degrades to integer in qedi_main.c
drivers/scsi/qedi/qedi_main.c:1867:37: warning: restricted __le32 degrades to integer
Signed-off-by: Kunwu Chan <chentao@...inos.cn>
---
drivers/scsi/qedi/qedi_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c
index cd0180b1f5b9..3f5b148347d2 100644
--- a/drivers/scsi/qedi/qedi_main.c
+++ b/drivers/scsi/qedi/qedi_main.c
@@ -1864,7 +1864,7 @@ void qedi_get_task_tid(struct qedi_ctx *qedi, u32 itt, s16 *tid)
u16 i;
for (i = 0; i < MAX_ISCSI_TASK_ENTRIES; i++) {
- if (qedi->itt_map[i].itt == itt) {
+ if (le32_to_cpu(qedi->itt_map[i].itt) == itt) {
*tid = i;
QEDI_INFO(&qedi->dbg_ctx, QEDI_LOG_CONN,
"Ref itt=0x%x, found at tid=0x%x\n",
--
2.34.1
Powered by blists - more mailing lists