All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Balamanikandan Gunasundar  <balamanikandan.gunasundar@microchip.com>
Cc: kbuild-all@lists.01.org, linux-usb@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Dan Sneddon <dan.sneddon@microchip.com>
Subject: [usb:usb-next 10/16] include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'struct gpio_desc *'
Date: Mon, 22 Nov 2021 15:25:15 +0800	[thread overview]
Message-ID: <202111221500.FceOFOcN-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next
head:   4616dddcfaf75cfbfbff7ce8a468038c697444ce
commit: 4a555f2b8d31d2dae523b56613a14360061e4c76 [10/16] usb: gadget: at91_udc: Convert to GPIO descriptors
config: arm-randconfig-r016-20211121 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id=4a555f2b8d31d2dae523b56613a14360061e4c76
        git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
        git fetch --no-tags usb usb-next
        git checkout 4a555f2b8d31d2dae523b56613a14360061e4c76
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm 

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/kernel.h:20,
                    from drivers/usb/gadget/udc/at91_udc.c:13:
   drivers/usb/gadget/udc/at91_udc.c: In function 'at91udc_probe':
>> include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'struct gpio_desc *' [-Wformat=]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap'
     418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:573:9: note: in expansion of macro 'printk'
     573 |         printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   include/linux/kern_levels.h:15:25: note: in expansion of macro 'KERN_SOH'
      15 | #define KERN_DEBUG      KERN_SOH "7"    /* debug-level messages */
         |                         ^~~~~~~~
   include/linux/printk.h:573:16: note: in expansion of macro 'KERN_DEBUG'
     573 |         printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
         |                ^~~~~~~~~~
   drivers/usb/gadget/udc/at91_udc.h:174:33: note: in expansion of macro 'pr_debug'
     174 | #define DBG(stuff...)           pr_debug("udc: " stuff)
         |                                 ^~~~~~~~
   drivers/usb/gadget/udc/at91_udc.c:1897:33: note: in expansion of macro 'DBG'
    1897 |                                 DBG("request vbus irq %d failed\n",
         |                                 ^~~
--
   In file included from include/linux/kernel.h:20,
                    from drivers/usb/gadget/udc/at91_udc.c:13:
   drivers/usb/gadget/udc/at91_udc.c: In function 'at91udc_probe':
>> include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'struct gpio_desc *' [-Wformat=]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap'
     418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:132:17: note: in expansion of macro 'printk'
     132 |                 printk(fmt, ##__VA_ARGS__);             \
         |                 ^~~~~~
   include/linux/printk.h:576:9: note: in expansion of macro 'no_printk'
     576 |         no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~
   include/linux/kern_levels.h:15:25: note: in expansion of macro 'KERN_SOH'
      15 | #define KERN_DEBUG      KERN_SOH "7"    /* debug-level messages */
         |                         ^~~~~~~~
   include/linux/printk.h:576:19: note: in expansion of macro 'KERN_DEBUG'
     576 |         no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
         |                   ^~~~~~~~~~
   drivers/usb/gadget/udc/at91_udc.h:174:33: note: in expansion of macro 'pr_debug'
     174 | #define DBG(stuff...)           pr_debug("udc: " stuff)
         |                                 ^~~~~~~~
   drivers/usb/gadget/udc/at91_udc.c:1897:33: note: in expansion of macro 'DBG'
    1897 |                                 DBG("request vbus irq %d failed\n",
         |                                 ^~~


vim +5 include/linux/kern_levels.h

314ba3520e513a Joe Perches 2012-07-30  4  
04d2c8c83d0e3a Joe Perches 2012-07-30 @5  #define KERN_SOH	"\001"		/* ASCII Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30  6  #define KERN_SOH_ASCII	'\001'
04d2c8c83d0e3a Joe Perches 2012-07-30  7  

:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern

:::::: TO: Joe Perches <joe@perches.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.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: 39714 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [usb:usb-next 10/16] include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'struct gpio_desc *'
Date: Mon, 22 Nov 2021 15:25:15 +0800	[thread overview]
Message-ID: <202111221500.FceOFOcN-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next
head:   4616dddcfaf75cfbfbff7ce8a468038c697444ce
commit: 4a555f2b8d31d2dae523b56613a14360061e4c76 [10/16] usb: gadget: at91_udc: Convert to GPIO descriptors
config: arm-randconfig-r016-20211121 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id=4a555f2b8d31d2dae523b56613a14360061e4c76
        git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
        git fetch --no-tags usb usb-next
        git checkout 4a555f2b8d31d2dae523b56613a14360061e4c76
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm 

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/kernel.h:20,
                    from drivers/usb/gadget/udc/at91_udc.c:13:
   drivers/usb/gadget/udc/at91_udc.c: In function 'at91udc_probe':
>> include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'struct gpio_desc *' [-Wformat=]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap'
     418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:573:9: note: in expansion of macro 'printk'
     573 |         printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   include/linux/kern_levels.h:15:25: note: in expansion of macro 'KERN_SOH'
      15 | #define KERN_DEBUG      KERN_SOH "7"    /* debug-level messages */
         |                         ^~~~~~~~
   include/linux/printk.h:573:16: note: in expansion of macro 'KERN_DEBUG'
     573 |         printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
         |                ^~~~~~~~~~
   drivers/usb/gadget/udc/at91_udc.h:174:33: note: in expansion of macro 'pr_debug'
     174 | #define DBG(stuff...)           pr_debug("udc: " stuff)
         |                                 ^~~~~~~~
   drivers/usb/gadget/udc/at91_udc.c:1897:33: note: in expansion of macro 'DBG'
    1897 |                                 DBG("request vbus irq %d failed\n",
         |                                 ^~~
--
   In file included from include/linux/kernel.h:20,
                    from drivers/usb/gadget/udc/at91_udc.c:13:
   drivers/usb/gadget/udc/at91_udc.c: In function 'at91udc_probe':
>> include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'struct gpio_desc *' [-Wformat=]
       5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
         |                         ^~~~~~
   include/linux/printk.h:418:25: note: in definition of macro 'printk_index_wrap'
     418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ^~~~
   include/linux/printk.h:132:17: note: in expansion of macro 'printk'
     132 |                 printk(fmt, ##__VA_ARGS__);             \
         |                 ^~~~~~
   include/linux/printk.h:576:9: note: in expansion of macro 'no_printk'
     576 |         no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~
   include/linux/kern_levels.h:15:25: note: in expansion of macro 'KERN_SOH'
      15 | #define KERN_DEBUG      KERN_SOH "7"    /* debug-level messages */
         |                         ^~~~~~~~
   include/linux/printk.h:576:19: note: in expansion of macro 'KERN_DEBUG'
     576 |         no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
         |                   ^~~~~~~~~~
   drivers/usb/gadget/udc/at91_udc.h:174:33: note: in expansion of macro 'pr_debug'
     174 | #define DBG(stuff...)           pr_debug("udc: " stuff)
         |                                 ^~~~~~~~
   drivers/usb/gadget/udc/at91_udc.c:1897:33: note: in expansion of macro 'DBG'
    1897 |                                 DBG("request vbus irq %d failed\n",
         |                                 ^~~


vim +5 include/linux/kern_levels.h

314ba3520e513a Joe Perches 2012-07-30  4  
04d2c8c83d0e3a Joe Perches 2012-07-30 @5  #define KERN_SOH	"\001"		/* ASCII Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30  6  #define KERN_SOH_ASCII	'\001'
04d2c8c83d0e3a Joe Perches 2012-07-30  7  

:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern

:::::: TO: Joe Perches <joe@perches.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.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: 39714 bytes --]

             reply	other threads:[~2021-11-22  7:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-22  7:25 kernel test robot [this message]
2021-11-22  7:25 ` [usb:usb-next 10/16] include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'struct gpio_desc *' kernel test robot

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=202111221500.FceOFOcN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=balamanikandan.gunasundar@microchip.com \
    --cc=dan.sneddon@microchip.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-usb@vger.kernel.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.