From: kernel test robot <lkp@intel.com>
To: Jiri Pirko <jiri@nvidia.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.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
Date: Fri, 1 Jul 2022 13:35:56 +0800 [thread overview]
Message-ID: <202207011317.bJ95opGj-lkp@intel.com> (raw)
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@intel.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@kernel.org>
:::::: CC: Jakub Kicinski <kuba@kernel.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next reply other threads:[~2022-07-01 5:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-01 5:35 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-07-01 3:43 [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 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=202207011317.bJ95opGj-lkp@intel.com \
--to=lkp@intel.com \
--cc=jiri@nvidia.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox