From patchwork Thu Jul 9 14:24:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 6756451 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1FC4BC05AC for ; Thu, 9 Jul 2015 14:24:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B69E205EE for ; Thu, 9 Jul 2015 14:24:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2EA1E205EB for ; Thu, 9 Jul 2015 14:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750894AbbGIOYd (ORCPT ); Thu, 9 Jul 2015 10:24:33 -0400 Received: from mail-bn1on0086.outbound.protection.outlook.com ([157.56.110.86]:13216 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751146AbbGIOYc (ORCPT ); Thu, 9 Jul 2015 10:24:32 -0400 Received: from BN1PR02CA0029.namprd02.prod.outlook.com (10.141.56.29) by BN1PR0201MB0740.namprd02.prod.outlook.com (10.160.169.27) with Microsoft SMTP Server (TLS) id 15.1.213.14; Thu, 9 Jul 2015 14:24:30 +0000 Received: from BN1BFFO11FD002.protection.gbl (2a01:111:f400:7c10::1:168) by BN1PR02CA0029.outlook.office365.com (2a01:111:e400:2a::29) with Microsoft SMTP Server (TLS) id 15.1.213.14 via Frontend Transport; Thu, 9 Jul 2015 14:24:30 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.173) smtp.mailfrom=sandisk.com; qlogic.com; dkim=none (message not signed) header.d=none; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.173 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.173; helo=milsmgep12.sandisk.com; Received: from milsmgep12.sandisk.com (63.163.107.173) by BN1BFFO11FD002.mail.protection.outlook.com (10.58.144.65) with Microsoft SMTP Server id 15.1.213.8 via Frontend Transport; Thu, 9 Jul 2015 14:24:28 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com ( [172.22.12.162]) by milsmgep12.sandisk.com (Symantec Messaging Gateway) with SMTP id 4F.1A.06265.C148E955; Thu, 9 Jul 2015 07:24:28 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.224.2; Thu, 9 Jul 2015 07:24:28 -0700 X-AuditID: ac160a69-f790f6d000001879-91-559e841ce7d5 Received: from [10.50.231.57] ( [10.177.8.100]) by milsmgip11.sandisk.com (Symantec Messaging Gateway) with SMTP id 1A.67.03643.B148E955; Thu, 9 Jul 2015 07:24:28 -0700 (PDT) Message-ID: <559E841B.2050607@sandisk.com> Date: Thu, 9 Jul 2015 07:24:27 -0700 From: Bart Van Assche User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: James Bottomley CC: Himanshu Madhani , Quinn Tran , Saurav Kashyap , "linux-scsi@vger.kernel.org" Subject: [PATCH v3 06/10] qla2xxx: Avoid that sparse complains about duplicate [noderef] attributes References: <559E8382.6030803@sandisk.com> In-Reply-To: <559E8382.6030803@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsWyRoxnka5My7xQg6PtChYvfjxhtfi//jaL Rff1HWwW1268ZbaYP/MvqwOrx+EfP5g91n05we7xeZNcAHMUl01Kak5mWWqRvl0CV0b/k5+M BacFK/7332JsYPzD18XIySEhYCIx9/lpZghbTOLCvfVsXYxcHEICJxglDs3tY4Jwt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gwy+X/7WvUYgfoHRs37dkG62 sx9n+8c/35yeOfvzYb/97p/vxfdGPdylYLiWmenCwilbJisayCpfj66cVF5y6O/v7h3+zzxF Z9nxr1rW8kYsLCNHmtcr6/2HzSHnNGNuWc/k+b9sZ33S9EVKLMUZiYZazEXFiQB780M5AwIA AA== X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD002; 1:BMKlgIKlUsKKGntDksnoQUHWeXR1gLO6kYeDjK/1k/gzR9O72OJ9WedjuozeZP2XFLjB9d0QhG0yRquXlTT5mocWXXHUMVcXMDqmu7xqXZi8s08KHKCTriJWlcio1jWJVo15ahMlIm7tPTMGuaUV1D68kkvwmNvneMeqsHp9T20i1i+jbV/jdAMSKSnS5/QwVgMtlUf4ryLu12e2eYDCSYPh0rKTaZDnx6IiauO1UG6X4g4NPBCuO7EqSua4EQaEI6Rw4aG0fbND3jjlvLLN9wQlI9iY68W4cLebK63drhN+Nwr20ujVqJp6Sp/FYErSE+xtUMvXi3Y+0a4gkr8wk2VZsGb2x/mBdWN1bmpdQSqspiZdi6zk3GIYZxAr1iufz0WvocHr7l3sYP33SJKQCu+mnmgLrH7WwGIISaA2b8E= X-Forefront-Antispam-Report: CIP:63.163.107.173; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(83506001)(86362001)(106466001)(33656002)(4001350100001)(50466002)(87936001)(36756003)(92566002)(50986999)(64126003)(65816999)(54356999)(23676002)(76176999)(19580405001)(65956001)(19580395003)(80316001)(110136002)(77156002)(87266999)(5001960100002)(62966003)(189998001)(2950100001)(77096005)(46102003)(229853001)(3076002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0201MB0740; H:milsmgep12.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0740; 2:GuC5HOosF4WzEG89xMm7rOA/KCV81vHdS/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7icXR6DiaFbtOae+qD9OdA81bFtjLqAxVnq2MPpms1JPJVs/I79s92kiO/cU7kY+kAW0wxg8+d9ot+yex0Yjh3REGB5vrsFpPF33kZO; 4:1soIJ6r4SM3ISrGWBoTVjS6jy7cdg9roVmnZDiheqUGCgVqO+OU3dHVmBo9GlriP+8lJt3uqYmHatlVQXlnFm+iGHktDrcvFlaY51pGBadru0kqpo2uBGPqx3X1Ed41Akb/NVAeaUTdV05q62igWXltWMQfsr1vuZPfM6f97uZ3H3CxbSCon8E5lYfeWMYbdzhYG6Iz76p3Qqqzg8TxdhPpuzJXM1uxeWagvmrCqHP+dE96tkcMdCSM7MH+Hl9NyOEyvTEw/lN/BjeOITE7uZTKgjHd86AohUZB47kwJnHk= BN1PR0201MB0740: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BN1PR0201MB0740; BCL:0; PCL:0; RULEID:; SRVR:BN1PR0201MB0740; X-Forefront-PRVS: 0632519F33 X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0740; 23:m+JSVMCc0ro4h9y350X5cb2UXniaQXd3Q0xfASLqbosAxNSsmC+avmzWYOMzHM+u/+QGD6pWSdjxDyEzb0hfld73Dv5ymNEJ3K97fcE7BRPSZa9IAGGLl/HzyT+l4PdWG2UPBdkAZ6AS6dFz0ZsDpjHwfkeoumMRLuOgfV3rXO0vXB+yHqyfyc4bJ6nNkGws2/V+P4j04xCkE3m2X72oxNX4zPVEzAoLHKzeXVH+t1r8YiwKF4JuLNBiKEx2R6dh/BIQ9YoUXNSJEJjbuKhpZgIz9pMTaM1Kd1rr2Mh3+IErS7Pi4wDilPW94RZN0mJX9BMxvTpN+Lcu84GHUQLV41EP4yDHFUcBSj7BP/vxlSgbPRQYs5vyzfbQ0ZgDuLLnxxvUT3YX6h59xubUVkKoKh3Haew/gzkrkm5HFGU0DRbUPvC9ali58iUosdCX1h0LyBSEgCZXz97QPbbKB6VWlcsldSNVTm/+Me3ptoA/P+EB3HpgqxL1GZQbHYnLYRX+jjxUWXLuPCs3Qv3g0A/lddNQlHe03tBhC+JkCVgvx+vVDjO0hlVMvzMKTuU0VCIbxL2Y3gXkhF7osiK2zQndg6ZjDlCwBDE2yrC8vy9ABcisblKkby3rkFHZZh67b9PRXwHmW2qh+WQA7bT3gZKd5RZKzd+VtJ+Ex9BMz/AONt4GORrrAxNAW4fFfEfdF0hN4GdTb3k3/+HbF6QnxbNTXohj49YeATVJM6t1SPB9Gf6yklN4uucHcuLgYysuOkkE047IWkuQtVpcN/ZTrBpRCzaxahXRZS5YCcga2ugTCNm1IEHX0eH3uotpQVkcFRc2Qdfh/RpPmQjh8pNdV9ijMG1PgTqMxlFGYr4Pa1VPGA98j5Uy5c1A0JzHzsNuGYPYVcSpdBKwxsDi7G34QLBD0wlSSb40+FgpM7b22Xc mW70= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0740; 5:EBAkoRcME49+/SNMxRb6Z39aaYMxZi7EVO89p630YnsnTVuBPgEH3tof8hadfvf0zJJPjnm29mDxPi83vK1F1lavuH5yFD9p5MBFszOtfB/qzBUixP2fG/sSZfsekpTlUf85VEuvKQD+0vIIHyQLNw==; 24:umbkJf55U7One8tZ8hxzsfyDwxskSWUgWpZ/K6QQjiVHD88b1WufXL7Lnzus9aHSXPdSqIOK2QovJiScQeRjnSiWHrk0j7WCGGwNQeXYuZM=; 20:A/na3dZDKn8NbXR8zgAtb3Z0Wz7mILvfaO0lxtQDCSuvLTOd4sxyd8W427FpF+0WSinugR7clETCxsWC2XztFT6aUw8zwLTLuEHlayWbSQXsu6yATgyPrPND2DrbnvU0gemFSta2VtwSdgoxNz+dYgRWbvRwYUP3zLCou0ehIlk= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2015 14:24:28.8632 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.173]; Helo=[milsmgep12.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0201MB0740 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Bart Van Assche Acked-by: Himanshu Madhani Cc: Quinn Tran Cc: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_dbg.c | 2 +- drivers/scsi/qla2xxx/qla_init.c | 2 +- drivers/scsi/qla2xxx/qla_iocb.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c index 3a786e4..1a1a221 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.c +++ b/drivers/scsi/qla2xxx/qla_dbg.c @@ -627,7 +627,7 @@ qla25xx_copy_mq(struct qla_hw_data *ha, void *ptr, uint32_t **last_chain) uint32_t cnt, que_idx; uint8_t que_cnt; struct qla2xxx_mq_chain *mq = ptr; - device_reg_t __iomem *reg; + device_reg_t *reg; if (!ha->mqenable || IS_QLA83XX(ha) || IS_QLA27XX(ha)) return ptr; diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index ceced7f..5a5ca43 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -2085,7 +2085,7 @@ void qla24xx_config_rings(struct scsi_qla_host *vha) { struct qla_hw_data *ha = vha->hw; - device_reg_t __iomem *reg = ISP_QUE_REG(ha, 0); + device_reg_t *reg = ISP_QUE_REG(ha, 0); struct device_reg_2xxx __iomem *ioreg = &ha->iobase->isp; struct qla_msix_entry *msix; struct init_cb_24xx *icb; diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 3075818..419e1b9b 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -451,7 +451,7 @@ void qla2x00_start_iocbs(struct scsi_qla_host *vha, struct req_que *req) { struct qla_hw_data *ha = vha->hw; - device_reg_t __iomem *reg = ISP_QUE_REG(ha, req->id); + device_reg_t *reg = ISP_QUE_REG(ha, req->id); if (IS_P3P_TYPE(ha)) { qla82xx_start_iocbs(vha); @@ -1795,7 +1795,7 @@ qla2x00_alloc_iocbs(scsi_qla_host_t *vha, srb_t *sp) { struct qla_hw_data *ha = vha->hw; struct req_que *req = ha->req_q_map[0]; - device_reg_t __iomem *reg = ISP_QUE_REG(ha, req->id); + device_reg_t *reg = ISP_QUE_REG(ha, req->id); uint32_t index, handle; request_t *pkt; uint16_t cnt, req_cnt;