From patchwork Fri Sep 7 00:39:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 10591323 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C22E5921 for ; Fri, 7 Sep 2018 00:44:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B39102AFB0 for ; Fri, 7 Sep 2018 00:44:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A60082B06D; Fri, 7 Sep 2018 00:44:59 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 30DC02AFB0 for ; Fri, 7 Sep 2018 00:44:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727852AbeIGFW7 (ORCPT ); Fri, 7 Sep 2018 01:22:59 -0400 Received: from mail-sn1nam01on0102.outbound.protection.outlook.com ([104.47.32.102]:56221 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729678AbeIGFUV (ORCPT ); Fri, 7 Sep 2018 01:20:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=63gbotlpCfBMasCP4jL/Eax6743EllK2KzXd3Nk8hkY=; b=LIbIIZ1Qnp8wZ7CQq2GxUVpYaAatj0TzrqhRtAqP/AkV+1M3lgT/GRIBcrHRD5AVhhq2JvPPpCml+rfOk4NpSSTm2oZUG6THiVFEewfTtrLmmw8muu/Bx2ZlBW2HDY60BeK+nlTFr5p4CVPYgiqXvJfwuwwYqIUqJXJRTMIMQ6Q= Received: from CY4PR21MB0776.namprd21.prod.outlook.com (10.173.192.22) by CY4PR21MB0469.namprd21.prod.outlook.com (10.172.121.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.6; Fri, 7 Sep 2018 00:42:11 +0000 Received: from CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::7c3a:eea8:1391:1611]) by CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::7c3a:eea8:1391:1611%7]) with mapi id 15.20.1143.008; Fri, 7 Sep 2018 00:42:11 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Randy Dunlap , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , "linux-mtd@lists.infradead.org" , Yoshinori Sato , Rich Felker , "linux-sh@vger.kernel.org" , Sergei Shtylyov , Sasha Levin Subject: [PATCH AUTOSEL 3.18 06/19] mtd/maps: fix solutionengine.c printk format warnings Thread-Topic: [PATCH AUTOSEL 3.18 06/19] mtd/maps: fix solutionengine.c printk format warnings Thread-Index: AQHURkM922FBHED9KkOcj0cD53Ysfg== Date: Fri, 7 Sep 2018 00:39:30 +0000 Message-ID: <20180907003923.58019-6-alexander.levin@microsoft.com> References: <20180907003923.58019-1-alexander.levin@microsoft.com> In-Reply-To: <20180907003923.58019-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY4PR21MB0469;6:JK4owAdtna/Nbw4XmMa7/aH2DhqqwdHLe/1NXe0/tMsLLAXRqApdh02MzY2+x9s9qySJMGeeARwuyia+Yd1o8GpH+Pfwic4OHkf7SUWpLTVGfihmzLoevIFzn4qxAvyaZLP1mmMB7ubsd1cPsGRexYBKZ+tp1b9waxrTLZAoiaWuYKkO2xA02ewtu4agGX+3UlafaWPIJeOkDUKet75/5DXDgVrC1X3AxJJxZ3hFgOj7oD1ncWR0BLQWpukdYX7QwyqWiWtZJFvvy/O3enzxges5fosAq5kUcpk8A+r/dtDhfoQ1wksb21oeqrJCD3PAlPl7Jz8gHNuKgHMCvxhvXpoyJTyWH4yqSsg08wCqnub154grHasKdp4E8IaqbX7LkHEfq4qgWd4WyRnUj4+v8fLdIctGK2xCXBTyGQE/Hhe4mTg37nspkrZwKis+JXjbge7TOocq9owuQiFplQjRfw==;5:v3eAkjB58x4vRDtq4UedX77XHpMrSmmnnVmn6rzg/GlKkXaKQacjox6JxxT100170dVELvkFDLoCUFB//tquet7U1C2WC+VegtJuHEMFQ4qbJpOT44nErSGFrlVaa5xqZwBGlyBLo3eLVFoIS26jsj0ycAV8gOIoz1LxgpaApm0=;7:L74lcbLP47yMCCYrcykE/Xg7+DVc1FToVfa58fVHxb7N4v61AfqBWwt3vPTxJ/u2cmgPWwCDvb5e98Cfff94XOkeAAQoryshKtb+lHp5XbFopDYiSufmmQ2nZpXFpdRn8JY8EVnZnyMOb4FcMxGb349GlhBVuIrZaafTdNxEPFJS0XPHn1y4QVdK9RCngXa4gr4lYXnJc1SjYsXuOv4GaHMSkTjbYHEocLHuirZER28/Uta4Iqh5jnhpzanf5rMd x-ms-office365-filtering-correlation-id: 873ae484-1d27-449a-4950-08d6145abf98 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:CY4PR21MB0469; x-ms-traffictypediagnostic: CY4PR21MB0469: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(9452136761055)(85827821059158)(258649278758335); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231344)(944501410)(52105095)(2018427008)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699049)(76991033);SRVR:CY4PR21MB0469;BCL:0;PCL:0;RULEID:;SRVR:CY4PR21MB0469; x-forefront-prvs: 07880C4932 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(39860400002)(346002)(136003)(376002)(199004)(189003)(25786009)(446003)(316002)(86612001)(54906003)(76176011)(86362001)(110136005)(256004)(6486002)(10090500001)(14444005)(26005)(2900100001)(476003)(2616005)(102836004)(5250100002)(22452003)(186003)(6506007)(11346002)(53936002)(217873002)(66066001)(4326008)(486006)(6512007)(107886003)(2906002)(8676002)(105586002)(72206003)(99286004)(1076002)(6666003)(68736007)(2501003)(7736002)(10290500003)(106356001)(305945005)(14454004)(6116002)(3846002)(5660300001)(36756003)(39060400002)(7416002)(478600001)(81166006)(6436002)(97736004)(81156014)(8936002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR21MB0469;H:CY4PR21MB0776.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: e3OCJTNFdDWrzw8DhhAXzRA2znJTBE9ioBKSMH6ivf2rPZvQYLbnzHGXFqPaj/HjIHBl794zHgP5G+8JveojsF75dg2o1Hb0PB7tZc3Oc14w/wMd76hFlK5NYTn/IvZxjC4gObL6X1g4smidwbWVG2xTkICh1p/w24Ucrdo6SzBHHcOHL2ydqodHHjoq9G5r6MTeoBPCAO57dftpb5/gcrbhtZ0z2zm5rSn2qFt/B3gOJGpPvTvKhrSDosbcpHIO1ueTmWNbQxQTr6XMuBaAmezXv4tw6X2YNXvboUo6z7VTIU7rjB2ESmeTDrBPV2HaWEHpx05FSsJbqxbKO2qe/3YYr5Xf/wOpIr4lCy4iKHw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 873ae484-1d27-449a-4950-08d6145abf98 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2018 00:39:30.4870 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0469 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap [ Upstream commit 1d25e3eeed1d987404e2d2e451eebac8c15cecc1 ] Fix 2 printk format warnings (this driver is currently only used by arch/sh/) by using "%pap" instead of "%lx". Fixes these build warnings: ../drivers/mtd/maps/solutionengine.c: In function 'init_soleng_maps': ../include/linux/kern_levels.h:5:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=] ../drivers/mtd/maps/solutionengine.c:62:54: note: format string is defined here printk(KERN_NOTICE "Solution Engine: Flash at 0x%08lx, EPROM at 0x%08lx\n", ~~~~^ %08x ../include/linux/kern_levels.h:5:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=] ../drivers/mtd/maps/solutionengine.c:62:72: note: format string is defined here printk(KERN_NOTICE "Solution Engine: Flash at 0x%08lx, EPROM at 0x%08lx\n", ~~~~^ %08x Cc: David Woodhouse Cc: Brian Norris Cc: Boris Brezillon Cc: Marek Vasut Cc: Richard Weinberger Cc: linux-mtd@lists.infradead.org Cc: Yoshinori Sato Cc: Rich Felker Cc: linux-sh@vger.kernel.org Cc: Sergei Shtylyov Signed-off-by: Randy Dunlap Signed-off-by: Boris Brezillon Signed-off-by: Sasha Levin --- drivers/mtd/maps/solutionengine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/maps/solutionengine.c b/drivers/mtd/maps/solutionengine.c index bb580bc16445..c07f21b20463 100644 --- a/drivers/mtd/maps/solutionengine.c +++ b/drivers/mtd/maps/solutionengine.c @@ -59,9 +59,9 @@ static int __init init_soleng_maps(void) return -ENXIO; } } - printk(KERN_NOTICE "Solution Engine: Flash at 0x%08lx, EPROM at 0x%08lx\n", - soleng_flash_map.phys & 0x1fffffff, - soleng_eprom_map.phys & 0x1fffffff); + printk(KERN_NOTICE "Solution Engine: Flash at 0x%pap, EPROM at 0x%pap\n", + &soleng_flash_map.phys, + &soleng_eprom_map.phys); flash_mtd->owner = THIS_MODULE; eprom_mtd = do_map_probe("map_rom", &soleng_eprom_map);