Hi Sergio, I love your patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] [also build test WARNING on linus/master next-20210506] [cannot apply to robh/for-next v5.12] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Sergio-Paracuellos/phy-ralink-mt7621-pci-phy-some-improvements/20210506-191714 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git e120332923e13d8d9386594a83dc7cbf327e3edf config: sparc-allyesconfig (attached as .config) compiler: sparc64-linux-gcc (GCC) 9.3.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/0day-ci/linux/commit/44e8bb824a0a4af6fc41d67b70ec3a678bd8125f git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Sergio-Paracuellos/phy-ralink-mt7621-pci-phy-some-improvements/20210506-191714 git checkout 44e8bb824a0a4af6fc41d67b70ec3a678bd8125f # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=sparc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): In file included from include/linux/device.h:15, from include/linux/node.h:18, from include/linux/cpu.h:17, from include/linux/of_device.h:5, from drivers/phy/ralink/phy-mt7621-pci.c:13: drivers/phy/ralink/phy-mt7621-pci.c: In function 'mt7621_pcie_phy_of_xlate': >> drivers/phy/ralink/phy-mt7621-pci.c:277:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 277 | (unsigned int)mt7621_phy->port_base, mt7621_phy->has_dual_port); | ^ include/linux/dev_printk.h:118:33: note: in definition of macro 'dev_info' 118 | _dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~ vim +277 drivers/phy/ralink/phy-mt7621-pci.c d87da32372a03c Sergio Paracuellos 2020-11-21 265 d87da32372a03c Sergio Paracuellos 2020-11-21 266 static struct phy *mt7621_pcie_phy_of_xlate(struct device *dev, d87da32372a03c Sergio Paracuellos 2020-11-21 267 struct of_phandle_args *args) d87da32372a03c Sergio Paracuellos 2020-11-21 268 { d87da32372a03c Sergio Paracuellos 2020-11-21 269 struct mt7621_pci_phy *mt7621_phy = dev_get_drvdata(dev); d87da32372a03c Sergio Paracuellos 2020-11-21 270 d87da32372a03c Sergio Paracuellos 2020-11-21 271 if (WARN_ON(args->args[0] >= MAX_PHYS)) d87da32372a03c Sergio Paracuellos 2020-11-21 272 return ERR_PTR(-ENODEV); d87da32372a03c Sergio Paracuellos 2020-11-21 273 d87da32372a03c Sergio Paracuellos 2020-11-21 274 mt7621_phy->has_dual_port = args->args[0]; d87da32372a03c Sergio Paracuellos 2020-11-21 275 d87da32372a03c Sergio Paracuellos 2020-11-21 276 dev_info(dev, "PHY for 0x%08x (dual port = %d)\n", d87da32372a03c Sergio Paracuellos 2020-11-21 @277 (unsigned int)mt7621_phy->port_base, mt7621_phy->has_dual_port); d87da32372a03c Sergio Paracuellos 2020-11-21 278 d87da32372a03c Sergio Paracuellos 2020-11-21 279 return mt7621_phy->phy; d87da32372a03c Sergio Paracuellos 2020-11-21 280 } d87da32372a03c Sergio Paracuellos 2020-11-21 281 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip