All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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
Date: Wed, 05 May 2021 08:01:36 +0800	[thread overview]
Message-ID: <202105050827.Jvrh4Bzq-lkp@intel.com> (raw)

[-- 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 --]

             reply	other threads:[~2021-05-05  0:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-05  0:01 kernel test robot [this message]
2021-05-06 21:03 [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202105050827.Jvrh4Bzq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.