Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp7293142imm; Tue, 24 Jul 2018 11:31:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeLOHSu6H5xNifZ4w2po1q0j+XPeyVnKWVMd0iXtRxHCmgzOwNNpzSihqQuVmgSNVfwH9/I X-Received: by 2002:a63:cb04:: with SMTP id p4-v6mr16867008pgg.197.1532457108170; Tue, 24 Jul 2018 11:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532457108; cv=none; d=google.com; s=arc-20160816; b=FqHUuFW1Jc29JU4eXBWPSGdnIFLVg1fvxXdU9TQCOV3UkLmbPbxR8GEzVBL+Gv7o9/ q0qt6dYaIVmcEyULxCzyynd2CL3F2KMLiKlbOPCMGWnsTObRhybVMLaeteej/GRl3hRu fF2UDYoKrg2bOc0CaG+YCrudDLS7bH9BRVzKy6iX3gp1I4QXfntnFbMqxDjE/0bFvPXF D7AXTHfVG0jmm4ozgfOopy3CqN2adUn/52aVg+BxQ3oI394IiHRdngr4YlxG+qvQWJ6F /LL+fud2Tmw5MRkUrBUYHrympXgtuBkNGAyD+tTPNZ8wdE3Y6F39wgZGoJazyfCaryu4 Mcsg== 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 :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to:dkim-signature:arc-authentication-results; bh=dcyFEVVOU7+x6eQ6PtkIB6x08xZuSB3oCDlIX9RfMz0=; b=RPmykSEevYg1KKnpQk3tdW7JoELJCiH2R/94Job/gYPJq1HXwrfB9cAF2KHPqI1lvI NtSbz+jo/BB5KYddbDMSqYgY7RMo3+X3knvQicE/wjsWK8TtNUwwuXRo0wzzASX3K7+v vQ8/3pTfk+uSub7gMoMu2LKzUHTt6EaNG6cCVzFxEPOGJqW1KKnEdE0BDAGuUaOTffr1 lURKxphQDq2L0FdeigoXN7NBvb4IbHRPMaJqtk148hXXIW5sHFJ/P4YkTsQ4ZxF1SLVi f4/LY+/rIhiJWr8cnuzf7Lq3EjjYoWcGpleGzsOjMh5g8RYvLoLw7tJzwruHMH1siTJO EN6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=merlin.20170209 header.b="b8CPp/Sc"; 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 f16-v6si12341666pfd.276.2018.07.24.11.31.33; Tue, 24 Jul 2018 11:31:48 -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; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=merlin.20170209 header.b="b8CPp/Sc"; 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 S2388634AbeGXThI (ORCPT + 99 others); Tue, 24 Jul 2018 15:37:08 -0400 Received: from merlin.infradead.org ([205.233.59.134]:35666 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388386AbeGXThI (ORCPT ); Tue, 24 Jul 2018 15:37:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xiLkKjR4IsG9AW/zOu0AYjzpq4F2sfg/CvqV1LGQ9Bo=; b=b8CPp/SchHh6Q/PVCEJ1PSVoSg F27I7pf7dw8aRTsEJwc5rj/00KCBAMmizHQzgjaSo4ZMlXiz+U7b4YJUijiY2rkZjic2VCEMvIQKu 5/sJCQp1viKfHoVFrxXDxPuCPWAujvk1NsPU/Pmqz+0ZfL6iob20Y67RrWOwGjhQHTNzsSjq9d0yk XoTpU0T5RconzishuROWvNYY402VjWc+w8OcGHCm8I4O3Dve1p8ArgFdoJu2kPW8FmlcaXzrfJNfv YCigBCSQ4IfBfHtBDMFyq+1g2JdkGDtLGUOX+AWsdXLVOow7S0UNewJUkZeSoqu+Y2jHIyfzDqCZ5 s/aBnqsA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fi23T-0003H0-2w; Tue, 24 Jul 2018 18:29:03 +0000 To: LKML , linux-sh@vger.kernel.org, linux-mtd@lists.infradead.org Cc: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Yoshinori Sato , Rich Felker , Sergei Shtylyov From: Randy Dunlap Subject: [PATCH v3] mtd/maps: fix solutionengine.c printk format warnings Message-ID: <578dd079-80d0-939a-fbfd-ae101da1dc29@infradead.org> Date: Tue, 24 Jul 2018 11:29:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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);