lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <201508311307.3W9KBVXz%fengguang.wu@intel.com>
Date:	Mon, 31 Aug 2015 13:06:10 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	Raghavendra K T <raghavendra.kt@...ux.vnet.ibm.com>
Cc:	kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 1512/1524] net/ipv4/af_inet.c:1486:26: error:
 'offt' undeclared

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   0ef707700f1cef2357ce655fc86a4de5e41fa4b5
commit: c4c6bc314618f60ba69b0cbf93e506e4c38a11d2 [1512/1524] net: Introduce helper functions to get the per cpu data
config: i386-randconfig-i0-201535 (attached as .config)
reproduce:
  git checkout c4c6bc314618f60ba69b0cbf93e506e4c38a11d2
  # save the attached .config to linux build tree
  make ARCH=i386 

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

   net/ipv4/af_inet.c: In function 'snmp_get_cpu_field64':
>> net/ipv4/af_inet.c:1486:26: error: 'offt' undeclared (first use in this function)
      v = *(((u64 *)bhptr) + offt);
                             ^
   net/ipv4/af_inet.c:1486:26: note: each undeclared identifier is reported only once for each function it appears in
   net/ipv4/af_inet.c: In function 'snmp_fold_field64':
>> net/ipv4/af_inet.c:1499:39: error: 'offct' undeclared (first use in this function)
      res += snmp_get_cpu_field(mib, cpu, offct, syncp_offset);
                                          ^
>> net/ipv4/af_inet.c:1499:10: error: too many arguments to function 'snmp_get_cpu_field'
      res += snmp_get_cpu_field(mib, cpu, offct, syncp_offset);
             ^
   net/ipv4/af_inet.c:1455:5: note: declared here
    u64 snmp_get_cpu_field(void __percpu *mib, int cpu, int offt)
        ^
   net/ipv4/af_inet.c:1499: confused by earlier errors, bailing out
   Preprocessed source stored into /tmp/ccqSYE62.out file, please attach this to your bugreport.

vim +/offt +1486 net/ipv4/af_inet.c

4ce3c183 Eric Dumazet      2010-06-30  1480  	unsigned int start;
4ce3c183 Eric Dumazet      2010-06-30  1481  
698365fa WANG Cong         2014-05-05  1482  	bhptr = per_cpu_ptr(mib, cpu);
4ce3c183 Eric Dumazet      2010-06-30  1483  	syncp = (struct u64_stats_sync *)(bhptr + syncp_offset);
4ce3c183 Eric Dumazet      2010-06-30  1484  	do {
57a7744e Eric W. Biederman 2014-03-13  1485  		start = u64_stats_fetch_begin_irq(syncp);
8f0ea0fe Eric Dumazet      2011-06-10 @1486  		v = *(((u64 *)bhptr) + offt);
57a7744e Eric W. Biederman 2014-03-13  1487  	} while (u64_stats_fetch_retry_irq(syncp, start));
4ce3c183 Eric Dumazet      2010-06-30  1488  
c4c6bc31 Raghavendra K T   2015-08-30  1489  	return v;
c4c6bc31 Raghavendra K T   2015-08-30  1490  }
c4c6bc31 Raghavendra K T   2015-08-30  1491  EXPORT_SYMBOL_GPL(snmp_get_cpu_field64);
c4c6bc31 Raghavendra K T   2015-08-30  1492  
c4c6bc31 Raghavendra K T   2015-08-30  1493  u64 snmp_fold_field64(void __percpu *mib, int offt, size_t syncp_offset)
c4c6bc31 Raghavendra K T   2015-08-30  1494  {
c4c6bc31 Raghavendra K T   2015-08-30  1495  	u64 res = 0;
c4c6bc31 Raghavendra K T   2015-08-30  1496  	int cpu;
c4c6bc31 Raghavendra K T   2015-08-30  1497  
c4c6bc31 Raghavendra K T   2015-08-30  1498  	for_each_possible_cpu(cpu) {
c4c6bc31 Raghavendra K T   2015-08-30 @1499  		res += snmp_get_cpu_field(mib, cpu, offct, syncp_offset);
4ce3c183 Eric Dumazet      2010-06-30  1500  	}
4ce3c183 Eric Dumazet      2010-06-30  1501  	return res;
4ce3c183 Eric Dumazet      2010-06-30  1502  }

:::::: The code at line 1486 was first introduced by commit
:::::: 8f0ea0fe3a036a47767f9c80e81b13e379a1f43b snmp: reduce percpu needs by 50%

:::::: TO: Eric Dumazet <eric.dumazet@...il.com>
:::::: CC: David S. Miller <davem@...emloft.net>

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

View attachment ".config" of type "text/plain" (113044 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ