All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 5015/5173] include/drm/drmP.h:178:2: note: in expansion of macro '_DRM_PRINTK'
Date: Wed, 9 Nov 2016 16:46:09 +0800	[thread overview]
Message-ID: <201611091657.OOsciPLy%fengguang.wu@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6b9ac964c292bfc0f8e948392ec1914e40abae63
commit: ae751ceb4237be6781b205ab196ef887a2836cf2 [5015/5173] m32r: add simple dma
config: m32r-allmodconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 6.2.0
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
        git checkout ae751ceb4237be6781b205ab196ef887a2836cf2
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:6:0,
                    from include/linux/kernel.h:13,
                    from include/linux/list.h:8,
                    from include/linux/kobject.h:20,
                    from include/linux/device.h:17,
                    from include/linux/i2c.h:30,
                    from include/drm/drm_crtc.h:28,
                    from include/drm/drm_atomic.h:31,
                    from drivers/gpu/drm/vc4/vc4_crtc.c:34:
   drivers/gpu/drm/vc4/vc4_crtc.c: In function 'vc4_crtc_dump_regs':
   include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type '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/drm/drmP.h:173:16: note: in expansion of macro 'KERN_INFO'
      printk##once(KERN_##level "[" DRM_NAME "] " fmt, \
                   ^~~~~
>> include/drm/drmP.h:178:2: note: in expansion of macro '_DRM_PRINTK'
     _DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~
   drivers/gpu/drm/vc4/vc4_crtc.c:118:3: note: in expansion of macro 'DRM_INFO'
      DRM_INFO("0x%04x (%s): 0x%08x\n",
      ^~~~~~~~
   drivers/gpu/drm/vc4/vc4_crtc.c: In function 'vc4_crtc_debugfs_regs':
   drivers/gpu/drm/vc4/vc4_crtc.c:145:36: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=]
      seq_printf(m, "%s (0x%04x): 0x%08x\n",
                                       ^
--
   In file included from include/linux/printk.h:6:0,
                    from include/linux/kernel.h:13,
                    from include/linux/list.h:8,
                    from include/linux/kobject.h:20,
                    from include/linux/device.h:17,
                    from include/linux/i2c.h:30,
                    from include/drm/drm_crtc.h:28,
                    from include/drm/drm_atomic_helper.h:31,
                    from drivers/gpu/drm/vc4/vc4_dpi.c:24:
   drivers/gpu/drm/vc4/vc4_dpi.c: In function 'vc4_dpi_dump_regs':
   include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type '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/drm/drmP.h:173:16: note: in expansion of macro 'KERN_INFO'
      printk##once(KERN_##level "[" DRM_NAME "] " fmt, \
                   ^~~~~
>> include/drm/drmP.h:178:2: note: in expansion of macro '_DRM_PRINTK'
     _DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~
   drivers/gpu/drm/vc4/vc4_dpi.c:152:3: note: in expansion of macro 'DRM_INFO'
      DRM_INFO("0x%04x (%s): 0x%08x\n",
      ^~~~~~~~
   drivers/gpu/drm/vc4/vc4_dpi.c: In function 'vc4_dpi_debugfs_regs':
   drivers/gpu/drm/vc4/vc4_dpi.c:171:36: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=]
      seq_printf(m, "%s (0x%04x): 0x%08x\n",
                                       ^
   drivers/gpu/drm/vc4/vc4_dpi.c: In function 'vc4_dpi_bind':
   drivers/gpu/drm/vc4/vc4_dpi.c:422:36: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=]
      dev_err(dev, "Port returned 0x%08x for ID instead of 0x%08x\n",
                                       ^
--
   drivers/gpu/drm/vc4/vc4_hdmi.c: In function 'vc4_hdmi_debugfs_regs':
   drivers/gpu/drm/vc4/vc4_hdmi.c:133:36: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=]
      seq_printf(m, "%s (0x%04x): 0x%08x\n",
                                       ^
   drivers/gpu/drm/vc4/vc4_hdmi.c:139:36: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=]
      seq_printf(m, "%s (0x%04x): 0x%08x\n",
                                       ^
   In file included from include/linux/printk.h:6:0,
                    from include/linux/kernel.h:13,
                    from include/linux/list.h:8,
                    from include/linux/kobject.h:20,
                    from include/linux/device.h:17,
                    from include/linux/i2c.h:30,
                    from include/drm/drm_crtc.h:28,
                    from include/drm/drm_atomic_helper.h:31,
                    from drivers/gpu/drm/vc4/vc4_hdmi.c:28:
   drivers/gpu/drm/vc4/vc4_hdmi.c: In function 'vc4_hdmi_dump_regs':
   include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type '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/drm/drmP.h:173:16: note: in expansion of macro 'KERN_INFO'
      printk##once(KERN_##level "[" DRM_NAME "] " fmt, \
                   ^~~~~
>> include/drm/drmP.h:178:2: note: in expansion of macro '_DRM_PRINTK'
     _DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~
   drivers/gpu/drm/vc4/vc4_hdmi.c:154:3: note: in expansion of macro 'DRM_INFO'
      DRM_INFO("0x%04x (%s): 0x%08x\n",
      ^~~~~~~~
   include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type '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/drm/drmP.h:173:16: note: in expansion of macro 'KERN_INFO'
      printk##once(KERN_##level "[" DRM_NAME "] " fmt, \
                   ^~~~~
>> include/drm/drmP.h:178:2: note: in expansion of macro '_DRM_PRINTK'
     _DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~
   drivers/gpu/drm/vc4/vc4_hdmi.c:159:3: note: in expansion of macro 'DRM_INFO'
      DRM_INFO("0x%04x (%s): 0x%08x\n",
      ^~~~~~~~
--
   In file included from include/linux/printk.h:6:0,
                    from include/linux/kernel.h:13,
                    from include/linux/list.h:8,
                    from include/linux/agp_backend.h:33,
                    from include/drm/drmP.h:35,
                    from drivers/gpu/drm/vc4/vc4_drv.h:9,
                    from drivers/gpu/drm/vc4/vc4_hvs.c:26:
   drivers/gpu/drm/vc4/vc4_hvs.c: In function 'vc4_hvs_dump_state':
   include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type '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/drm/drmP.h:173:16: note: in expansion of macro 'KERN_INFO'
      printk##once(KERN_##level "[" DRM_NAME "] " fmt, \
                   ^~~~~
>> include/drm/drmP.h:178:2: note: in expansion of macro '_DRM_PRINTK'
     _DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~
   drivers/gpu/drm/vc4/vc4_hvs.c:69:3: note: in expansion of macro 'DRM_INFO'
      DRM_INFO("0x%04x (%s): 0x%08x\n",
      ^~~~~~~~
   include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type '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/drm/drmP.h:173:16: note: in expansion of macro 'KERN_INFO'
      printk##once(KERN_##level "[" DRM_NAME "] " fmt, \
                   ^~~~~
>> include/drm/drmP.h:178:2: note: in expansion of macro '_DRM_PRINTK'
     _DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~
   drivers/gpu/drm/vc4/vc4_hvs.c:76:3: note: in expansion of macro 'DRM_INFO'
      DRM_INFO("0x%08x (%s): 0x%08x 0x%08x 0x%08x 0x%08x\n",
      ^~~~~~~~
   include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type '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/drm/drmP.h:173:16: note: in expansion of macro 'KERN_INFO'
      printk##once(KERN_##level "[" DRM_NAME "] " fmt, \
                   ^~~~~
>> include/drm/drmP.h:178:2: note: in expansion of macro '_DRM_PRINTK'
     _DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~
   drivers/gpu/drm/vc4/vc4_hvs.c:76:3: note: in expansion of macro 'DRM_INFO'
      DRM_INFO("0x%08x (%s): 0x%08x 0x%08x 0x%08x 0x%08x\n",
      ^~~~~~~~
   include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type '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/drm/drmP.h:173:16: note: in expansion of macro 'KERN_INFO'
      printk##once(KERN_##level "[" DRM_NAME "] " fmt, \
                   ^~~~~
>> include/drm/drmP.h:178:2: note: in expansion of macro '_DRM_PRINTK'
     _DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~
   drivers/gpu/drm/vc4/vc4_hvs.c:76:3: note: in expansion of macro 'DRM_INFO'
      DRM_INFO("0x%08x (%s): 0x%08x 0x%08x 0x%08x 0x%08x\n",
      ^~~~~~~~
   include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type '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/drm/drmP.h:173:16: note: in expansion of macro 'KERN_INFO'
      printk##once(KERN_##level "[" DRM_NAME "] " fmt, \
                   ^~~~~
>> include/drm/drmP.h:178:2: note: in expansion of macro '_DRM_PRINTK'
     _DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~
   drivers/gpu/drm/vc4/vc4_hvs.c:76:3: note: in expansion of macro 'DRM_INFO'
      DRM_INFO("0x%08x (%s): 0x%08x 0x%08x 0x%08x 0x%08x\n",
      ^~~~~~~~
   drivers/gpu/drm/vc4/vc4_hvs.c: In function 'vc4_hvs_debugfs_regs':
   drivers/gpu/drm/vc4/vc4_hvs.c:94:36: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=]
      seq_printf(m, "%s (0x%04x): 0x%08x\n",
                                       ^
--
   In file included from include/linux/printk.h:305:0,
                    from include/linux/kernel.h:13,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from drivers/media/platform/pxa_camera.c:15:
   drivers/media/platform/pxa_camera.c: In function 'pxa_camera_eof':
>> drivers/media/platform/pxa_camera.c:1170:3: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
      "Camera interrupt status 0x%x\n",
      ^
   include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
      __dynamic_dev_dbg(&descriptor, dev, fmt, \
                                          ^~~
>> drivers/media/platform/pxa_camera.c:1169:2: note: in expansion of macro 'dev_dbg'
     dev_dbg(pcdev_to_dev(pcdev),
     ^~~~~~~

vim +/_DRM_PRINTK +178 include/drm/drmP.h

^1da177e drivers/char/drm/drmP.h Linus Torvalds 2005-04-16  167  /***********************************************************************/
^1da177e drivers/char/drm/drmP.h Linus Torvalds 2005-04-16  168  /** \name Macros to make printk easier */
^1da177e drivers/char/drm/drmP.h Linus Torvalds 2005-04-16  169  /*@{*/
^1da177e drivers/char/drm/drmP.h Linus Torvalds 2005-04-16  170  
30b0da8d include/drm/drmP.h      Dave Gordon    2016-08-18  171  #define _DRM_PRINTK(once, level, fmt, ...)				\
30b0da8d include/drm/drmP.h      Dave Gordon    2016-08-18  172  	do {								\
30b0da8d include/drm/drmP.h      Dave Gordon    2016-08-18 @173  		printk##once(KERN_##level "[" DRM_NAME "] " fmt,	\
30b0da8d include/drm/drmP.h      Dave Gordon    2016-08-18  174  			     ##__VA_ARGS__);				\
30b0da8d include/drm/drmP.h      Dave Gordon    2016-08-18  175  	} while (0)
30b0da8d include/drm/drmP.h      Dave Gordon    2016-08-18  176  
30b0da8d include/drm/drmP.h      Dave Gordon    2016-08-18  177  #define DRM_INFO(fmt, ...)						\
30b0da8d include/drm/drmP.h      Dave Gordon    2016-08-18 @178  	_DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__)
30b0da8d include/drm/drmP.h      Dave Gordon    2016-08-18  179  #define DRM_NOTE(fmt, ...)						\
30b0da8d include/drm/drmP.h      Dave Gordon    2016-08-18  180  	_DRM_PRINTK(, NOTICE, fmt, ##__VA_ARGS__)
30b0da8d include/drm/drmP.h      Dave Gordon    2016-08-18  181  #define DRM_WARN(fmt, ...)						\

:::::: The code at line 178 was first introduced by commit
:::::: 30b0da8d556e65ff935a56cd82c05ba0516d3e4a drm: extra printk() wrapper macros

:::::: TO: Dave Gordon <david.s.gordon@intel.com>
:::::: CC: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

             reply	other threads:[~2016-11-09  8:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-09  8:46 kbuild test robot [this message]
2016-11-09 20:50 ` [linux-next:master 5015/5173] include/drm/drmP.h:178:2: note: in expansion of macro '_DRM_PRINTK' Sudip Mukherjee

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=201611091657.OOsciPLy%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=sudipm.mukherjee@gmail.com \
    /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.