Re: [PATCH 3/3] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller

From: kbuild test robot
Date: Thu Oct 22 2015 - 18:10:43 EST


Hi Mans,

[auto build test WARNING on net/master -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url: https://github.com/0day-ci/linux/commits/Mans-Rullgard/devicetree-add-vendor-prefix-for-Aurora-VLSI/20151022-220753
config: sparc64-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sparc64

All warnings (new ones prefixed by >>):

drivers/net/ethernet/aurora/nb8800.c: In function 'nb8800_xmit':
drivers/net/ethernet/aurora/nb8800.c:381:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
cpsz = (8 - (u32)skb->data) & 7;
^
drivers/net/ethernet/aurora/nb8800.c: In function 'nb8800_probe':
>> drivers/net/ethernet/aurora/nb8800.c:1006:2: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t' [-Wformat=]
dev_info(&pdev->dev, "AU-NB8800 Ethernet at 0x%x\n", res->start);
^

vim +1006 drivers/net/ethernet/aurora/nb8800.c

990 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
991 if (!res) {
992 dev_err(&pdev->dev, "No MMIO base\n");
993 return -EINVAL;
994 }
995
996 irq = platform_get_irq(pdev, 0);
997 if (irq <= 0) {
998 dev_err(&pdev->dev, "No IRQ\n");
999 return -EINVAL;
1000 }
1001
1002 base = devm_ioremap_resource(&pdev->dev, res);
1003 if (IS_ERR(base))
1004 return PTR_ERR(base);
1005
> 1006 dev_info(&pdev->dev, "AU-NB8800 Ethernet at 0x%x\n", res->start);
1007
1008 dev = alloc_etherdev(sizeof(*priv));
1009 if (!dev)
1010 return -ENOMEM;
1011
1012 platform_set_drvdata(pdev, dev);
1013 SET_NETDEV_DEV(dev, &pdev->dev);
1014

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data