[bigeasy-staging:seqcount 9/10] net/core/gen_stats.c:121:11: error: assigning to 'u64_stats_t' from incompatible type 'int'
From: kernel test robot
Date: Thu Oct 14 2021 - 19:30:07 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/staging.git seqcount
head: 53a2ea564d8a37a032c879a9e9bfa88b8e0e5ecd
commit: 2ed461d3554b6c9a468ee601dfc1152faac92408 [9/10] net: sched: Merge Qdisc::bstats and Qdisc::cpu_bstats data types
config: hexagon-randconfig-r041-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6c76d0101193aa4eb891a6954ff047eda2f9cf71)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/staging.git/commit/?id=2ed461d3554b6c9a468ee601dfc1152faac92408
git remote add bigeasy-staging https://git.kernel.org/pub/scm/linux/kernel/git/bigeasy/staging.git
git fetch --no-tags bigeasy-staging seqcount
git checkout 2ed461d3554b6c9a468ee601dfc1152faac92408
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash net/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
>> net/core/gen_stats.c:121:11: error: assigning to 'u64_stats_t' from incompatible type 'int'
b->bytes = 0;
^ ~
net/core/gen_stats.c:122:13: error: assigning to 'u64_stats_t' from incompatible type 'int'
b->packets = 0;
^ ~
2 errors generated.
vim +121 net/core/gen_stats.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 116
34165a95d97fbc Ahmed S. Darwish 2021-09-17 117 #ifdef CONFIG_LOCKDEP
34165a95d97fbc Ahmed S. Darwish 2021-09-17 118 /* Must not be inlined, due to u64_stats seqcount_t lockdep key */
2ed461d3554b6c Ahmed S. Darwish 2021-09-17 119 void gnet_stats_basic_sync_init(struct gnet_stats_basic_sync *b)
34165a95d97fbc Ahmed S. Darwish 2021-09-17 120 {
34165a95d97fbc Ahmed S. Darwish 2021-09-17 @121 b->bytes = 0;
34165a95d97fbc Ahmed S. Darwish 2021-09-17 122 b->packets = 0;
34165a95d97fbc Ahmed S. Darwish 2021-09-17 123 u64_stats_init(&b->syncp);
34165a95d97fbc Ahmed S. Darwish 2021-09-17 124 }
2ed461d3554b6c Ahmed S. Darwish 2021-09-17 125 EXPORT_SYMBOL(gnet_stats_basic_sync_init);
34165a95d97fbc Ahmed S. Darwish 2021-09-17 126 #endif
34165a95d97fbc Ahmed S. Darwish 2021-09-17 127
:::::: The code at line 121 was first introduced by commit
:::::: 34165a95d97fbc4acdb090de432bdda12dfdbed9 net: sched: Protect Qdisc::bstats with u64_stats
:::::: TO: Ahmed S. Darwish <a.darwish@xxxxxxxxxxxxx>
:::::: CC: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip