Re: [PATCH 2/2] IB/mlx4: Add port and TID to MAD debug print

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

 



Hi Håkon,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v4.19-rc4 next-20180913]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/H-kon-Bugge/IB-mlx4-Enable-debug-print-of-SMPs/20180917-232956
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from drivers/infiniband/hw/mlx4/mad.c:46:0:
   drivers/infiniband/hw/mlx4/mad.c: In function 'ib_process_mad':
>> drivers/infiniband/hw/mlx4/mlx4_ib.h:57:21: warning: format '%x' expects argument of type 'unsigned int', but argument 10 has type 'long long unsigned int' [-Wformat=]
    #define pr_fmt(fmt) "<" MLX4_IB_DRV_NAME "> %s: " fmt, __func__
                        ^
   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__)
     ^~~~~~~~~~~~~~~~
   drivers/infiniband/hw/mlx4/mad.c:811:3: note: in expansion of macro 'pr_debug'
      pr_debug("received MAD: port:%d slid:%d sqpn:%d "
      ^~~~~~~~
   drivers/infiniband/hw/mlx4/mad.c:812:48: note: format string is defined here
        "dlid_bits:%d dqpn:%d wc_flags:0x%x tid:%08x cls:%x mtd:%x atr:%x\n",
                                                ~~~^
                                                %08llx

vim +57 drivers/infiniband/hw/mlx4/mlx4_ib.h

b1d8eb5a Jack Morgenstein 2012-06-19  53  
b1d8eb5a Jack Morgenstein 2012-06-19  54  #ifdef pr_fmt
b1d8eb5a Jack Morgenstein 2012-06-19  55  #undef pr_fmt
b1d8eb5a Jack Morgenstein 2012-06-19  56  #endif
b1d8eb5a Jack Morgenstein 2012-06-19 @57  #define pr_fmt(fmt)	"<" MLX4_IB_DRV_NAME "> %s: " fmt, __func__
b1d8eb5a Jack Morgenstein 2012-06-19  58  

:::::: The code at line 57 was first introduced by commit
:::::: b1d8eb5a213640f1be98a90e73a241d15b70045c IB/mlx4: Add debug prints

:::::: TO: Jack Morgenstein <jackm@xxxxxxxxxxxxxxxxxx>
:::::: CC: Roland Dreier <roland@xxxxxxxxxxxxxxx>

---
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]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux