mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-kernel@vger.kernel.org,
	"Paul E. McKenney" <paulmck@kernel.org>
Subject: [rcu:rcu/test 64/65] arch/x86/kvm/mmu/page_track.c:232:2: error: expected expression
Date: Mon, 13 Jul 2020 22:02:42 +0800	[thread overview]
Message-ID: <202007132238.DuCEv1NC%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/test
head:   e4d26431bafa60b212117ec5750833d39ce1b2aa
commit: f89bf7a94ffa9446a341fefc18153e8f9bebffbb [64/65] kvm: mmu: page_track: Fix RCU list API usage
config: x86_64-randconfig-a011-20200713 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git checkout f89bf7a94ffa9446a341fefc18153e8f9bebffbb
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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 >>):

>> arch/x86/kvm/mmu/page_track.c:232:2: error: expected expression
           hlist_for_each_entry_srcu(n, &head->track_notifier_list, node,
           ^
   include/linux/rculist.h:727:30: note: expanded from macro 'hlist_for_each_entry_srcu'
           for (__list_check_srcu(cond),                                   \
                                       ^
   arch/x86/kvm/mmu/page_track.c:258:2: error: expected expression
           hlist_for_each_entry_srcu(n, &head->track_notifier_list, node,
           ^
   include/linux/rculist.h:727:30: note: expanded from macro 'hlist_for_each_entry_srcu'
           for (__list_check_srcu(cond),                                   \
                                       ^
   2 errors generated.

vim +232 arch/x86/kvm/mmu/page_track.c

   211	
   212	/*
   213	 * Notify the node that write access is intercepted and write emulation is
   214	 * finished at this time.
   215	 *
   216	 * The node should figure out if the written page is the one that node is
   217	 * interested in by itself.
   218	 */
   219	void kvm_page_track_write(struct kvm_vcpu *vcpu, gpa_t gpa, const u8 *new,
   220				  int bytes)
   221	{
   222		struct kvm_page_track_notifier_head *head;
   223		struct kvm_page_track_notifier_node *n;
   224		int idx;
   225	
   226		head = &vcpu->kvm->arch.track_notifier_head;
   227	
   228		if (hlist_empty(&head->track_notifier_list))
   229			return;
   230	
   231		idx = srcu_read_lock(&head->track_srcu);
 > 232		hlist_for_each_entry_srcu(n, &head->track_notifier_list, node,
   233					srcu_read_lock_held(&head->track_srcu))
   234			if (n->track_write)
   235				n->track_write(vcpu, gpa, new, bytes, n);
   236		srcu_read_unlock(&head->track_srcu, idx);
   237	}
   238	

---
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: 34143 bytes --]

                 reply	other threads:[~2020-07-13 14:05 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=202007132238.DuCEv1NC%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=madhuparnabhowmik10@gmail.com \
    --cc=paulmck@kernel.org \
    /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

all inboxes | Powered by JetHome®