[driver-core:debugfs_cleanup 102/109] net//6lowpan/core.c:51:6: error: void value not ignored as it ought to be

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup
head:   ead253d78760f569593267b87592175cc66b0f99
commit: a1e3d1d072efed7a835376d1b17c21ae9021b9a7 [102/109] 6lowpan: fix changelog
config: m68k-sun3_defconfig (attached as .config)
compiler: m68k-linux-gnu-gcc (Debian 7.2.0-11) 7.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 a1e3d1d072efed7a835376d1b17c21ae9021b9a7
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=m68k 

All errors (new ones prefixed by >>):

   net//6lowpan/core.c: In function 'lowpan_register_netdevice':
>> net//6lowpan/core.c:51:6: error: void value not ignored as it ought to be
     ret = lowpan_dev_debugfs_init(dev);
         ^

vim +51 net//6lowpan/core.c

b1815fd9 Alexander Aring 2015-12-09  20  
00f59314 Alexander Aring 2015-12-09  21  int lowpan_register_netdevice(struct net_device *dev,
00f59314 Alexander Aring 2015-12-09  22  			      enum lowpan_lltypes lltype)
b72f6f51 Alexander Aring 2015-08-11  23  {
5609c185 Alexander Aring 2016-02-22  24  	int i, ret;
b1815fd9 Alexander Aring 2015-12-09  25  
be054fc8 Patrik Flykt    2017-03-12  26  	switch (lltype) {
be054fc8 Patrik Flykt    2017-03-12  27  	case LOWPAN_LLTYPE_IEEE802154:
4d6a6aed Alexander Aring 2015-10-02  28  		dev->addr_len = EUI64_ADDR_LEN;
be054fc8 Patrik Flykt    2017-03-12  29  		break;
be054fc8 Patrik Flykt    2017-03-12  30  
be054fc8 Patrik Flykt    2017-03-12  31  	case LOWPAN_LLTYPE_BTLE:
be054fc8 Patrik Flykt    2017-03-12  32  		dev->addr_len = ETH_ALEN;
be054fc8 Patrik Flykt    2017-03-12  33  		break;
be054fc8 Patrik Flykt    2017-03-12  34  	}
be054fc8 Patrik Flykt    2017-03-12  35  
4d6a6aed Alexander Aring 2015-10-02  36  	dev->type = ARPHRD_6LOWPAN;
4d6a6aed Alexander Aring 2015-10-02  37  	dev->mtu = IPV6_MIN_MTU;
4d6a6aed Alexander Aring 2015-10-02  38  
2e4d60cb Alexander Aring 2016-04-11  39  	lowpan_dev(dev)->lltype = lltype;
00f59314 Alexander Aring 2015-12-09  40  
2e4d60cb Alexander Aring 2016-04-11  41  	spin_lock_init(&lowpan_dev(dev)->ctx.lock);
5609c185 Alexander Aring 2016-02-22  42  	for (i = 0; i < LOWPAN_IPHC_CTX_TABLE_SIZE; i++)
2e4d60cb Alexander Aring 2016-04-11  43  		lowpan_dev(dev)->ctx.table[i].id = i;
5609c185 Alexander Aring 2016-02-22  44  
bbe5f5ce Alexander Aring 2016-06-15  45  	dev->ndisc_ops = &lowpan_ndisc_ops;
bbe5f5ce Alexander Aring 2016-06-15  46  
92e17ee7 Alexander Aring 2015-12-15  47  	ret = register_netdevice(dev);
b1815fd9 Alexander Aring 2015-12-09  48  	if (ret < 0)
b1815fd9 Alexander Aring 2015-12-09  49  		return ret;
b1815fd9 Alexander Aring 2015-12-09  50  
92e17ee7 Alexander Aring 2015-12-15 @51  	ret = lowpan_dev_debugfs_init(dev);
b1815fd9 Alexander Aring 2015-12-09  52  	if (ret < 0)
92e17ee7 Alexander Aring 2015-12-15  53  		unregister_netdevice(dev);
b1815fd9 Alexander Aring 2015-12-09  54  
b1815fd9 Alexander Aring 2015-12-09  55  	return ret;
00f59314 Alexander Aring 2015-12-09  56  }
00f59314 Alexander Aring 2015-12-09  57  EXPORT_SYMBOL(lowpan_register_netdevice);
00f59314 Alexander Aring 2015-12-09  58  

:::::: The code at line 51 was first introduced by commit
:::::: 92e17ee72a60b126263cbcd749e5da688e0198a3 6lowpan: fix debugfs interface entry name

:::::: TO: Alexander Aring <alex.aring@xxxxxxxxx>
:::::: CC: Marcel Holtmann <marcel@xxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux