linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [bigeasy-staging:seqcount 9/10] net/core/gen_stats.c:121:11: error: assigning to 'u64_stats_t' from incompatible type 'int'
@ 2021-10-14 23:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-14 23:28 UTC (permalink / raw)
  To: Ahmed S. Darwish
  Cc: llvm, kbuild-all, linux-kernel, Sebastian Andrzej Siewior

[-- Attachment #1: Type: text/plain, Size: 2899 bytes --]

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@intel.com>

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@linutronix.de>
:::::: CC: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 40598 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-14 23:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-14 23:28 [bigeasy-staging:seqcount 9/10] net/core/gen_stats.c:121:11: error: assigning to 'u64_stats_t' from incompatible type 'int' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).