lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 4 Jun 2016 08:04:45 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	unlisted-recipients:; (no To-header on input)
Cc:	kbuild-all@...org, netdev@...r.kernel.org,
	Marcelo Ricardo Leitner <marcelo.leitner@...il.com>
Subject: [net-next:master 20/24] net/sctp/output.c:37:21: note: in expansion
 of macro 'KBUILD_MODNAME'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   330348d94223346f855357fab2517f6c903001c7
commit: 942b3235bf77e5600a05d6e85f0415bdeb8068bb [20/24] sctp: improve debug message to also log curr pkt and new chunk size
config: sh-allyesconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
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 942b3235bf77e5600a05d6e85f0415bdeb8068bb
        # save the attached .config to linux build tree
        make.cross ARCH=sh 

All warnings (new ones prefixed by >>):

   net/sctp/output.c: In function 'sctp_packet_transmit_chunk':
   <command-line>:0:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' [-Wformat=]
>> net/sctp/output.c:37:21: note: in expansion of macro 'KBUILD_MODNAME'
    #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
                        ^
   include/linux/dynamic_debug.h:78:35: note: in expansion of macro 'pr_fmt'
      __dynamic_pr_debug(&descriptor, pr_fmt(fmt), \
                                      ^
   include/linux/printk.h:295:2: note: in expansion of macro 'dynamic_pr_debug'
     dynamic_pr_debug(fmt, ##__VA_ARGS__)
     ^
   net/sctp/output.c:185:2: note: in expansion of macro 'pr_debug'
     pr_debug("%s: packet:%p size:%lu chunk:%p size:%d\n", __func__,
     ^

vim +/KBUILD_MODNAME +37 net/sctp/output.c

^1da177e Linus Torvalds  2005-04-16  21   *
^1da177e Linus Torvalds  2005-04-16  22   * You should have received a copy of the GNU General Public License
4b2f13a2 Jeff Kirsher    2013-12-06  23   * along with GNU CC; see the file COPYING.  If not, see
4b2f13a2 Jeff Kirsher    2013-12-06  24   * <http://www.gnu.org/licenses/>.
^1da177e Linus Torvalds  2005-04-16  25   *
^1da177e Linus Torvalds  2005-04-16  26   * Please send any bug reports or fixes you make to the
^1da177e Linus Torvalds  2005-04-16  27   * email address(es):
91705c61 Daniel Borkmann 2013-07-23  28   *    lksctp developers <linux-sctp@...r.kernel.org>
^1da177e Linus Torvalds  2005-04-16  29   *
^1da177e Linus Torvalds  2005-04-16  30   * Written or modified by:
^1da177e Linus Torvalds  2005-04-16  31   *    La Monte H.P. Yarroll <piggy@....org>
^1da177e Linus Torvalds  2005-04-16  32   *    Karl Knutson          <karl@...ena.chicago.il.us>
^1da177e Linus Torvalds  2005-04-16  33   *    Jon Grimm             <jgrimm@...tin.ibm.com>
^1da177e Linus Torvalds  2005-04-16  34   *    Sridhar Samudrala     <sri@...ibm.com>
^1da177e Linus Torvalds  2005-04-16  35   */
^1da177e Linus Torvalds  2005-04-16  36  
145ce502 Joe Perches     2010-08-24 @37  #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
145ce502 Joe Perches     2010-08-24  38  
^1da177e Linus Torvalds  2005-04-16  39  #include <linux/types.h>
^1da177e Linus Torvalds  2005-04-16  40  #include <linux/kernel.h>
^1da177e Linus Torvalds  2005-04-16  41  #include <linux/wait.h>
^1da177e Linus Torvalds  2005-04-16  42  #include <linux/time.h>
^1da177e Linus Torvalds  2005-04-16  43  #include <linux/ip.h>
^1da177e Linus Torvalds  2005-04-16  44  #include <linux/ipv6.h>
^1da177e Linus Torvalds  2005-04-16  45  #include <linux/init.h>

:::::: The code at line 37 was first introduced by commit
:::::: 145ce502e44b57c074c72cfdc855557e19026999 net/sctp: Use pr_fmt and pr_<level>

:::::: TO: Joe Perches <joe@...ches.com>
:::::: CC: David S. Miller <davem@...emloft.net>

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

Download attachment ".config.gz" of type "application/octet-stream" (40244 bytes)

Powered by blists - more mailing lists