[PATCH] mtd: nand: pasemi: switch to pr_* functions

kbuild test robot lkp at intel.com
Fri Apr 8 20:52:50 AEST 2016


Hi RafaƂ,

[auto build test WARNING on mtd/master]
[also build test WARNING on v4.6-rc2 next-20160408]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Rafa-Mi-ecki/mtd-nand-pasemi-switch-to-pr_-functions/20160408-183554
base:   git://git.infradead.org/linux-mtd.git master
config: powerpc-allmodconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:6:0,
                    from include/linux/kernel.h:13,
                    from include/asm-generic/bug.h:13,
                    from arch/powerpc/include/asm/bug.h:127,
                    from include/linux/bug.h:4,
                    from include/linux/mmdebug.h:4,
                    from include/linux/gfp.h:4,
                    from include/linux/slab.h:14,
                    from drivers/mtd/nand/pasemi_nand.c:25:
   drivers/mtd/nand/pasemi_nand.c: In function 'pasemi_nand_probe':
   include/linux/kern_levels.h:4:18: warning: format '%zx' expects argument of type 'size_t', but argument 2 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH'
    #define KERN_INFO KERN_SOH "6" /* informational */
                      ^
   include/linux/printk.h:259:9: note: in expansion of macro 'KERN_INFO'
     printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
            ^
>> drivers/mtd/nand/pasemi_nand.c:169:2: note: in expansion of macro 'pr_info'
     pr_info("PA Semi NAND flash at %08zx, control at I/O %x\n", res.start,
     ^

vim +/pr_info +169 drivers/mtd/nand/pasemi_nand.c

   153	
   154		/* Enable the following for a flash based bad block table */
   155		chip->bbt_options = NAND_BBT_USE_FLASH;
   156	
   157		/* Scan to find existence of the device */
   158		if (nand_scan(pasemi_nand_mtd, 1)) {
   159			err = -ENXIO;
   160			goto out_lpc;
   161		}
   162	
   163		if (mtd_device_register(pasemi_nand_mtd, NULL, 0)) {
   164			pr_err("pasemi_nand: Unable to register MTD device\n");
   165			err = -ENODEV;
   166			goto out_lpc;
   167		}
   168	
 > 169		pr_info("PA Semi NAND flash at %08zx, control at I/O %x\n", res.start,
   170			lpcctl);
   171	
   172		return 0;
   173	
   174	 out_lpc:
   175		release_region(lpcctl, 4);
   176	 out_ior:
   177		iounmap(chip->IO_ADDR_R);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 48562 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20160408/a30c7551/attachment-0001.obj>


More information about the Linuxppc-dev mailing list