Messages in this thread |  | | Date | Sun, 3 Apr 2022 09:14:00 +0800 | From | kernel test robot <> | Subject | [lunn:v5.17-rc8-mdio-c45 1/12] drivers/net/phy/mdio_bus.c:904:5: warning: no previous prototype for function '__mdiobus_c45_modify_changed' |
| |
tree: https://github.com/lunn/linux.git v5.17-rc8-mdio-c45 head: 21ffc4381ec731f5e9521dec8925c0089b14920b commit: 0e5fe1025245189f58a0321314592b6c8a9090e9 [1/12] net: mdio: Add dedicates C45 API to MDIO bus drivers config: i386-randconfig-a004 (https://download.01.org/0day-ci/archive/20220403/202204030949.IjI3mpYp-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566) 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/lunn/linux/commit/0e5fe1025245189f58a0321314592b6c8a9090e9 git remote add lunn https://github.com/lunn/linux.git git fetch --no-tags lunn v5.17-rc8-mdio-c45 git checkout 0e5fe1025245189f58a0321314592b6c8a9090e9 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/phy/
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/net/phy/mdio_bus.c:904:5: warning: no previous prototype for function '__mdiobus_c45_modify_changed' [-Wmissing-prototypes] int __mdiobus_c45_modify_changed(struct mii_bus *bus, int addr, int devad, ^ drivers/net/phy/mdio_bus.c:904:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int __mdiobus_c45_modify_changed(struct mii_bus *bus, int addr, int devad, ^ static 1 warning generated.
vim +/__mdiobus_c45_modify_changed +904 drivers/net/phy/mdio_bus.c
889 890 /** 891 * __mdiobus_c45_modify_changed - Unlocked version of the mdiobus_modify function 892 * @bus: the mii_bus struct 893 * @addr: the phy address 894 * @devad: device address to read 895 * @regnum: register number to modify 896 * @mask: bit mask of bits to clear 897 * @set: bit mask of bits to set 898 * 899 * Read, modify, and if any change, write the register value back to the 900 * device. Any error returns a negative number. 901 * 902 * NOTE: MUST NOT be called from interrupt context. 903 */ > 904 int __mdiobus_c45_modify_changed(struct mii_bus *bus, int addr, int devad, 905 u32 regnum, u16 mask, u16 set) 906 { 907 int new, ret; 908 909 ret = __mdiobus_c45_read(bus, addr, devad, regnum); 910 if (ret < 0) 911 return ret; 912 913 new = (ret & ~mask) | set; 914 if (new == ret) 915 return 0; 916 917 ret = __mdiobus_c45_write(bus, addr, devad, regnum, new); 918 919 return ret < 0 ? ret : 1; 920 } 921 EXPORT_SYMBOL_GPL(__mdiobus_c45_modify_changed); 922
-- 0-DAY CI Kernel Test Service https://01.org/lkp
|  |