1
0
Fork 0
remarkable-linux/drivers/mtd/maps
Randy Dunlap 28b6561183 mtd/maps: fix solutionengine.c printk format warnings
[ Upstream commit 1d25e3eeed ]

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 <dwmw2@infradead.org>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Boris Brezillon <boris.brezillon@bootlin.com>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: linux-mtd@lists.infradead.org
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: linux-sh@vger.kernel.org
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-26 08:38:00 +02:00
..
Kconfig mtd: physmap_of: add a hook for Gemini flash probing 2017-02-08 13:01:00 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
amd76xrom.c mtd: amd76xrom: constify pci_device_id. 2017-08-15 14:00:45 +02:00
bfin-async-flash.c mtd: bfin-async-flash: Remove unused variable 2014-10-22 01:35:41 -07:00
cfi_flagadm.c
ck804xrom.c mtd: ck804xrom: constify pci_device_id. 2017-08-15 14:00:46 +02:00
dc21285.c mtd: dc21285: use raw spinlock functions for nw_gpio_lock 2015-05-28 12:01:29 -07:00
esb2rom.c mtd: esb2rom: constify pci_device_id. 2017-08-15 14:00:45 +02:00
gpio-addr-flash.c mtd: maps: gpio-addr-flash: show parent device in sysfs 2015-10-13 12:56:18 -07:00
ichxrom.c mtd: ichxrom: constify pci_device_id. 2017-08-15 14:00:44 +02:00
impa7.c
intel_vr_nor.c mtd: intel_vr_nor: constify pci_device_id. 2017-08-15 14:00:46 +02:00
ixp4xx.c mtd: maps: ixp4xx: show parent device in sysfs 2015-10-13 12:56:19 -07:00
l440gx.c
lantiq-flash.c mtd: lantiq-flash: drop check of boot select 2017-09-04 13:53:15 +02:00
latch-addr-flash.c mtd: maps: latch-addr-flash: show parent device in sysfs 2015-10-13 12:56:21 -07:00
map_funcs.c
netsc520.c
nettel.c mtd: nettel: do not ignore mtd_device_register() failure in nettel_init() 2015-08-18 17:33:34 -07:00
pci.c mtd: pci: constify pci_device_id. 2017-08-15 14:00:46 +02:00
pcmciamtd.c drivers/mtd/maps/pcmciamtd.c: __iomem annotations 2016-01-04 10:28:56 -05:00
physmap.c mtd: maps: physmap: drop owner assignment 2015-10-13 12:56:21 -07:00
physmap_of_core.c mtd: physmap_of: Fix resources leak in 'of_flash_probe()' 2017-08-15 14:00:47 +02:00
physmap_of_gemini.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
physmap_of_gemini.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
physmap_of_versatile.c mtd: physmap_of: Drop unnecessary static 2017-08-15 14:00:43 +02:00
physmap_of_versatile.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pismo.c
plat-ram.c mtd: maps: plat_ram: drop owner assignment 2015-10-13 12:56:22 -07:00
pmcmsp-flash.c mtd: pmcmsp: use kstrndup instead of kmalloc+strncpy 2017-02-08 13:15:49 -08:00
pxa2xx-flash.c mtd: pxa2xx-flash: switch back from memremap to ioremap_cached 2016-04-04 10:26:40 +02:00
rbtx4939-flash.c mtd: maps: rbtx4939-flash: fix compile error 2015-10-19 18:21:25 -07:00
sa1100-flash.c mtd: maps: sa1100-flash: potential NULL dereference 2016-07-15 18:40:25 -07:00
sbc_gxx.c
sc520cdp.c mtd: maps: add missing iounmap() in error path 2016-11-30 18:30:24 -08:00
scb2_flash.c
scx200_docflash.c
solutionengine.c mtd/maps: fix solutionengine.c printk format warnings 2018-09-26 08:38:00 +02:00
sun_uflash.c mtd: Convert to using %pOF instead of full_name 2017-08-15 14:00:43 +02:00
ts5500_flash.c mtd: ts5500_flash: Fix typo in MODULE_DESCRIPTION in ts5500_flash.c 2015-03-30 20:19:44 -07:00
tsunami_flash.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
uclinux.c mtd: maps: make uclinux.c driver more explicitly non-modular 2016-04-25 20:19:13 -07:00
vmu-flash.c