linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Ahmed S. Darwish" <a.darwish@linutronix.de>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Subject: [bigeasy-staging:seqcount 9/10] net/core/gen_stats.c:121:11: error: assigning to 'u64_stats_t' from incompatible type 'int'
Date: Fri, 15 Oct 2021 07:28:46 +0800	[thread overview]
Message-ID: <202110150735.Ovqcciaa-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-10-14 23:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202110150735.Ovqcciaa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=a.darwish@linutronix.de \
    --cc=bigeasy@linutronix.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).