From patchwork Fri Oct 13 06:08:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10003501 Return-Path: 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 9E6D060216 for ; Fri, 13 Oct 2017 06:08:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9057728F8A for ; Fri, 13 Oct 2017 06:08:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8503828FB5; Fri, 13 Oct 2017 06:08:30 +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 BF09928F8A for ; Fri, 13 Oct 2017 06:08:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753018AbdJMGI3 (ORCPT ); Fri, 13 Oct 2017 02:08:29 -0400 Received: from mail-co1nam03on0040.outbound.protection.outlook.com ([104.47.40.40]:47568 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751373AbdJMGI2 (ORCPT ); Fri, 13 Oct 2017 02:08:28 -0400 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=B2S8s112OSRC1YHSmx8/h74ITo0NiGN2LlrM9V02NwM=; b=Cu3hC7e3khKCoHdlKVMhAf3NE1lJpeCxMOGwWs+jcwp9PvvF5rs24ej2vM77chnl6XjZZEm5UlvZu5U4w08tHQHg6hTLGemTJT2ajeJKmhpsjSms6RL0xU0pPBqySG/hqUFJ1bikZBmsWjOzi866rAGCEsOtdZH5Sf48yw0Y4aI= Received: from SN1PR0701CA0025.namprd07.prod.outlook.com (2a01:111:e400:5173::35) by DM5PR0701MB3815.namprd07.prod.outlook.com (2603:10b6:4:7f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 13 Oct 2017 06:08:25 +0000 Received: from BL2FFO11FD050.protection.gbl (2a01:111:f400:7c09::164) by SN1PR0701CA0025.outlook.office365.com (2a01:111:e400:5173::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.7 via Frontend Transport; Fri, 13 Oct 2017 06:08:25 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BL2FFO11FD050.mail.protection.outlook.com (10.173.161.212) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.77.10 via Frontend Transport; Fri, 13 Oct 2017 06:08:24 +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; Thu, 12 Oct 2017 23:08:22 -0700 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 v9D68MvC028272; Thu, 12 Oct 2017 23:08:22 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v9D68MV3028271; Thu, 12 Oct 2017 23:08:22 -0700 From: "Madhani, Madhani" To: , CC: , Subject: [PATCH 1/1] qla2xxx: Fix sparse warnings for N2N Date: Thu, 12 Oct 2017 23:08:21 -0700 Message-ID: <20171013060821.28237-1-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(2980300002)(428002)(199003)(189002)(105586002)(110136005)(42186006)(16586007)(316002)(86362001)(50226002)(33646002)(1076002)(5660300001)(8936002)(50986999)(478600001)(8676002)(101416001)(87636003)(356003)(4326008)(81166006)(189998001)(36756003)(81156014)(80596001)(106466001)(48376002)(47776003)(72206003)(69596002)(2906002)(54906003)(5003940100001)(50466002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR0701MB3815; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD050; 1:KDZUoA/ncfdRvV2HKekzXplTkDSmr6//aOBgNK+iUuqfCGkhg7/S0F+F73QcXC66D68OR6L0xvHGom6sbFkYyerKP3PXTLdXUA+BZf/s1ZLKZAvRDZys/v1RFLGbkb/M X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ae4a2720-6e00-47ec-c7fc-08d51200d098 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:DM5PR0701MB3815; X-Microsoft-Exchange-Diagnostics: 1; DM5PR0701MB3815; 3:bE6y8wXdoQXrYsFB0SL7TqeZWbYRmQmTq2dooNVZCox5qhla7RO+a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6b1VulPLvoyXY6ofU02flTV7v9i5e5hdAjvXV0MJPQOAaCFEQWVLmk2SsX3sjg2iR8yYs2VV5SDQCTd+zdaoasvmCBxysbfcA/s0YMbtgAVU7ndf8ke964xD/crx7gmDaNPA+NZTi6rn4485z3bL1M8qB46p/GgCXDxiVwNkyQuLQX++OmwlTO7nwEm9JraNL2quXYoCoyljlXt0zpHFuPkny92sDDfG7kc0rzi1QBiBiq3fUuuSrCXNWVidvmL61XQFYJUfF8K1Kghxf3clBBUoUHSFrBogRQdq36LFBvhnRNtPKae5FbtWm4uIJJqiF98jE2kZEdv3AJ3C5ngulwDhR+C/6OEAhJM0MBTuJP7BA97AFlZm2q59TxYsMOGv+v76JLJQIsDq98cN6F3Gi7+67q X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123558100)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR0701MB3815; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR0701MB3815; X-Microsoft-Exchange-Diagnostics: 1; DM5PR0701MB3815; 4:kUi9pM+D7X2gNOhTv/9pV6g2hMkJRiyIASXJfbScmDOYtjJEJ44qFBFHjdIJHR3JrS6+wioJv7oiQsedKiwSlu8QNiY616lt4kHfjneNCvTFKyTBiPIL8MYxYWox4caE8xhBDJdjBV6xZXdpSURgLzU4i5rNtq5NHAjVQH13JLT7o5aZopIw3UpPRwThIfeihgVKbGOlDcbDSbzqdEH0rDh0aKDy/8WBJbBnSXZOMZUdEoZjzgmAcl2zK/2XdOGS X-Forefront-PRVS: 04599F3534 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR0701MB3815; 23:P9SYqXxAC6mxUdUS1H+ENxerdFqm+47bI0h/u3P?= =?us-ascii?Q?92s/xA6pEliZrOFYSYPa+ZxGu3VUMDXPv/Dp2m32B4eAfuHW7RBz4+OnEMPc?= =?us-ascii?Q?1HXZkc3j4lsYmajb4JeppE1KkdiUrhhtBkV8K0NaEwDBLUoSWrj/MR2oUCGD?= =?us-ascii?Q?C6QeISWrn2hUz/uUw7vz1lAsraOJypvqWb3KvP4k/y9cBZgpvcCEi+v1lcWa?= =?us-ascii?Q?ampyOlJulofC3zFXCp2/LOlmBoc3X4I2EbhKNakR1MbZB9JdXWZiDTTRuoOF?= =?us-ascii?Q?/iAr5UapgFip/XqgDI3F2aavI16NOv13OWBznn4Gl82g25c/2Y6Nu3eb4tPx?= =?us-ascii?Q?LbweZEN1wViJEcgak/U72aIVO+NhFX0q8pJxAepglP8HWiFLKRLDi10mPZp7?= =?us-ascii?Q?VsK1VJ/wY+RUpLpHS7yYUOhOoH+TgHFJzXwZTxRqEpg0p0kB/0Ju557cjIA2?= =?us-ascii?Q?01PMXu1M2gO9Dp5Rv7jOapARdXg+tOwBMh8cR8RxtFEDyizrp83cfr4n63Nm?= =?us-ascii?Q?igufzfxmko/gXozFG9NsghKzIP8kMSlfm+trQOBiF4q79ToMOyeoeavBYhi0?= =?us-ascii?Q?oTOjBfbVPys08AFZzMUaGMeN0rVazohas+mqhMRHi6Q6d0QlKacSEWNl0qQN?= =?us-ascii?Q?4s5bhDdrIqOvVh7OQQb3MLLfylvBBZgUuC4UekQIyZqfV8CUYN4LNKKBVusg?= =?us-ascii?Q?q0OOu/WWvsuAn4jnYHaSw3bw1HRKH+WOqsFVAfWrTLCO+X3LVly9MrgHX5f3?= =?us-ascii?Q?O/JsW2DwXcqZ1xCFJYxwB/VpR+DOTiOWhBTD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ROg+l7sFjhR8bCCD+AJ7Qa7oQVGoTT+T7AaahN7vi+wek/xPC0bNU3PaFbtQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2017 06:08:24.8334 (UTC) 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: DM5PR0701MB3815 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Himanshu Madhani Fixes following warning reported by 0-day kernel test build drivers/scsi/qla2xxx/qla_iocb.c: In function 'qla2x00_els_dcmd2_iocb_timeout': drivers/scsi/qla2xxx/qla_iocb.c:2611:50: warning: format '%x' expects a matching 'unsigned int' argument [-Wformat=] "%s %d ELS Timeout, %8phC hdl=%x, portid=%06x\n", drivers/scsi/qla2xxx/qla_iocb.c: In function 'qla2x00_els_dcmd2_sp_done': drivers/scsi/qla2xxx/qla_iocb.c:2634:11: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'uint32_t {aka unsigned int}' [-Wformat=] "%s %s ELS hdl=%x, portid=%06x done %8pC\n", ^ drivers/scsi/qla2xxx/qla_iocb.c:2634:35: warning: format '%x' expects argument of type 'unsigned int', but argument 8 has type 'uint8_t * {aka unsigned char *}' [-Wformat=] "%s %s ELS hdl=%x, portid=%06x done %8pC\n", ^ drivers/scsi/qla2xxx/qla_iocb.c:2634:44: warning: format '%p' expects a matching 'void *' argument [-Wformat=] "%s %s %ELS %hdl=%x, %portid=%06x %done %8pC\n", ^ Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_iocb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 6e57c48f8d95..0502ed7ee14e 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -2608,7 +2608,7 @@ qla2x00_els_dcmd2_iocb_timeout(void *data) int res; ql_dbg(ql_dbg_io + ql_dbg_disc, vha, 0x3069, - "%s %d ELS Timeout, %8phC hdl=%x, portid=%06x\n", + "%s hdl=%x ELS Timeout, %8phC portid=%06x\n", sp->name, sp->handle, fcport->port_name, fcport->d_id.b24); /* Abort the exchange */ @@ -2631,7 +2631,7 @@ qla2x00_els_dcmd2_sp_done(void *ptr, int res) struct scsi_qla_host *vha = sp->vha; ql_dbg(ql_dbg_io + ql_dbg_disc, vha, 0x3072, - "%s %s ELS hdl=%x, portid=%06x done %8pC\n", + "%s ELS hdl=%x, portid=%06x done %8pC\n", sp->name, sp->handle, fcport->d_id.b24, fcport->port_name); complete(&lio->u.els_plogi.comp);