[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201610280444.f8Gzv3LA%fengguang.wu@intel.com>
Date: Fri, 28 Oct 2016 04:03:46 +0800
From: kbuild test robot <lkp@...el.com>
To: Jiri Pirko <jiri@...nulli.us>
Cc: kbuild-all@...org, netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [patch net-next] rocker: set physical device for port netdevice
Hi Jiri,
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Jiri-Pirko/rocker-set-physical-device-for-port-netdevice/20161028-030044
config: tile-allmodconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
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=tile
All warnings (new ones prefixed by >>):
drivers/net/ethernet/rocker/rocker_main.c: In function 'rocker_probe_port':
>> drivers/net/ethernet/rocker/rocker_main.c:2545:2: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
vim +/const +2545 drivers/net/ethernet/rocker/rocker_main.c
2529 eth_hw_addr_random(rocker_port->dev);
2530 }
2531 }
2532
2533 #define ROCKER_PORT_MIN_MTU ETH_MIN_MTU
2534 #define ROCKER_PORT_MAX_MTU 9000
2535 static int rocker_probe_port(struct rocker *rocker, unsigned int port_number)
2536 {
2537 const struct pci_dev *pdev = rocker->pdev;
2538 struct rocker_port *rocker_port;
2539 struct net_device *dev;
2540 int err;
2541
2542 dev = alloc_etherdev(sizeof(struct rocker_port));
2543 if (!dev)
2544 return -ENOMEM;
> 2545 SET_NETDEV_DEV(dev, &pdev->dev);
2546 rocker_port = netdev_priv(dev);
2547 rocker_port->dev = dev;
2548 rocker_port->rocker = rocker;
2549 rocker_port->port_number = port_number;
2550 rocker_port->pport = port_number + 1;
2551
2552 err = rocker_world_check_init(rocker_port);
2553 if (err) {
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (46344 bytes)
Powered by blists - more mailing lists