Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp507imm; Thu, 26 Jul 2018 12:45:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdgtMrHKkvqPLsmgxEu8Qjp44uLmhgi44aOC3IGj0wY9syKsPxnFKV23bHzhDiXHMvCupgt X-Received: by 2002:a17:902:6a83:: with SMTP id n3-v6mr3180308plk.246.1532634304110; Thu, 26 Jul 2018 12:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532634304; cv=none; d=google.com; s=arc-20160816; b=ulxLtqkaICiAe7GZTi/gPxInJlvpo1u27NphjhhgD/B2fwUvHz2ZVap5/zN6yv+LsW cF6VRHrGePNdotoFJs4hBnlYD9U8u2XxQLVYBykQda0N8S9pvLYaESbXRImxun0Dizif 9br/o6z+NdL86du5lzhjqP7GbTa9V0ut84MqUyUynlfCXhnd0roCk0Z7ncL1ZuX+O5RT H/kptW7ln7KFz6zU8e2fbF+utkoX1zVntB0PCNNITQ68AUo8dU7d5+mcA9GxiyiIPva+ hKWLRQc+omHMUs8d+CUooGUDnlTvIt+tSmIkToAiPHCpgNnvupH7EUzzD2f2aQaW+V7E eBBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=M3w0Th5zuerPZWN/V1GlbYk9834mUJgBU6G+VTRSjV8=; b=eo5bvhvnoQsd3S+OWYM+5O18tgZp23/fZATXuaT4K1ugeuFaWqS8bJKBYvOw6fFMCN +gnuCv0J/41PIat8XeE/QjzQ4ae6EJt2ERhnNrSKmp4bbTKFUPd4sVzbSUaqlXuCbMju Au6mdvsTCyo6KXlhEIfXYo9YcEGN6Mjl/L39axBA0CdNIYzzsiRH7s814eldzNjKgd9v lyRXjOOTmZ5VAjCVewe1ljt5QLsZ5SxSvDMxS13b1sMrSEZ6fI0Soo7hinO1cCt4pBos xpz4cEG3hEbyCIjA3fS4pv4BPS3+EuxRtXWWcLecN7AT77EQL7PMXQNLBgZt+0K7B4RH /7Tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5-v6si1838691ple.417.2018.07.26.12.44.45; Thu, 26 Jul 2018 12:45:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731441AbeGZVCH (ORCPT + 99 others); Thu, 26 Jul 2018 17:02:07 -0400 Received: from mail.bootlin.com ([62.4.15.54]:44944 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730989AbeGZVCH (ORCPT ); Thu, 26 Jul 2018 17:02:07 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 8FD1F2093C; Thu, 26 Jul 2018 21:43:45 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (unknown [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 30DB420740; Thu, 26 Jul 2018 21:43:35 +0200 (CEST) Date: Thu, 26 Jul 2018 21:43:35 +0200 From: Boris Brezillon To: Randy Dunlap Cc: LKML , linux-sh@vger.kernel.org, linux-mtd@lists.infradead.org, Rich Felker , Sergei Shtylyov , Yoshinori Sato , Marek Vasut , Richard Weinberger , Brian Norris , David Woodhouse Subject: Re: [PATCH v3] mtd/maps: fix solutionengine.c printk format warnings Message-ID: <20180726214335.047e877e@bbrezillon> In-Reply-To: <578dd079-80d0-939a-fbfd-ae101da1dc29@infradead.org> References: <578dd079-80d0-939a-fbfd-ae101da1dc29@infradead.org> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Jul 2018 11:29:01 -0700 Randy Dunlap wrote: > From: Randy Dunlap > > 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 Applied. Thanks, Boris > --- > v3: drop anding the phys addresses with 0x1fffffff since the only > phys addresses are 0 or 0x01000000. > > drivers/mtd/maps/solutionengine.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > --- linux-next-20180717.orig/drivers/mtd/maps/solutionengine.c > +++ linux-next-20180717/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); > > > > ______________________________________________________ > Linux MTD discussion mailing list > http://lists.infradead.org/mailman/listinfo/linux-mtd/