Messages in this thread |  | | Date | Sun, 3 Apr 2022 07:20:55 +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 '__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: nios2-defconfig (https://download.01.org/0day-ci/archive/20220403/202204030746.rsVzhrNr-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 11.2.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/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=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 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 '__mdiobus_c45_modify_changed' [-Wmissing-prototypes] 904 | int __mdiobus_c45_modify_changed(struct mii_bus *bus, int addr, int devad, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
|  |