[ceph-client:testing 3/4] include/linux/ceph/ceph_debug.h:5:21: note: in expansion of macro 'KBUILD_MODNAME'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://github.com/ceph/ceph-client.git testing
head:   6fb0eaf13dcddf369aee4f72d00bd041111cc606
commit: cd574cfa473f997b8124a97a0eac2c24671a414c [3/4] ceph: support copy_file_range file operation
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout cd574cfa473f997b8124a97a0eac2c24671a414c
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=sh 

All warnings (new ones prefixed by >>):

   fs//ceph/file.c: In function 'is_file_size_ok':
>> <command-line>:0:16: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'size_t {aka unsigned int}' [-Wformat=]
>> include/linux/ceph/ceph_debug.h:5:21: note: in expansion of macro 'KBUILD_MODNAME'
    #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
                        ^~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:127:35: note: in expansion of macro 'pr_fmt'
      __dynamic_pr_debug(&descriptor, pr_fmt(fmt), \
                                      ^~~~~~
   include/linux/printk.h:340:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~
>> include/linux/ceph/ceph_debug.h:19:2: note: in expansion of macro 'pr_debug'
     pr_debug("%.*s %12.12s:%-4d : " fmt,    \
     ^~~~~~~~
>> fs//ceph/file.c:1873:3: note: in expansion of macro 'dout'
      dout("Copy beyond EOF (%llu + %ld > %llu)\n",
      ^~~~
   fs//ceph/file.c: In function 'ceph_copy_file_range':
>> <command-line>:0:16: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'ssize_t {aka int}' [-Wformat=]
>> include/linux/ceph/ceph_debug.h:5:21: note: in expansion of macro 'KBUILD_MODNAME'
    #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
                        ^~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:127:35: note: in expansion of macro 'pr_fmt'
      __dynamic_pr_debug(&descriptor, pr_fmt(fmt), \
                                      ^~~~~~
   include/linux/printk.h:340:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~
>> include/linux/ceph/ceph_debug.h:19:2: note: in expansion of macro 'pr_debug'
     pr_debug("%.*s %12.12s:%-4d : " fmt,    \
     ^~~~~~~~
   fs//ceph/file.c:1962:3: note: in expansion of macro 'dout'
      dout("Failed to invalidate inode pages (%ld)\n", ret);
      ^~~~
--
   fs/ceph/file.c: In function 'is_file_size_ok':
>> <command-line>:0:16: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'size_t {aka unsigned int}' [-Wformat=]
>> include/linux/ceph/ceph_debug.h:5:21: note: in expansion of macro 'KBUILD_MODNAME'
    #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
                        ^~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:127:35: note: in expansion of macro 'pr_fmt'
      __dynamic_pr_debug(&descriptor, pr_fmt(fmt), \
                                      ^~~~~~
   include/linux/printk.h:340:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~
>> include/linux/ceph/ceph_debug.h:19:2: note: in expansion of macro 'pr_debug'
     pr_debug("%.*s %12.12s:%-4d : " fmt,    \
     ^~~~~~~~
   fs/ceph/file.c:1873:3: note: in expansion of macro 'dout'
      dout("Copy beyond EOF (%llu + %ld > %llu)\n",
      ^~~~
   fs/ceph/file.c: In function 'ceph_copy_file_range':
>> <command-line>:0:16: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'ssize_t {aka int}' [-Wformat=]
>> include/linux/ceph/ceph_debug.h:5:21: note: in expansion of macro 'KBUILD_MODNAME'
    #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
                        ^~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:127:35: note: in expansion of macro 'pr_fmt'
      __dynamic_pr_debug(&descriptor, pr_fmt(fmt), \
                                      ^~~~~~
   include/linux/printk.h:340:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^~~~~~~~~~~~~~~~
>> include/linux/ceph/ceph_debug.h:19:2: note: in expansion of macro 'pr_debug'
     pr_debug("%.*s %12.12s:%-4d : " fmt,    \
     ^~~~~~~~
   fs/ceph/file.c:1962:3: note: in expansion of macro 'dout'
      dout("Failed to invalidate inode pages (%ld)\n", ret);
      ^~~~

vim +/KBUILD_MODNAME +5 include/linux/ceph/ceph_debug.h

de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06   4  
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  @5  #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06   6  
6f4dbd14 include/linux/ceph/ceph_debug.h Ilya Dryomov 2017-05-19   7  #include <linux/string.h>
6f4dbd14 include/linux/ceph/ceph_debug.h Ilya Dryomov 2017-05-19   8  
3d14c5d2 include/linux/ceph/ceph_debug.h Yehuda Sadeh 2010-04-06   9  #ifdef CONFIG_CEPH_LIB_PRETTYDEBUG
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  10  
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  11  /*
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  12   * wrap pr_debug to include a filename:lineno prefix on each line.
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  13   * this incurs some overhead (kernel size and execution time) due to
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  14   * the extra function call at each call site.
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  15   */
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  16  
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  17  # if defined(DEBUG) || defined(CONFIG_DYNAMIC_DEBUG)
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  18  #  define dout(fmt, ...)						\
3d14c5d2 include/linux/ceph/ceph_debug.h Yehuda Sadeh 2010-04-06 @19  	pr_debug("%.*s %12.12s:%-4d : " fmt,				\
3d14c5d2 include/linux/ceph/ceph_debug.h Yehuda Sadeh 2010-04-06  20  		 8 - (int)sizeof(KBUILD_MODNAME), "    ",		\
6f4dbd14 include/linux/ceph/ceph_debug.h Ilya Dryomov 2017-05-19  21  		 kbasename(__FILE__), __LINE__, ##__VA_ARGS__)
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  22  # else
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  23  /* faux printk call just to see any compiler warnings. */
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  24  #  define dout(fmt, ...)	do {				\
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  25  		if (0)						\
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  26  			printk(KERN_DEBUG fmt, ##__VA_ARGS__);	\
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  27  	} while (0)
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  28  # endif
de57606c fs/ceph/ceph_debug.h            Sage Weil    2009-10-06  29  

:::::: The code at line 5 was first introduced by commit
:::::: de57606c23afded22202825b3db8a5d61859f198 ceph: client types

:::::: TO: Sage Weil <sage@xxxxxxxxxxxx>
:::::: CC: Sage Weil <sage@xxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux