lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207011104.8xFOTnl8-lkp@intel.com>
Date:   Fri, 1 Jul 2022 11:43:47 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jiri Pirko <jiri@...dia.com>
Cc:     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: mips-allyesconfig
compiler: mips-linux-gcc (GCC) 11.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/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=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=mips 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

View attachment "config" of type "text/plain" (320041 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ