linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [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'}
@ 2021-08-03  5:04 kernel test robot
  2021-08-03  8:06 ` Arnd Bergmann
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2021-08-03  5:04 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: kbuild-all, Linux Memory Management List, Linus Walleij

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [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'}
  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  9:29   ` Linus Walleij
  0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2021-08-03  8:06 UTC (permalink / raw)
  To: kernel test robot
  Cc: Arnd Bergmann, kbuild-all, Linux Memory Management List, Linus Walleij

On Tue, Aug 3, 2021 at 7:04 AM kernel test robot <lkp@intel.com> wrote:
>
> 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>

I had a fix for this in my randconfig test tree, turns out it was
never submitted.
Adding it now to my arm/fixes branch, and sending it to the list.

       Arnd


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [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'}
  2021-08-03  8:06 ` Arnd Bergmann
@ 2021-08-03  9:29   ` Linus Walleij
  0 siblings, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2021-08-03  9:29 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: kernel test robot, kbuild-all, Linux Memory Management List

On Tue, Aug 3, 2021 at 10:07 AM Arnd Bergmann <arnd@arndb.de> wrote:

> I had a fix for this in my randconfig test tree, turns out it was
> never submitted.
> Adding it now to my arm/fixes branch, and sending it to the list.

Thanks a lot for fixing this Arnd!

Yours,
Linus Walleij


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-03  9:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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  9:29   ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).