[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207011317.bJ95opGj-lkp@intel.com>
Date: Fri, 1 Jul 2022 13:35:56 +0800
From: kernel test robot <lkp@...el.com>
To: Jiri Pirko <jiri@...dia.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [jpirko-mlxsw:jiri_devel_devlink_locking 21/24]
net/core/devlink.c:9957: warning: expecting prototype for
devlink_port_unregister(). Prototype was for devl_port_unregister() instead
tree: https://github.com/jpirko/linux_mlxsw jiri_devel_devlink_locking
head: 4f8833297c6cff331e180ef6146c9196aa50d7a2
commit: f2ccd8029224bd9592d91da3daa27da50af65520 [21/24] net: devlink: Fix lockless vs locked functions descriptions
config: i386-randconfig-a004 (https://download.01.org/0day-ci/archive/20220701/202207011317.bJ95opGj-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a9119143a2d1f4d0d0bc1fe0d819e5351b4e0deb)
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/jpirko/linux_mlxsw/commit/f2ccd8029224bd9592d91da3daa27da50af65520
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw jiri_devel_devlink_locking
git checkout f2ccd8029224bd9592d91da3daa27da50af65520
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/core/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> net/core/devlink.c:9957: warning: expecting prototype for devlink_port_unregister(). Prototype was for devl_port_unregister() instead
vim +9957 net/core/devlink.c
d7907a2b1a3b89 Leon Romanovsky 2021-07-28 9950
f2ccd8029224bd Jiri Pirko 2022-06-30 9951 /**
f2ccd8029224bd Jiri Pirko 2022-06-30 9952 * devlink_port_unregister - Unregister devlink port
f2ccd8029224bd Jiri Pirko 2022-06-30 9953 *
f2ccd8029224bd Jiri Pirko 2022-06-30 9954 * @devlink_port: devlink port
f2ccd8029224bd Jiri Pirko 2022-06-30 9955 */
2cb7b4890d6e7f Jakub Kicinski 2022-03-14 9956 void devl_port_unregister(struct devlink_port *devlink_port)
2cb7b4890d6e7f Jakub Kicinski 2022-03-14 @9957 {
2cb7b4890d6e7f Jakub Kicinski 2022-03-14 9958 lockdep_assert_held(&devlink_port->devlink->lock);
2cb7b4890d6e7f Jakub Kicinski 2022-03-14 9959
2cb7b4890d6e7f Jakub Kicinski 2022-03-14 9960 devlink_port_type_warn_cancel(devlink_port);
2cb7b4890d6e7f Jakub Kicinski 2022-03-14 9961 devlink_port_notify(devlink_port, DEVLINK_CMD_PORT_DEL);
2cb7b4890d6e7f Jakub Kicinski 2022-03-14 9962 list_del(&devlink_port->list);
2cb7b4890d6e7f Jakub Kicinski 2022-03-14 9963 WARN_ON(!list_empty(&devlink_port->reporter_list));
2cb7b4890d6e7f Jakub Kicinski 2022-03-14 9964 WARN_ON(!list_empty(&devlink_port->region_list));
2cb7b4890d6e7f Jakub Kicinski 2022-03-14 9965 mutex_destroy(&devlink_port->reporters_lock);
bf7974710a40aa Jiri Pirko 2016-04-14 9966 }
2cb7b4890d6e7f Jakub Kicinski 2022-03-14 9967 EXPORT_SYMBOL_GPL(devl_port_unregister);
bf7974710a40aa Jiri Pirko 2016-04-14 9968
:::::: The code at line 9957 was first introduced by commit
:::::: 2cb7b4890d6e7f20560dc251e7f8d3cc68b0d554 devlink: expose instance locking and add locked port registering
:::::: TO: Jakub Kicinski <kuba@...nel.org>
:::::: CC: Jakub Kicinski <kuba@...nel.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists