Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sean Christopherson <seanjc@google.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [sean-jc:x86/no_bug_on_isr_count 1/1] arch/x86/kvm/lapic.c:770:65: error: extraneous ')' before ';'
Date: Thu, 18 Jun 2026 08:58:12 +0800	[thread overview]
Message-ID: <202606180808.GLXxpgBp-lkp@intel.com> (raw)

tree:   https://github.com/sean-jc/linux x86/no_bug_on_isr_count
head:   a641b87ae60a2279dc0b8db0be73d98a0f1a1c1e
commit: a641b87ae60a2279dc0b8db0be73d98a0f1a1c1e [1/1] KVM: x86: Bug the VM, not the kernel, if the ISR count {under,over}flows
config: x86_64-buildonly-randconfig-001-20260618 (https://download.01.org/0day-ci/archive/20260618/202606180808.GLXxpgBp-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260618/202606180808.GLXxpgBp-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606180808.GLXxpgBp-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/x86/kvm/lapic.c:770:65: error: extraneous ')' before ';'
     770 |                 KVM_BUG_ON(apic->isr_count > MAX_APIC_VECTOR, apic->vcpu->kvm));
         |                                                                               ^
   arch/x86/kvm/lapic.c:811:51: error: extraneous ')' before ';'
     811 |                 KVM_BUG_ON(apic->isr_count < 0, apic->vcpu->kvm));
         |                                                                 ^
   2 errors generated.


vim +770 arch/x86/kvm/lapic.c

   754	
   755	static inline void apic_set_isr(int vec, struct kvm_lapic *apic)
   756	{
   757		if (__test_and_set_bit(APIC_VECTOR_TO_BIT_NUMBER(vec),
   758				       apic_vector_to_isr(vec, apic)))
   759			return;
   760	
   761		/*
   762		 * With APIC virtualization enabled, all caching is disabled
   763		 * because the processor can modify ISR under the hood.  Instead
   764		 * just set SVI.
   765		 */
   766		if (unlikely(apic->apicv_active))
   767			kvm_x86_call(hwapic_isr_update)(apic->vcpu, vec);
   768		else {
   769			++apic->isr_count;
 > 770			KVM_BUG_ON(apic->isr_count > MAX_APIC_VECTOR, apic->vcpu->kvm));
   771			/*
   772			 * ISR (in service register) bit is set when injecting an interrupt.
   773			 * The highest vector is injected. Thus the latest bit set matches
   774			 * the highest bit in ISR.
   775			 */
   776			apic->highest_isr_cache = vec;
   777		}
   778	}
   779	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-06-18  0:58 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=202606180808.GLXxpgBp-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=seanjc@google.com \
    /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