Search Linux Wireless

[wireless-testing:master 10/15] net/ipv4/arp.c:660:14: error: 'net' redeclared as different kind of symbol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git master
head:   75281915cd10d5ae6fe7a78bfd9fd3cce988c77b
commit: 290da6ceeb8f58d63f0810593c95753825b52f57 [10/15] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
config: mips-jz4740 (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
  git checkout 290da6ceeb8f58d63f0810593c95753825b52f57
  # save the attached .config to linux build tree
  make.cross ARCH=mips 

Note: the wireless-testing/master HEAD 75281915cd10d5ae6fe7a78bfd9fd3cce988c77b builds fine.
      It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

   net/ipv4/arp.c: In function 'arp_process':
>> net/ipv4/arp.c:660:14: error: 'net' redeclared as different kind of symbol
     struct net *net = dev_net(dev);
                 ^
   net/ipv4/arp.c:648:36: note: previous definition of 'net' was here
    static int arp_process(struct net *net, struct sock *sk, struct sk_buff *skb)
                                       ^

vim +/net +660 net/ipv4/arp.c

^1da177e Linus Torvalds    2005-04-16  644  /*
^1da177e Linus Torvalds    2005-04-16  645   *	Process an arp request.
^1da177e Linus Torvalds    2005-04-16  646   */
^1da177e Linus Torvalds    2005-04-16  647  
0c4b51f0 Eric W. Biederman 2015-09-15  648  static int arp_process(struct net *net, struct sock *sk, struct sk_buff *skb)
^1da177e Linus Torvalds    2005-04-16  649  {
^1da177e Linus Torvalds    2005-04-16  650  	struct net_device *dev = skb->dev;
faa9dcf7 Eric Dumazet      2010-06-03  651  	struct in_device *in_dev = __in_dev_get_rcu(dev);
^1da177e Linus Torvalds    2005-04-16  652  	struct arphdr *arp;
^1da177e Linus Torvalds    2005-04-16  653  	unsigned char *arp_ptr;
^1da177e Linus Torvalds    2005-04-16  654  	struct rtable *rt;
e0260fed Mark Ryden        2007-12-19  655  	unsigned char *sha;
9e12bb22 Al Viro           2006-09-26  656  	__be32 sip, tip;
^1da177e Linus Torvalds    2005-04-16  657  	u16 dev_type = dev->type;
^1da177e Linus Torvalds    2005-04-16  658  	int addr_type;
^1da177e Linus Torvalds    2005-04-16  659  	struct neighbour *n;
c346dca1 YOSHIFUJI Hideaki 2008-03-25 @660  	struct net *net = dev_net(dev);
63d008a4 Jiri Benc         2015-09-22  661  	struct dst_entry *reply_dst = NULL;
56022a8f Salam Noureddine  2013-12-24  662  	bool is_garp = false;
^1da177e Linus Torvalds    2005-04-16  663  
^1da177e Linus Torvalds    2005-04-16  664  	/* arp_rcv below verifies the ARP header and verifies the device
^1da177e Linus Torvalds    2005-04-16  665  	 * is ARP'able.
^1da177e Linus Torvalds    2005-04-16  666  	 */
^1da177e Linus Torvalds    2005-04-16  667  
51456b29 Ian Morris        2015-04-03  668  	if (!in_dev)

:::::: The code at line 660 was first introduced by commit
:::::: c346dca10840a874240c78efe3f39acf4312a1f2 [NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS.

:::::: TO: YOSHIFUJI Hideaki <yoshfuji@xxxxxxxxxxxxxx>
:::::: CC: YOSHIFUJI Hideaki <yoshfuji@xxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux