Messages in this thread | | | Date | Thu, 22 Oct 2015 22:55:49 +0800 | From | kbuild test robot <> | Subject | Re: [PATCH 3/3] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller |
| |
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: x86_64-allmodconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=x86_64
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; ^ In file included from include/linux/dma-mapping.h:5:0, from include/linux/skbuff.h:34, from include/linux/if_ether.h:23, from include/linux/etherdevice.h:25, from drivers/net/ethernet/aurora/nb8800.c:24: drivers/net/ethernet/aurora/nb8800.c: In function 'nb8800_probe': >> drivers/net/ethernet/aurora/nb8800.c:1006:23: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=] dev_info(&pdev->dev, "AU-NB8800 Ethernet at 0x%x\n", res->start); ^ include/linux/device.h:1166:51: note: in definition of macro 'dev_info' #define dev_info(dev, fmt, arg...) _dev_info(dev, fmt, ##arg) ^
vim +381 drivers/net/ethernet/aurora/nb8800.c
365 366 static int nb8800_xmit(struct sk_buff *skb, struct net_device *dev) 367 { 368 struct nb8800_priv *priv = netdev_priv(dev); 369 struct tx_skb_data *skb_data; 370 struct tx_buf *tx_buf; 371 dma_addr_t dma_addr; 372 unsigned int dma_len; 373 int cpsz, next; 374 int frags; 375 376 if (atomic_read(&priv->tx_free) <= NB8800_DESC_LOW) { 377 netif_stop_queue(dev); 378 return NETDEV_TX_BUSY; 379 } 380 > 381 cpsz = (8 - (u32)skb->data) & 7; 382 383 frags = cpsz ? 2 : 1; 384 atomic_sub(frags, &priv->tx_free); 385 386 dma_len = skb->len - cpsz; 387 dma_addr = dma_map_single(&dev->dev, skb->data + cpsz, 388 dma_len, DMA_TO_DEVICE); 389
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation [unhandled content-type:application/octet-stream] | |