* [linux-arm:cex7 90/97] drivers/net/ethernet/freescale/xgmac_mdio.c:253:10: warning: returning 'int' from a function with return type 'struct mii_bus *' makes pointer from integer without a cast
@ 2020-02-04 16:51 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-02-04 16:51 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2154 bytes --]
tree: git://git.armlinux.org.uk/~rmk/linux-arm cex7
head: 5e4c06bd918e1ad6a672df506a340a8af67494e3
commit: 3130d40289d8c91e16c5a48233c144f5bda397b3 [90/97] net: xgmac_mdio: allow ethernet drivers to create mdio buses
config: nds32-allyesconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 3130d40289d8c91e16c5a48233c144f5bda397b3
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/net/ethernet/freescale/xgmac_mdio.c: In function 'xgmac_mdio_bus_create':
>> drivers/net/ethernet/freescale/xgmac_mdio.c:253:10: warning: returning 'int' from a function with return type 'struct mii_bus *' makes pointer from integer without a cast [-Wint-conversion]
253 | return -ENOMEM;
| ^
vim +253 drivers/net/ethernet/freescale/xgmac_mdio.c
243
244 struct mii_bus *xgmac_mdio_bus_create(struct device *parent,
245 unsigned long long id,
246 void *base, bool is_little_endian)
247 {
248 struct mdio_fsl_priv *priv;
249 struct mii_bus *bus;
250
251 bus = mdiobus_alloc_size(sizeof(struct mdio_fsl_priv));
252 if (!bus)
> 253 return -ENOMEM;
254
255 bus->name = "Freescale XGMAC MDIO Bus";
256 bus->read = xgmac_mdio_read;
257 bus->write = xgmac_mdio_write;
258 bus->parent = parent;
259 snprintf(bus->id, MII_BUS_ID_SIZE, "%llx", id);
260
261 priv = bus->priv;
262 priv->mdio_base = base;
263 priv->is_little_endian = is_little_endian;
264
265 return bus;
266 }
267 EXPORT_SYMBOL_GPL(xgmac_mdio_bus_create);
268
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 53963 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-04 16:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 16:51 [linux-arm:cex7 90/97] drivers/net/ethernet/freescale/xgmac_mdio.c:253:10: warning: returning 'int' from a function with return type 'struct mii_bus *' makes pointer from integer without a cast kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.