All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:pending-fixes 192/251] drivers/soc/ixp4xx/ixp4xx-npe.c:696:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'}
Date: Tue, 03 Aug 2021 13:04:20 +0800	[thread overview]
Message-ID: <202108031301.4AzM3lEd-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 13701 bytes --]

Hi Arnd,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git pending-fixes
head:   be32e0f17dc184e41da2e83e5bf700f3f1c7e93f
commit: 7f94b69ece515ac82defa60ef7cba2cf26180216 [192/251] ARM: ixp4xx: fix compile-testing soc drivers
config: mips-randconfig-s032-20210803 (attached as .config)
compiler: mips64-linux-gcc (GCC) 10.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7f94b69ece515ac82defa60ef7cba2cf26180216
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next pending-fixes
        git checkout 7f94b69ece515ac82defa60ef7cba2cf26180216
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:7,
                    from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
   drivers/soc/ixp4xx/ixp4xx-npe.c: In function 'ixp4xx_npe_probe':
>> drivers/soc/ixp4xx/ixp4xx-npe.c:696:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     696 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:696:4: note: in expansion of macro 'dev_info'
     696 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
         |    ^~~~~~~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:696:33: note: format string is defined here
     696 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
         |                              ~~~^
         |                                 |
         |                                 unsigned int
         |                              %08llx
   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:7,
                    from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
   drivers/soc/ixp4xx/ixp4xx-npe.c:696:18: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     696 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:696:4: note: in expansion of macro 'dev_info'
     696 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
         |    ^~~~~~~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:696:40: note: format string is defined here
     696 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
         |                                     ~~~^
         |                                        |
         |                                        unsigned int
         |                                     %08llx
   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:7,
                    from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
   drivers/soc/ixp4xx/ixp4xx-npe.c:705:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     705 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:705:4: note: in expansion of macro 'dev_info'
     705 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
         |    ^~~~~~~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:705:33: note: format string is defined here
     705 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
         |                              ~~~^
         |                                 |
         |                                 unsigned int
         |                              %08llx
   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:7,
                    from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
   drivers/soc/ixp4xx/ixp4xx-npe.c:705:18: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     705 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:705:4: note: in expansion of macro 'dev_info'
     705 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
         |    ^~~~~~~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:705:40: note: format string is defined here
     705 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
         |                                     ~~~^
         |                                        |
         |                                        unsigned int
         |                                     %08llx
   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:7,
                    from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
   drivers/soc/ixp4xx/ixp4xx-npe.c:710:17: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     710 |   dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:710:3: note: in expansion of macro 'dev_info'
     710 |   dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
         |   ^~~~~~~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:710:32: note: format string is defined here
     710 |   dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
         |                             ~~~^
         |                                |
         |                                unsigned int
         |                             %08llx
   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:7,
                    from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
   drivers/soc/ixp4xx/ixp4xx-npe.c:710:17: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     710 |   dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:710:3: note: in expansion of macro 'dev_info'
     710 |   dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
         |   ^~~~~~~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:710:39: note: format string is defined here
     710 |   dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",


vim +696 drivers/soc/ixp4xx/ixp4xx-npe.c

82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  679  
bc4d7eafb7ad59 drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  680  static int ixp4xx_npe_probe(struct platform_device *pdev)
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  681  {
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  682  	int i, found = 0;
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  683  	struct device *dev = &pdev->dev;
76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2021-05-25  684  	struct device_node *np = dev->of_node;
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  685  	struct resource *res;
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  686  
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  687  	for (i = 0; i < NPE_COUNT; i++) {
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  688  		struct npe *npe = &npe_tab[i];
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  689  
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  690  		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  691  		if (!res)
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  692  			return -ENODEV;
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  693  
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  694  		if (!(ixp4xx_read_feature_bits() &
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  695  		      (IXP4XX_FEATURE_RESET_NPEA << i))) {
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10 @696  			dev_info(dev, "NPE%d@0x%08x-0x%08x not available\n",
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  697  				 i, res->start, res->end);
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  698  			continue; /* NPE already disabled or not present */
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  699  		}
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  700  		npe->regs = devm_ioremap_resource(dev, res);
cd3967bee004bc drivers/soc/ixp4xx/ixp4xx-npe.c   Dan Carpenter    2019-06-18  701  		if (IS_ERR(npe->regs))
cd3967bee004bc drivers/soc/ixp4xx/ixp4xx-npe.c   Dan Carpenter    2019-06-18  702  			return PTR_ERR(npe->regs);
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  703  
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  704  		if (npe_reset(npe)) {
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  705  			dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  706  				 i, res->start, res->end);
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  707  			continue;
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  708  		}
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  709  		npe->valid = 1;
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  710  		dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  711  			 i, res->start, res->end);
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  712  		found++;
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  713  	}
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  714  
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  715  	if (!found)
3ba8c792055286 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Hałasa 2009-04-28  716  		return -ENODEV;
76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2021-05-25  717  
76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2021-05-25  718  	/* Spawn crypto subdevice if using device tree */
76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2021-05-25  719  	if (IS_ENABLED(CONFIG_OF) && np)
76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2021-05-25  720  		devm_of_platform_populate(dev);
76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2021-05-25  721  
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  722  	return 0;
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  723  }
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  724  

:::::: The code at line 696 was first introduced by commit
:::::: 0b458d7b10f83eb34b84957e6cf47cee2a97bc49 soc: ixp4xx: npe: Pass addresses as resources

:::::: TO: Linus Walleij <linus.walleij@linaro.org>
:::::: CC: Linus Walleij <linus.walleij@linaro.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27517 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Linus Walleij <linus.walleij@linaro.org>
Subject: [linux-next:pending-fixes 192/251] drivers/soc/ixp4xx/ixp4xx-npe.c:696:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'}
Date: Tue, 3 Aug 2021 13:04:20 +0800	[thread overview]
Message-ID: <202108031301.4AzM3lEd-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 13702 bytes --]

Hi Arnd,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git pending-fixes
head:   be32e0f17dc184e41da2e83e5bf700f3f1c7e93f
commit: 7f94b69ece515ac82defa60ef7cba2cf26180216 [192/251] ARM: ixp4xx: fix compile-testing soc drivers
config: mips-randconfig-s032-20210803 (attached as .config)
compiler: mips64-linux-gcc (GCC) 10.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7f94b69ece515ac82defa60ef7cba2cf26180216
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next pending-fixes
        git checkout 7f94b69ece515ac82defa60ef7cba2cf26180216
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:7,
                    from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
   drivers/soc/ixp4xx/ixp4xx-npe.c: In function 'ixp4xx_npe_probe':
>> drivers/soc/ixp4xx/ixp4xx-npe.c:696:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     696 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:696:4: note: in expansion of macro 'dev_info'
     696 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
         |    ^~~~~~~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:696:33: note: format string is defined here
     696 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
         |                              ~~~^
         |                                 |
         |                                 unsigned int
         |                              %08llx
   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:7,
                    from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
   drivers/soc/ixp4xx/ixp4xx-npe.c:696:18: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     696 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:696:4: note: in expansion of macro 'dev_info'
     696 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
         |    ^~~~~~~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:696:40: note: format string is defined here
     696 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
         |                                     ~~~^
         |                                        |
         |                                        unsigned int
         |                                     %08llx
   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:7,
                    from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
   drivers/soc/ixp4xx/ixp4xx-npe.c:705:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     705 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:705:4: note: in expansion of macro 'dev_info'
     705 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
         |    ^~~~~~~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:705:33: note: format string is defined here
     705 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
         |                              ~~~^
         |                                 |
         |                                 unsigned int
         |                              %08llx
   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:7,
                    from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
   drivers/soc/ixp4xx/ixp4xx-npe.c:705:18: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     705 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:705:4: note: in expansion of macro 'dev_info'
     705 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
         |    ^~~~~~~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:705:40: note: format string is defined here
     705 |    dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
         |                                     ~~~^
         |                                        |
         |                                        unsigned int
         |                                     %08llx
   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:7,
                    from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
   drivers/soc/ixp4xx/ixp4xx-npe.c:710:17: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     710 |   dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:710:3: note: in expansion of macro 'dev_info'
     710 |   dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
         |   ^~~~~~~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:710:32: note: format string is defined here
     710 |   dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
         |                             ~~~^
         |                                |
         |                                unsigned int
         |                             %08llx
   In file included from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:7,
                    from drivers/soc/ixp4xx/ixp4xx-npe.c:15:
   drivers/soc/ixp4xx/ixp4xx-npe.c:710:17: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t' {aka 'long long unsigned int'} [-Wformat=]
     710 |   dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
      19 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:710:3: note: in expansion of macro 'dev_info'
     710 |   dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
         |   ^~~~~~~~
   drivers/soc/ixp4xx/ixp4xx-npe.c:710:39: note: format string is defined here
     710 |   dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",


vim +696 drivers/soc/ixp4xx/ixp4xx-npe.c

82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  679  
bc4d7eafb7ad59 drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  680  static int ixp4xx_npe_probe(struct platform_device *pdev)
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  681  {
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  682  	int i, found = 0;
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  683  	struct device *dev = &pdev->dev;
76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2021-05-25  684  	struct device_node *np = dev->of_node;
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  685  	struct resource *res;
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  686  
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  687  	for (i = 0; i < NPE_COUNT; i++) {
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  688  		struct npe *npe = &npe_tab[i];
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  689  
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  690  		res = platform_get_resource(pdev, IORESOURCE_MEM, i);
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  691  		if (!res)
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  692  			return -ENODEV;
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  693  
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  694  		if (!(ixp4xx_read_feature_bits() &
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  695  		      (IXP4XX_FEATURE_RESET_NPEA << i))) {
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10 @696  			dev_info(dev, "NPE%d at 0x%08x-0x%08x not available\n",
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  697  				 i, res->start, res->end);
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  698  			continue; /* NPE already disabled or not present */
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  699  		}
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  700  		npe->regs = devm_ioremap_resource(dev, res);
cd3967bee004bc drivers/soc/ixp4xx/ixp4xx-npe.c   Dan Carpenter    2019-06-18  701  		if (IS_ERR(npe->regs))
cd3967bee004bc drivers/soc/ixp4xx/ixp4xx-npe.c   Dan Carpenter    2019-06-18  702  			return PTR_ERR(npe->regs);
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  703  
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  704  		if (npe_reset(npe)) {
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  705  			dev_info(dev, "NPE%d at 0x%08x-0x%08x does not reset\n",
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  706  				 i, res->start, res->end);
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  707  			continue;
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  708  		}
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  709  		npe->valid = 1;
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  710  		dev_info(dev, "NPE%d at 0x%08x-0x%08x registered\n",
0b458d7b10f83e drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2019-02-10  711  			 i, res->start, res->end);
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  712  		found++;
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  713  	}
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  714  
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  715  	if (!found)
3ba8c792055286 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Hałasa 2009-04-28  716  		return -ENODEV;
76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2021-05-25  717  
76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2021-05-25  718  	/* Spawn crypto subdevice if using device tree */
76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2021-05-25  719  	if (IS_ENABLED(CONFIG_OF) && np)
76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2021-05-25  720  		devm_of_platform_populate(dev);
76f24b4f46b8ca drivers/soc/ixp4xx/ixp4xx-npe.c   Linus Walleij    2021-05-25  721  
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  722  	return 0;
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  723  }
82a96f5790ac93 arch/arm/mach-ixp4xx/ixp4xx_npe.c Krzysztof Halasa 2008-01-01  724  

:::::: The code at line 696 was first introduced by commit
:::::: 0b458d7b10f83eb34b84957e6cf47cee2a97bc49 soc: ixp4xx: npe: Pass addresses as resources

:::::: TO: Linus Walleij <linus.walleij@linaro.org>
:::::: CC: Linus Walleij <linus.walleij@linaro.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27517 bytes --]

             reply	other threads:[~2021-08-03  5:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-03  5:04 kernel test robot [this message]
2021-08-03  5:04 ` [linux-next:pending-fixes 192/251] drivers/soc/ixp4xx/ixp4xx-npe.c:696:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} kernel test robot
2021-08-03  8:06 ` Arnd Bergmann
2021-08-03  8:06   ` Arnd Bergmann
2021-08-03  9:29   ` Linus Walleij
2021-08-03  9:29     ` Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202108031301.4AzM3lEd-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.