tree: https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git master head: 34d360415a921406e622f60e202892af8cf4c57b commit: 9fbf2fcf1734cbcd01ea3818242b6ed0c4d32869 [37/48] netfilter: nf_tables: atomic dump and reset for stateful objects config: i386-allyesconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 9fbf2fcf1734cbcd01ea3818242b6ed0c4d32869 # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): net/netfilter/nft_counter.c: In function 'nft_counter_fetch': net/netfilter/nft_counter.c:128:18: warning: 'packets' may be used uninitialized in this function [-Wmaybe-uninitialized] total->packets += packets; ^~ net/netfilter/nft_counter.c:129:16: warning: 'bytes' may be used uninitialized in this function [-Wmaybe-uninitialized] total->bytes += bytes; ^~ >> net/netfilter/nft_counter.c:125:21: error: call to '__xchg_wrong_size' declared with attribute error: Bad argument size for xchg } ^ net/netfilter/nft_counter.c:126:7: error: call to '__xchg_wrong_size' declared with attribute error: Bad argument size for xchg } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, seq)); ^~~~~~~~~~~~~~~~~~~ vim +/__xchg_wrong_size +125 net/netfilter/nft_counter.c 119 if (reset) { 120 packets += xchg(&cpu_stats->counter.packets, 0); 121 bytes += xchg(&cpu_stats->counter.bytes, 0); 122 } else { 123 bytes = cpu_stats->counter.bytes; 124 packets = cpu_stats->counter.packets; > 125 } 126 } while (u64_stats_fetch_retry_irq(&cpu_stats->syncp, seq)); 127 > 128 total->packets += packets; 129 total->bytes += bytes; 130 } 131 } --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip