* [jgunthorpe:rmda_sysfs_cleanup 140/147] drivers/infiniband/hw/i40iw/i40iw_verbs.c:2450: warning: expecting prototype for i40iw_alloc_hw_stats(). Prototype was for i40iw_alloc_hw_port_stats() instead
@ 2021-05-05 0:01 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-05-05 0:01 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4006 bytes --]
tree: https://github.com/jgunthorpe/linux rmda_sysfs_cleanup
head: 15deba7fe98da50020718efb010ab18332a735e1
commit: 5be4299195d1495131aa5c6ac4c20cc5d84b289e [140/147] RDMA: Split the alloc_hw_stats() ops to port and device variants
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/jgunthorpe/linux/commit/5be4299195d1495131aa5c6ac4c20cc5d84b289e
git remote add jgunthorpe https://github.com/jgunthorpe/linux
git fetch --no-tags jgunthorpe rmda_sysfs_cleanup
git checkout 5be4299195d1495131aa5c6ac4c20cc5d84b289e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/infiniband/hw/i40iw/i40iw_verbs.c:2450: warning: expecting prototype for i40iw_alloc_hw_stats(). Prototype was for i40iw_alloc_hw_port_stats() instead
vim +2450 drivers/infiniband/hw/i40iw/i40iw_verbs.c
f65c52ca23550a Ira Weiny 2016-06-15 2442
d37498417947cb Faisal Latif 2016-01-20 2443 /**
b40f4757daa1b2 Christoph Lameter 2016-05-16 2444 * i40iw_alloc_hw_stats - Allocate a hw stats structure
b40f4757daa1b2 Christoph Lameter 2016-05-16 2445 * @ibdev: device pointer from stack
b40f4757daa1b2 Christoph Lameter 2016-05-16 2446 * @port_num: port number
b40f4757daa1b2 Christoph Lameter 2016-05-16 2447 */
5be4299195d149 Jason Gunthorpe 2021-04-30 2448 static struct rdma_hw_stats *i40iw_alloc_hw_port_stats(struct ib_device *ibdev,
1fb7f8973f51ca Mark Bloch 2021-03-01 2449 u32 port_num)
b40f4757daa1b2 Christoph Lameter 2016-05-16 @2450 {
b40f4757daa1b2 Christoph Lameter 2016-05-16 2451 struct i40iw_device *iwdev = to_iwdev(ibdev);
b40f4757daa1b2 Christoph Lameter 2016-05-16 2452 struct i40iw_sc_dev *dev = &iwdev->sc_dev;
b40f4757daa1b2 Christoph Lameter 2016-05-16 2453 int num_counters = I40IW_HW_STAT_INDEX_MAX_32 +
b40f4757daa1b2 Christoph Lameter 2016-05-16 2454 I40IW_HW_STAT_INDEX_MAX_64;
b40f4757daa1b2 Christoph Lameter 2016-05-16 2455 unsigned long lifespan = RDMA_HW_STATS_DEFAULT_LIFESPAN;
b40f4757daa1b2 Christoph Lameter 2016-05-16 2456
b40f4757daa1b2 Christoph Lameter 2016-05-16 2457 BUILD_BUG_ON(ARRAY_SIZE(i40iw_hw_stat_names) !=
b40f4757daa1b2 Christoph Lameter 2016-05-16 2458 (I40IW_HW_STAT_INDEX_MAX_32 +
b40f4757daa1b2 Christoph Lameter 2016-05-16 2459 I40IW_HW_STAT_INDEX_MAX_64));
b40f4757daa1b2 Christoph Lameter 2016-05-16 2460
b40f4757daa1b2 Christoph Lameter 2016-05-16 2461 /*
b40f4757daa1b2 Christoph Lameter 2016-05-16 2462 * PFs get the default update lifespan, but VFs only update once
b40f4757daa1b2 Christoph Lameter 2016-05-16 2463 * per second
b40f4757daa1b2 Christoph Lameter 2016-05-16 2464 */
b40f4757daa1b2 Christoph Lameter 2016-05-16 2465 if (!dev->is_pf)
b40f4757daa1b2 Christoph Lameter 2016-05-16 2466 lifespan = 1000;
b40f4757daa1b2 Christoph Lameter 2016-05-16 2467 return rdma_alloc_hw_stats_struct(i40iw_hw_stat_names, num_counters,
b40f4757daa1b2 Christoph Lameter 2016-05-16 2468 lifespan);
b40f4757daa1b2 Christoph Lameter 2016-05-16 2469 }
b40f4757daa1b2 Christoph Lameter 2016-05-16 2470
:::::: The code at line 2450 was first introduced by commit
:::::: b40f4757daa1b28e586fddad76638c98e2edfc34 IB/core: Make device counter infrastructure dynamic
:::::: TO: Christoph Lameter <cl@linux.com>
:::::: CC: Doug Ledford <dledford@redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 67454 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [jgunthorpe:rmda_sysfs_cleanup 140/147] drivers/infiniband/hw/i40iw/i40iw_verbs.c:2450: warning: expecting prototype for i40iw_alloc_hw_stats(). Prototype was for i40iw_alloc_hw_port_stats() instead
@ 2021-05-06 21:03 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-05-06 21:03 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4211 bytes --]
tree: https://github.com/jgunthorpe/linux rmda_sysfs_cleanup
head: 15deba7fe98da50020718efb010ab18332a735e1
commit: 5be4299195d1495131aa5c6ac4c20cc5d84b289e [140/147] RDMA: Split the alloc_hw_stats() ops to port and device variants
config: x86_64-randconfig-a001-20210506 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8f5a2a5836cc8e4c1def2bdeb022e7b496623439)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/jgunthorpe/linux/commit/5be4299195d1495131aa5c6ac4c20cc5d84b289e
git remote add jgunthorpe https://github.com/jgunthorpe/linux
git fetch --no-tags jgunthorpe rmda_sysfs_cleanup
git checkout 5be4299195d1495131aa5c6ac4c20cc5d84b289e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/infiniband/hw/i40iw/i40iw_verbs.c:2450: warning: expecting prototype for i40iw_alloc_hw_stats(). Prototype was for i40iw_alloc_hw_port_stats() instead
vim +2450 drivers/infiniband/hw/i40iw/i40iw_verbs.c
f65c52ca23550a Ira Weiny 2016-06-15 2442
d37498417947cb Faisal Latif 2016-01-20 2443 /**
b40f4757daa1b2 Christoph Lameter 2016-05-16 2444 * i40iw_alloc_hw_stats - Allocate a hw stats structure
b40f4757daa1b2 Christoph Lameter 2016-05-16 2445 * @ibdev: device pointer from stack
b40f4757daa1b2 Christoph Lameter 2016-05-16 2446 * @port_num: port number
b40f4757daa1b2 Christoph Lameter 2016-05-16 2447 */
5be4299195d149 Jason Gunthorpe 2021-04-30 2448 static struct rdma_hw_stats *i40iw_alloc_hw_port_stats(struct ib_device *ibdev,
1fb7f8973f51ca Mark Bloch 2021-03-01 2449 u32 port_num)
b40f4757daa1b2 Christoph Lameter 2016-05-16 @2450 {
b40f4757daa1b2 Christoph Lameter 2016-05-16 2451 struct i40iw_device *iwdev = to_iwdev(ibdev);
b40f4757daa1b2 Christoph Lameter 2016-05-16 2452 struct i40iw_sc_dev *dev = &iwdev->sc_dev;
b40f4757daa1b2 Christoph Lameter 2016-05-16 2453 int num_counters = I40IW_HW_STAT_INDEX_MAX_32 +
b40f4757daa1b2 Christoph Lameter 2016-05-16 2454 I40IW_HW_STAT_INDEX_MAX_64;
b40f4757daa1b2 Christoph Lameter 2016-05-16 2455 unsigned long lifespan = RDMA_HW_STATS_DEFAULT_LIFESPAN;
b40f4757daa1b2 Christoph Lameter 2016-05-16 2456
b40f4757daa1b2 Christoph Lameter 2016-05-16 2457 BUILD_BUG_ON(ARRAY_SIZE(i40iw_hw_stat_names) !=
b40f4757daa1b2 Christoph Lameter 2016-05-16 2458 (I40IW_HW_STAT_INDEX_MAX_32 +
b40f4757daa1b2 Christoph Lameter 2016-05-16 2459 I40IW_HW_STAT_INDEX_MAX_64));
b40f4757daa1b2 Christoph Lameter 2016-05-16 2460
b40f4757daa1b2 Christoph Lameter 2016-05-16 2461 /*
b40f4757daa1b2 Christoph Lameter 2016-05-16 2462 * PFs get the default update lifespan, but VFs only update once
b40f4757daa1b2 Christoph Lameter 2016-05-16 2463 * per second
b40f4757daa1b2 Christoph Lameter 2016-05-16 2464 */
b40f4757daa1b2 Christoph Lameter 2016-05-16 2465 if (!dev->is_pf)
b40f4757daa1b2 Christoph Lameter 2016-05-16 2466 lifespan = 1000;
b40f4757daa1b2 Christoph Lameter 2016-05-16 2467 return rdma_alloc_hw_stats_struct(i40iw_hw_stat_names, num_counters,
b40f4757daa1b2 Christoph Lameter 2016-05-16 2468 lifespan);
b40f4757daa1b2 Christoph Lameter 2016-05-16 2469 }
b40f4757daa1b2 Christoph Lameter 2016-05-16 2470
:::::: The code at line 2450 was first introduced by commit
:::::: b40f4757daa1b28e586fddad76638c98e2edfc34 IB/core: Make device counter infrastructure dynamic
:::::: TO: Christoph Lameter <cl@linux.com>
:::::: CC: Doug Ledford <dledford@redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33477 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-06 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-05 0:01 [jgunthorpe:rmda_sysfs_cleanup 140/147] drivers/infiniband/hw/i40iw/i40iw_verbs.c:2450: warning: expecting prototype for i40iw_alloc_hw_stats(). Prototype was for i40iw_alloc_hw_port_stats() instead kernel test robot
2021-05-06 21:03 kernel test robot
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.