From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3379572090623312985==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v12, 2/2] net: Add dm9051 driver Date: Fri, 21 Jan 2022 14:26:35 +0800 Message-ID: <202201211441.KTN0V72X-lkp@intel.com> In-Reply-To: <20220121041428.6437-3-josright123@gmail.com> List-Id: --===============3379572090623312985== 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/20220121-121713 base: 9d922f5df53844228b9f7c62f2593f4f06c0b69b config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/2022012= 1/202201211441.KTN0V72X-lkp(a)intel.com/config) compiler: alpha-linux-gcc (GCC) 11.2.0 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/a6eb8dd02aed17af37a0b38fb= cc250fd9ed9492d git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Joseph-CHAMG/ADD-DM9051-ETHERNET-D= RIVER/20220121-121713 git checkout a6eb8dd02aed17af37a0b38fbcc250fd9ed9492d # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dalpha SHELL=3D/bin/bash drivers/net/ethernet/davicom/ 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: In function 'dm9051_mdiobus_regis= ter': >> drivers/net/ethernet/davicom/dm9051.c:1076:33: warning: conversion from = 'long unsigned int' to 'u32' {aka 'unsigned int'} changes value from '18446= 744073709551613' to '4294967293' [-Woverflow] 1076 | db->mdiobus->phy_mask =3D ~GENMASK(1, 1); | ^ vim +1076 drivers/net/ethernet/davicom/dm9051.c 1062 = 1063 static int dm9051_mdiobus_register(struct board_info *db) 1064 { 1065 struct spi_device *spi =3D db->spidev; 1066 int ret; 1067 = 1068 db->mdiobus =3D devm_mdiobus_alloc(&spi->dev); 1069 if (!db->mdiobus) 1070 return -ENOMEM; 1071 = 1072 db->mdiobus->priv =3D db; 1073 db->mdiobus->read =3D dm9051_mdiobus_read; 1074 db->mdiobus->write =3D dm9051_mdiobus_write; 1075 db->mdiobus->name =3D "dm9051-mdiobus"; > 1076 db->mdiobus->phy_mask =3D ~GENMASK(1, 1); 1077 db->mdiobus->parent =3D &spi->dev; 1078 snprintf(db->mdiobus->id, MII_BUS_ID_SIZE, 1079 "dm9051-%s.%u", dev_name(&spi->dev), spi->chip_select); 1080 = 1081 ret =3D devm_mdiobus_register(&spi->dev, db->mdiobus); 1082 if (ret) { 1083 dev_err(&spi->dev, "Could not register MDIO bus\n"); 1084 return ret; 1085 } 1086 return 0; 1087 } 1088 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3379572090623312985==--