Re: [PATCH net-next] qed*: Utilize FW 8.33.1.0

2017-12-22 Thread kbuild test robot
Hi Tomer,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on net-next/master]

url:
https://github.com/0day-ci/linux/commits/Tomer-Tayar/qed-Utilize-FW-8-33-1-0/20171221-180506
config: x86_64-randconfig-s0-12221644 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from drivers/net/ethernet/qlogic/qed/qed_sp_commands.c:48:0:
>> drivers/net/ethernet/qlogic/qed/qed_sriov.h:464:1: error: static declaration 
>> of 'qed_iov_is_valid_vfid' follows non-static declaration
qed_iov_is_valid_vfid(struct qed_hwfn *p_hwfn,
^
   drivers/net/ethernet/qlogic/qed/qed_sriov.h:144:6: note: previous 
declaration of 'qed_iov_is_valid_vfid' was here
bool qed_iov_is_valid_vfid(struct qed_hwfn *p_hwfn,
 ^

vim +/qed_iov_is_valid_vfid +464 drivers/net/ethernet/qlogic/qed/qed_sriov.h

   462  
   463  static inline bool
 > 464  qed_iov_is_valid_vfid(struct qed_hwfn *p_hwfn,
   465int rel_vf_id, bool b_enabled_only, bool 
b_non_malicious)
   466  {
   467  return false;
   468  }
   469  #endif
   470  

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


.config.gz
Description: application/gzip


Re: [PATCH net-next] qed*: Utilize FW 8.33.1.0

2017-12-21 Thread kbuild test robot
Hi Tomer,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]

url:
https://github.com/0day-ci/linux/commits/Tomer-Tayar/qed-Utilize-FW-8-33-1-0/20171221-180506
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 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
# save the attached .config to linux build tree
make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:14,
from include/asm-generic/bug.h:18,
from ./arch/xtensa/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/io.h:23,
from drivers/net//ethernet/qlogic/qed/qed_hw.c:34:
   drivers/net//ethernet/qlogic/qed/qed_hw.c: In function 'qed_dmae_sanity':
>> include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of 
>> type 'long long unsigned int', but argument 6 has type 'dma_addr_t {aka 
>> unsigned int}' [-Wformat=]
#define KERN_SOH "\001"  /* ASCII Start Of Header */
 ^
   include/linux/kern_levels.h:13:21: note: in expansion of macro 'KERN_SOH'
#define KERN_NOTICE KERN_SOH "5" /* normal but significant condition */
^~~~
>> include/linux/printk.h:306:9: note: in expansion of macro 'KERN_NOTICE'
 printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
^~~
>> include/linux/qed/qed_if.h:761:4: note: in expansion of macro 'pr_notice'
   pr_notice("[%s:%d(%s)]" fmt,\
   ^
>> drivers/net//ethernet/qlogic/qed/qed_hw.c:866:4: note: in expansion of macro 
>> 'DP_NOTICE'
   DP_NOTICE(p_hwfn,
   ^
   drivers/net//ethernet/qlogic/qed/qed_hw.c:867:42: note: format string is 
defined here
  "DMAE sanity [%s]: addr={phys 0x%llx, virt %p}, read_val 0x%08x, 
expected_val 0x%08x\n",
  ~~~^
  %x
--
   In file included from include/linux/printk.h:7:0,
from include/linux/kernel.h:14,
from include/asm-generic/bug.h:18,
from ./arch/xtensa/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/io.h:23,
from drivers/net/ethernet/qlogic/qed/qed_hw.c:34:
   drivers/net/ethernet/qlogic/qed/qed_hw.c: In function 'qed_dmae_sanity':
>> include/linux/kern_levels.h:5:18: warning: format '%llx' expects argument of 
>> type 'long long unsigned int', but argument 6 has type 'dma_addr_t {aka 
>> unsigned int}' [-Wformat=]
#define KERN_SOH "\001"  /* ASCII Start Of Header */
 ^
   include/linux/kern_levels.h:13:21: note: in expansion of macro 'KERN_SOH'
#define KERN_NOTICE KERN_SOH "5" /* normal but significant condition */
^~~~
>> include/linux/printk.h:306:9: note: in expansion of macro 'KERN_NOTICE'
 printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
^~~
>> include/linux/qed/qed_if.h:761:4: note: in expansion of macro 'pr_notice'
   pr_notice("[%s:%d(%s)]" fmt,\
   ^
   drivers/net/ethernet/qlogic/qed/qed_hw.c:866:4: note: in expansion of macro 
'DP_NOTICE'
   DP_NOTICE(p_hwfn,
   ^
   drivers/net/ethernet/qlogic/qed/qed_hw.c:867:42: note: format string is 
defined here
  "DMAE sanity [%s]: addr={phys 0x%llx, virt %p}, read_val 0x%08x, 
expected_val 0x%08x\n",
  ~~~^
  %x

vim +5 include/linux/kern_levels.h

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

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

:: TO: Joe Perches 
:: CC: Linus Torvalds 

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


.config.gz
Description: application/gzip


Re: [PATCH net-next] qed*: Utilize FW 8.33.1.0

2017-12-20 Thread David Miller
From: Jakub Kicinski 
Date: Tue, 19 Dec 2017 15:46:51 -0800

> On Tue, 19 Dec 2017 16:05:23 +0200, Tomer Tayar wrote:
>> Sorry for the very long patch.
>> The firmware changes are spread all over w/o a good modularity.
> 
> Rings false.  Significant portion of this patch is just whitespace 
> and comment changes.

Totally agreed.

This thing is beyond huge already, adding unrelated whitespace and
comment changes make reviewing it even more impossible.


Re: [PATCH net-next] qed*: Utilize FW 8.33.1.0

2017-12-19 Thread Jakub Kicinski
On Tue, 19 Dec 2017 16:05:23 +0200, Tomer Tayar wrote:
> Sorry for the very long patch.
> The firmware changes are spread all over w/o a good modularity.

Rings false.  Significant portion of this patch is just whitespace 
and comment changes.