Content-Type: multipart/mixed; boundary="===============1579093212305299855==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v10, 2/2] net: Add dm9051 driver Date: Thu, 06 Jan 2022 07:38:43 +0800 Message-ID: <202201060738.5ZBat35r-lkp@intel.com> In-Reply-To: <20220105081728.4289-3-josright123@gmail.com> List-Id: --===============1579093212305299855== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Joseph, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on 9d922f5df53844228b9f7c62f2593f4f06c0b69b] url: https://github.com/0day-ci/linux/commits/Joseph-CHAMG/ADD-DM9051-ET= HERNET-DRIVER/20220105-162144 base: 9d922f5df53844228b9f7c62f2593f4f06c0b69b config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20220= 106/202201060738.5ZBat35r-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d5b6e3= 0ed3acad794dd0aec400e617daffc6cc3d) 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/4a2b192e52a57fee2e5d3452e= eb1f3764ef4086c git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Joseph-CHAMG/ADD-DM9051-ETHERNET-D= RIVER/20220105-162144 git checkout 4a2b192e52a57fee2e5d3452eeb1f3764ef4086c # 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/media/platform/atm= el/ drivers/media/platform/sti/bdisp/ drivers/media/platform/sti/delta/ dri= vers/media/platform/sti/hva/ drivers/mmc/host/ drivers/net/ethernet/davicom= / drivers/staging/rtl8723bs/ fs/xfs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/net/ethernet/davicom/dm9051.c:153:52: warning: use of logical '&= &' with constant operand [-Wconstant-logical-operand] regmap_write(db->regmap, DM9051_EPDRH, (val >> 8) && 0xff); ^ ~~~~ drivers/net/ethernet/davicom/dm9051.c:153:52: note: use '&' for a bitwis= e operation regmap_write(db->regmap, DM9051_EPDRH, (val >> 8) && 0xff); ^~ & drivers/net/ethernet/davicom/dm9051.c:153:52: note: remove constant to s= ilence this warning regmap_write(db->regmap, DM9051_EPDRH, (val >> 8) && 0xff); ~^~~~~~~ 1 warning generated. vim +153 drivers/net/ethernet/davicom/dm9051.c 145 = 146 static int regmap_dm9051_phy_reg_write(void *context, unsigned int r= eg, unsigned int val) 147 { 148 struct board_info *db =3D context; 149 int ret; 150 = 151 regmap_write(db->regmap, DM9051_EPAR, DM9051_PHY | reg); 152 regmap_write(db->regmap, DM9051_EPDRL, val & 0xff); > 153 regmap_write(db->regmap, DM9051_EPDRH, (val >> 8) && 0xff); 154 regmap_write(db->regmap, DM9051_EPCR, EPCR_EPOS | EPCR_ERPRW); 155 ret =3D dm9051_map_poll(db); 156 regmap_write(db->regmap, DM9051_EPCR, 0x0); 157 = 158 if (reg =3D=3D MII_BMCR && !(val & 0x0800)) 159 mdelay(1); /* need for if activate phyxcer */ 160 = 161 return ret; 162 } 163 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1579093212305299855==--