All of lore.kernel.org
 help / color / mirror / Atom feed
* [jgunthorpe:rdma_addr_space 206/208] drivers/infiniband/hw/mlx5/mr.c:628:6: warning: no previous prototype for function 'mlx5_mr_cache_free'
@ 2021-02-18  5:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-18  5:34 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3367 bytes --]

tree:   https://github.com/jgunthorpe/linux rdma_addr_space
head:   332a60a1fb7cbb5217d390271fc512441d6c30ab
commit: f2276372b32b7497741ceb9814c4ac4fc55f79a1 [206/208] RDMA/mlx5: Consolidate MR destruction to mlx5_ib_dereg_mr()
config: powerpc64-randconfig-r006-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        # https://github.com/jgunthorpe/linux/commit/f2276372b32b7497741ceb9814c4ac4fc55f79a1
        git remote add jgunthorpe https://github.com/jgunthorpe/linux
        git fetch --no-tags jgunthorpe rdma_addr_space
        git checkout f2276372b32b7497741ceb9814c4ac4fc55f79a1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

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/mlx5/mr.c:628:6: warning: no previous prototype for function 'mlx5_mr_cache_free' [-Wmissing-prototypes]
   void mlx5_mr_cache_free(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr)
        ^
   drivers/infiniband/hw/mlx5/mr.c:628:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void mlx5_mr_cache_free(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr)
   ^
   static 
   1 warning generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for HOTPLUG_CPU
   Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
   Selected by
   - PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP


vim +/mlx5_mr_cache_free +628 drivers/infiniband/hw/mlx5/mr.c

e126ba97dba9ed Eli Cohen       2013-07-07  627  
49780d42dfc9ec Artemy Kovalyov 2017-01-18 @628  void mlx5_mr_cache_free(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr)
e126ba97dba9ed Eli Cohen       2013-07-07  629  {
b91e1751fbcee7 Jason Gunthorpe 2020-03-10  630  	struct mlx5_cache_ent *ent = mr->cache_ent;
e126ba97dba9ed Eli Cohen       2013-07-07  631  
746b5583c1a48a Eli Cohen       2013-10-23  632  	spin_lock_irq(&ent->lock);
e126ba97dba9ed Eli Cohen       2013-07-07  633  	list_add_tail(&mr->list, &ent->head);
7c8691a396bd20 Jason Gunthorpe 2020-03-10  634  	ent->available_mrs++;
ad2d3ef46d2a88 Jason Gunthorpe 2020-03-10  635  	queue_adjust_cache_locked(ent);
746b5583c1a48a Eli Cohen       2013-10-23  636  	spin_unlock_irq(&ent->lock);
e126ba97dba9ed Eli Cohen       2013-07-07  637  }
e126ba97dba9ed Eli Cohen       2013-07-07  638  

:::::: The code at line 628 was first introduced by commit
:::::: 49780d42dfc9ec0f4090c32ca59688449da1a1cd IB/mlx5: Expose MR cache for mlx5_ib

:::::: TO: Artemy Kovalyov <artemyko@mellanox.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: 39786 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-18  5:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18  5:34 [jgunthorpe:rdma_addr_space 206/208] drivers/infiniband/hw/mlx5/mr.c:628:6: warning: no previous prototype for function 'mlx5_mr_cache_free' 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.