Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1664876rdb; Sun, 19 Nov 2023 05:42:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQbbpcGlargZCbcsfH8ZT8i2BzDjA9ZvMTodijqlMM0AQ6OfYuETb8dME45Y+bJofvhpH5 X-Received: by 2002:a05:6a20:1604:b0:138:2fb8:6c48 with SMTP id l4-20020a056a20160400b001382fb86c48mr3339355pzj.8.1700401375373; Sun, 19 Nov 2023 05:42:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700401375; cv=none; d=google.com; s=arc-20160816; b=W59b4oIlK+9wu4XS9HaTrJ0yo/CMCccX8zDvvXqNJCv5uR7BeAvpbnIv3m8Se8ZFXv PtABE1QpLYi4SKr82HrKssrqi3rn6YjnlQJEeRuE1R/I9TgllspwukKU/UIaoDTksqXy fqHOc4rrEkjy8db6OY440jTX5Cm4ir5yZyhWbBrVzVzPu61k4usxTkRurxm+mEpkwIH8 4zckkw2nF+irdTFnKrYNhv0xpFoHDIfWTegrknFS0vukTB/CT1h4+Q57MZUhUOQNVcSg qk2RG2Dt29ker1mQlRN7ZqRYIdW/XHjmt+v7+JkLLY6Y9w6IBYiYSuktZfZ8/Qlde9CX pRIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=tTghsvv1TQgY3ZvmqPhS4W+sEZ2ZmHh8M/4LSeXJXOo=; fh=1ben3nZLZCB7Y+62mQ4q5Js9B1aEqskNmih1tnio0JI=; b=Mrf4km+PtGNyuuVMJ7GVFPwcUXEHMs0/h55t1cqgVtwATGOh8Ea2CBwCGC4XmekSiH 8P3iKdAijc4pMBu3t/lfb9g/3u1U+zwATMer599RRLdyYRkXzN3t8AmM5SasKcmdI71g STH5RbRYnndeUjstqUGMOOMOmIen9hDMywZHxFHVX3cgNGSbl2L2zvE2fGDX6FI1/GXp sgfavpj1mRaqsJUTucOr1kjgfwUu+fW425Q0ddfshkfWI0zr6cd+E734xKBEleBpsW36 nxgCtTCGK5YbmVyuuJOYJl6FBqZX60Avr8rhKGGFhdFj7SGPJTA0hvYQ7Hr0J7YC7UPw AMyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id a5-20020a170902ecc500b001cc467a339esi3020720plh.389.2023.11.19.05.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 05:42:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 10A9D805C72A; Sun, 19 Nov 2023 05:42:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231232AbjKSNmj (ORCPT + 99 others); Sun, 19 Nov 2023 08:42:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231260AbjKSNkn (ORCPT ); Sun, 19 Nov 2023 08:40:43 -0500 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E479E6; Sun, 19 Nov 2023 05:40:37 -0800 (PST) X-UUID: acb510e49d924fe2a26b7b2e735369e7-20231119 X-CID-O-RULE: Release_Ham X-CID-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.32,REQID:818b19ef-3f45-4b5d-9838-c3dd21cdabbd,IP:15, URL:0,TC:0,Content:-5,EDM:25,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,AC TION:release,TS:20 X-CID-INFO: VERSION:1.1.32,REQID:818b19ef-3f45-4b5d-9838-c3dd21cdabbd,IP:15,UR L:0,TC:0,Content:-5,EDM:25,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:20 X-CID-META: VersionHash:5f78ec9,CLOUDID:25298f95-10ce-4e4b-85c2-c9b5229ff92b,B ulkID:231119214015QRM3A46K,BulkQuantity:0,Recheck:0,SF:44|66|38|24|17|19|1 02,TC:nil,Content:0,EDM:5,IP:-2,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL :0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_FSD,TF_CID_SPAM_FSI,TF_CID_SPAM_SNR,TF_CID_SPAM_FAS X-UUID: acb510e49d924fe2a26b7b2e735369e7-20231119 X-User: chentao@kylinos.cn Received: from vt.. [(116.128.244.169)] by mailgw (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 141419594; Sun, 19 Nov 2023 21:40:13 +0800 From: Kunwu Chan To: njavali@marvell.com, mrangankar@marvell.com, GR-QLogic-Storage-Upstream@marvell.com, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: kunwu.chan@hotmail.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Kunwu Chan Subject: [PATCH] scsi: qedi: Fix warning of restricted __le32 degrades to integer in qedi_main.c Date: Sun, 19 Nov 2023 21:40:09 +0800 Message-Id: <20231119134009.8015-1-chentao@kylinos.cn> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 19 Nov 2023 05:42:53 -0800 (PST) drivers/scsi/qedi/qedi_main.c:1867:37: warning: restricted __le32 degrades to integer Signed-off-by: Kunwu Chan --- 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