Content-Type: multipart/mixed; boundary="===============5491475464447904880==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH net-next v3 06/11] net: dsa: realtek: add new mdio interface for drivers Date: Sat, 01 Jan 2022 01:18:59 +0800 Message-ID: <202201010143.Ua57feb3-lkp@intel.com> In-Reply-To: <20211231043306.12322-7-luizluca@gmail.com> List-Id: --===============5491475464447904880== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Luiz, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Luiz-Angelo-Daros-de-Luca/= net-dsa-realtek-smi-move-to-subdirectory/20211231-133326 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git = af30f8eaa8fe4ff1987280f716309711997bd979 config: hexagon-randconfig-r033-20211231 (https://download.01.org/0day-ci/a= rchive/20220101/202201010143.Ua57feb3-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7cd109= b92c72855937273a6c8ab19016fbe27d33) reproduce (this is a W=3D1 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/0day-ci/linux/commit/98bde88720c76b12ab9ed2cfc= 166f65396e6e5e2 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Luiz-Angelo-Daros-de-Luca/net-dsa-= realtek-smi-move-to-subdirectory/20211231-133326 git checkout 98bde88720c76b12ab9ed2cfc166f65396e6e5e2 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dhexagon SHELL=3D/bin/bash drivers/net/dsa/realtek/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/net/dsa/realtek/realtek-mdio.c:41:5: warning: no previous protot= ype for function 'realtek_mdio_read_reg' [-Wmissing-prototypes] int realtek_mdio_read_reg(struct realtek_priv *priv, u32 addr, u32 *data) ^ drivers/net/dsa/realtek/realtek-mdio.c:41:1: note: declare 'static' if t= he function is not intended to be used outside of this translation unit int realtek_mdio_read_reg(struct realtek_priv *priv, u32 addr, u32 *data) ^ static = 1 warning generated. vim +/realtek_mdio_read_reg +41 drivers/net/dsa/realtek/realtek-mdio.c 40 = > 41 int realtek_mdio_read_reg(struct realtek_priv *priv, u32 addr, u32 *= data) 42 { 43 u32 phy_id =3D priv->phy_id; 44 struct mii_bus *bus =3D priv->bus; 45 = 46 mutex_lock(&bus->mdio_lock); 47 = 48 bus->write(bus, phy_id, REALTEK_MDIO_CTRL0_REG, REALTEK_MDIO_ADDR_O= P); 49 bus->write(bus, phy_id, REALTEK_MDIO_START_REG, REALTEK_MDIO_START_= OP); 50 bus->write(bus, phy_id, REALTEK_MDIO_ADDRESS_REG, addr); 51 bus->write(bus, phy_id, REALTEK_MDIO_START_REG, REALTEK_MDIO_START_= OP); 52 bus->write(bus, phy_id, REALTEK_MDIO_CTRL1_REG, REALTEK_MDIO_READ_O= P); 53 bus->write(bus, phy_id, REALTEK_MDIO_START_REG, REALTEK_MDIO_START_= OP); 54 *data =3D bus->read(bus, phy_id, REALTEK_MDIO_DATA_READ_REG); 55 = 56 mutex_unlock(&bus->mdio_lock); 57 = 58 return 0; 59 } 60 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5491475464447904880==--