Message ID | 20180122200420.19516-2-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 230EF60353 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 22 Jan 2018 20:06:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 144AA206E2 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 22 Jan 2018 20:06:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08C3C28449; Mon, 22 Jan 2018 20:06:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F176C206E2 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 22 Jan 2018 20:06:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751038AbeAVUGc (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Mon, 22 Jan 2018 15:06:32 -0500 Received: from mail-sn1nam01on0063.outbound.protection.outlook.com ([104.47.32.63]:41325 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750891AbeAVUGb (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Mon, 22 Jan 2018 15:06:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=yL+vh3NKC0ya4iZF3s1shavh6CVm+pjxNPSb/OD7s7U=; b=R3WmwJA+SNtaeFrF8vLfvAL95G/5rpkMtfonlOYMkbeEmCahw6gVqQpPaf93E7pyD5DOBrWDlrdpuXAvIFHArcip6w0E0bQMUamVeyNj/PaNt73/0rmq56dx7YgBOnvn0fex1gFnOvFXumqA15N8BsXCeesBhP+gvm9cM+tfuMw= Received: from SN1PR0701CA0048.namprd07.prod.outlook.com (10.163.126.16) by BY2PR0701MB1941.namprd07.prod.outlook.com (10.163.155.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Mon, 22 Jan 2018 20:04:23 +0000 Received: from BY2FFO11FD026.protection.gbl (2a01:111:f400:7c0c::107) by SN1PR0701CA0048.outlook.office365.com (2a01:111:e400:52fd::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Mon, 22 Jan 2018 20:04:23 +0000 Received-SPF: Fail (protection.outlook.com: domain of cavium.com does not designate 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BY2FFO11FD026.mail.protection.outlook.com (10.1.15.215) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.428.12 via Frontend Transport; Mon, 22 Jan 2018 20:04:22 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Mon, 22 Jan 2018 12:04:20 -0800 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id w0MK4KYa019555; Mon, 22 Jan 2018 12:04:20 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w0MK4K6B019554; Mon, 22 Jan 2018 12:04:20 -0800 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <himanshu.madhani@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH 1/2] qla2xxx: Fix warning reported for req_que_no in qla24xx_async_cmd() Date: Mon, 22 Jan 2018 12:04:19 -0800 Message-ID: <20180122200420.19516-2-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180122200420.19516-1-himanshu.madhani@cavium.com> References: <20180122200420.19516-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(39860400002)(39380400002)(346002)(376002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(5660300001)(105606002)(26005)(6346003)(356003)(51416003)(59450400001)(4326008)(305945005)(2950100002)(80596001)(106466001)(76176011)(69596002)(36756003)(86362001)(8936002)(1076002)(81166006)(81156014)(50466002)(50226002)(8676002)(87636003)(48376002)(478600001)(72206003)(47776003)(110136005)(54906003)(2906002)(15760500003)(42186006)(16586007)(316002)(336011); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0701MB1941; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Fail; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD026; 1:kgSRUNsVkkhD0GAVSxIDxBTDu+IcwGE1EomifOdThq0tAx/wFhFX5OYhQCA61zyAi1BjWqIl0DMbY2zC2D/gmB8ZavRso98Vptg6HYN+2JSXSYNuQSK4c2dvbHMCKEGB X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 92d51a2f-3844-49ab-0e76-08d561d3544f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534125)(4602075)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:BY2PR0701MB1941; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1941; 3:6+FC8JpNusZkuwiIXl1h3fX3LcaKyTV4KXcNq+E9kF11+UlYha3tWS8rODBlQzEi7LWMFMR0oqJDtSw3C4V6BZtsZGPCQlnAIPKa2O4mTkeGeu7S0N5iKRX55285mBSmBN3N3HPmuDr3A7hOpYPqYfyQGKlk7hEhaMcbQupxpYBgOp9DtdhFLxErDhnC4nOu5m+u+QLx/bB5wSqHAqHCNTi7l+rlTwudSPQh+O3/OkcE2tEoGE9Dfh5UhvpxMVPYqwykrZSQC5tXLZBvJ+iRFRnUyoc+OVvDDYjerU5fKx7pTDNHJddDbrBOJnCW7W557xal78S+qnUIQrZGlGjBavDgGLqE9l9MZgPQQBiDS+o=; 25:dB7xswOWh4vqO5HKNALviG9ucpdte0nhhSOhdIMQot5NpVbA/jvYvJk0kGzZEyuOhoMf/iHh8OpD2TO5xVd1bowscucvq/7ktZFsm/tvecP7w2C/aObMVcDxuIV+8RHYo15s+Su3krOPIW9RQLWLniFJhgpVouAmmSOXD89rrEtSBqkSBi26ieOyIsuYV7dsjhYWUEQNUJ4ozoAyalqWYC4lEC+iTKtGy8LMW7cUX0SCehOmof6/F2fx4/JUpwVJWM1te1o0dC8CfxgbLDJyWLqFmv9w1t4OR+WBKdV4VK1F5Ts+TdPA0F0GzCLicbPiYmxehojnRrDnDGNZ4DVjtQ== X-MS-TrafficTypeDiagnostic: BY2PR0701MB1941: X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1941; 31:fxgdk58e4UkBHMp0gHf47ieHHPfWubrWcIDpGaD/92WEjkp0AZPJwCyzk4+wKuLDFrBDrWgeCn6E4OMKw0BxH9eoz3PXOK6SkiFjXwG0ag8VM2y2OsRcq0vvcdfb1hQ9fp4gmQEEJMi8NE6jZaOoM/myBW8/wIbNUreZFfWsA+yk+z9wdYaoOPvGyk4wbMQx+VjUy/GN7y6RlkIbhIqozFsLRM6pRhQaVSoi3qbE/6s=; 20:osjWkkmCviVquFk8qCbBhhDHe1+TshrnZgwdgJsXdFHEvmn1p0T7+hO3t8ZrsuT9gARBpBdqzgVu3MIeempgJuw5y668ZhdW/hPyMRzwiQHKFE18sGYomYqQL0g4YWEWUY9JLmM909sdch70w6g0Oq2gDQ1nLx37XqoAwum8yHQXpTOOLivgbB70MI79Mzpz/M60Dzsv+dAaU0uHqcYzzbVPRmRxn00GnXyC88YM1zPGmKaPqomIBf8L+kkd0C5BqQL7O4duhhsvTg0n/hEk0DVQIUeW0ID1qZNLG47kLfK7YEty+/hP56w2B7S/h6ehwFkYcISBERRBt2weOirRne01plPLbJFkte1w04FjJD1czXrkiitQaQU0dwe5q9ooTaH/w8ZuPjM6An0q/Gck8n5zFWB3hsL5QC0vTKs/e82kgJxvGwNjUL/c4NJroO6x/aVKMVg0CTT7iuCV75fnnUSTeKp24Sf8ZTDz6H+nkccm2q6ityLTId8DUns6LZYu X-Microsoft-Antispam-PRVS: <BY2PR0701MB194161832D07F169AFBA123FF5EC0@BY2PR0701MB1941.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231023)(2400081)(944501161)(10201501046)(3002001)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:BY2PR0701MB1941; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BY2PR0701MB1941; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1941; 4:3qvUIRL7OtB9P8H+Ry2y0YVNS+HRdeGIEFfNyxsVLhoEueYK7sUyFZHizNa8Abbify12Sh/vpXmSTpiBSuqAQFUeBj8orHmw1gGaZNZrZCasyAoy0l1doCgU2joupR3bPFtay7gfb4AheoBMyGeQ6OqtzzlbLklXNYnoKCqaqspGKMjataFYq7qK3jsFMoe4rqtQbUaB+/8PrnRIt8k3baS5PFZ93+i8NXwx0yg+sQe15heW9ZphvmP6QIGSHkpkeDt+AO1P7rNzigXNESn/nA== X-Forefront-PRVS: 0560A2214D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0701MB1941; 23:Ll+KN14C29ZFmZygs4kDDozx7AsiyKbYjdgdE48?= =?us-ascii?Q?hZgTlgFegVJbYyREWE1fqLnbxBI2F9jpwtRuLJjPxAmnOJxi0V2g/azSFr2K?= =?us-ascii?Q?8Ut9Lg2zjDta2k3KjWczUymC+Qkk7eUT2OsEBSc29V/c96x3e13Oktbt8OXd?= =?us-ascii?Q?7kRBtFyQUB9X2pygV4M5xibFl39APrsuucvE2DNV2HqgZ6coYB5fP+kUkwPq?= =?us-ascii?Q?tpSwIeD4F6rP3zlLqBLlxEQmjSXTneviKQZ8y7VhaNzmIcf+vQh2QlS4JAuE?= =?us-ascii?Q?Wm9NoYKu2/19LFqkREkGjyuIpqaIqWx2ddLevJl31lMA6YoA8Xhfn0M5i1/e?= =?us-ascii?Q?VZu42QAHieILCwE8CtexUwE7AHnpqMxZ9zUbu0stF+704449kImROLWxXRPn?= =?us-ascii?Q?J2893ZmAynxvGSJksgG+cIJhWpByK8BL3qEzhjos2W8N76FqEUt/zB1vDEfF?= =?us-ascii?Q?BzXJnXKOxiXatEmM6jNsOyYtzRhMZ1WFdC4kVE/F9CSPTNhqPwRnoZeePxrq?= =?us-ascii?Q?pid5LfouH2pO04oMM1NwyPtlibXkGLSKMKimwRLNA6fqFPiQexsbHYPDi9FQ?= =?us-ascii?Q?Bq0LB5tVva6+QpRYoNlJnoGpqBpNfd/vXyFabUl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c1R+mFbCEvQbfAQ0i6jEWyEK6j1b9ic2TgB/OG5OiGND9eY25bKIIrHG316qz1jw0+xcuh78vepZmhzHi7glQFUC5BGGDuaTOI9+ycMOLw0E5xTDFlzkE3u9um0bSZFSLwRKYxW9Var+23qbcg2kvGgHA=; 24:ya1RA9ub5wprh84v+5xETu0tlUd7dXFjk9m7uegfbeZs67BZknefVzEEgFckEBKwyvbaBscokyhEjF7i6qS/+jCV9CqyiZ+fgdelDrdfcwI=; 7:RrIhlZwZchRDeWd5um0vomfIkGKEUcpbRvwCYbtp/Whbw4FBw6fLvmgf9MIfMxiiYrE523uXzN11ilt8oX0c8E/Ff81QXjCG6ISVywkjqjpnI5EteFsDGcvwsoZCWRSP0PU5ykmBED/Yygvu9+Txza+ebxXyyLdq9V4OC1tiCX9SXWhNMtgWbkmBWhE0j+Cwp6tHkoztwW8iKOOzy5GWpcuHzRJT6n5e1OfW0N6Qv0qe9yeX248oWYR+p0fb9io+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2018 20:04:22.1070 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 92d51a2f-3844-49ab-0e76-08d561d3544f X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0701MB1941 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Himanshu, > This patch fixes following sparse warning > > drivers/scsi/qla2xxx/qla_init.c:1570:44: sparse: incorrect type in assignment > (different base types) Amended the original commit. Thanks!
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 27e67f7ae18a..5b6f3c53fdcf 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -1567,9 +1567,10 @@ qla24xx_async_abort_cmd(srb_t *cmd_sp) abt_iocb->u.abt.cmd_hndl = cmd_sp->handle; if (vha->flags.qpairs_available && cmd_sp->qpair) - abt_iocb->u.abt.req_que_no = cmd_sp->qpair->req->id; + abt_iocb->u.abt.req_que_no = + cpu_to_le16(cmd_sp->qpair->req->id); else - abt_iocb->u.abt.req_que_no = vha->req->id; + abt_iocb->u.abt.req_que_no = cpu_to_le16(vha->req->id); sp->done = qla24xx_abort_sp_done; abt_iocb->timeout = qla24xx_abort_iocb_timeout;
This patch fixes following sparse warning drivers/scsi/qla2xxx/qla_init.c:1570:44: sparse: incorrect type in assignment (different base types) Fixes: 07a21872cf2b ("scsi: qla2xxx: Fix queue ID for async abort with Multiqueue") Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> --- drivers/scsi/qla2xxx/qla_init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)