From: Baoquan He <bhe@redhat.com>
To: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, x86@kernel.org,
kexec@lists.infradead.org, mingo@redhat.com,
fenghua.yu@intel.com, weijg.fnst@cn.fujitsu.com,
ebiederm@xmission.com, hpa@zytor.com, tglx@linutronix.de,
vgoyal@redhat.com, jiang.liu@linux.intel.com
Subject: Re: [PATCH 3/3] x86/apic: Clean up the apic delivery mode macro definition
Date: Thu, 28 Jul 2016 06:20:58 +0800 [thread overview]
Message-ID: <20160727222058.GA2595@x1.redhat.com> (raw)
In-Reply-To: <201607240725.hpXEwlCH%fengguang.wu@intel.com>
On 07/24/16 at 07:07am, kbuild test robot wrote:
> Hi,
Sorry, I didn't notice this. And after checking code, APIC_DM_EXTINT
could be added for kvm on purpose thought it's not defined in Intel Arch
manual. I am not familiar with KVM, so please drop this patch to avoid
warning. I will make time to study it later.
Thanks
Baoquan
>
> [auto build test WARNING on iommu/next]
> [also build test WARNING on v4.7-rc7 next-20160722]
> [cannot apply to tip/x86/core]
> [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
>
> url: https://github.com/0day-ci/linux/commits/Baoquan-He/Enable-legacy-irq-mode-before-jump-to-kexec-kdump-kernel/20160724-054857
> base: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next
> reproduce:
> # apt-get install sparse
> make ARCH=x86_64 allmodconfig
> make C=1 CF=-D__CHECK_ENDIAN__
>
>
> sparse warnings: (new ones prefixed by >>)
>
> include/linux/compiler.h:232:8: sparse: attribute 'no_sanitize_address': unknown attribute
> arch/x86/kvm/lapic.c:186:15: sparse: incompatible types in comparison expression (different address spaces)
> arch/x86/kvm/lapic.c:963:14: sparse: undefined identifier 'APIC_DM_EXTINT'
> >> arch/x86/kvm/lapic.c:963:14: sparse: incompatible types for 'case' statement
> arch/x86/kvm/lapic.c:699:15: sparse: incompatible types in comparison expression (different address spaces)
> arch/x86/kvm/lapic.c:799:15: sparse: incompatible types in comparison expression (different address spaces)
> arch/x86/kvm/lapic.c:963:14: sparse: Expected constant expression in case statement
> arch/x86/kvm/lapic.c: In function '__apic_accept_irq':
> arch/x86/kvm/lapic.c:963:7: error: 'APIC_DM_EXTINT' undeclared (first use in this function)
> case APIC_DM_EXTINT:
> ^~~~~~~~~~~~~~
> arch/x86/kvm/lapic.c:963:7: note: each undeclared identifier is reported only once for each function it appears in
>
> vim +/case +963 arch/x86/kvm/lapic.c
>
> c5ec15340 drivers/kvm/lapic.c He, Qing 2007-09-03 947 vcpu->vcpu_id);
> c5ec15340 drivers/kvm/lapic.c He, Qing 2007-09-03 948 }
> 97222cc83 drivers/kvm/lapic.c Eddie Dong 2007-09-12 949 break;
> 97222cc83 drivers/kvm/lapic.c Eddie Dong 2007-09-12 950
> 97222cc83 drivers/kvm/lapic.c Eddie Dong 2007-09-12 951 case APIC_DM_STARTUP:
> 1b10bf31a arch/x86/kvm/lapic.c Jan Kiszka 2008-09-30 952 apic_debug("SIPI to vcpu %d vector 0x%02x\n",
> c5ec15340 drivers/kvm/lapic.c He, Qing 2007-09-03 953 vcpu->vcpu_id, vector);
> 6da7e3f64 arch/x86/kvm/lapic.c Gleb Natapov 2009-03-05 954 result = 1;
> 66450a21f arch/x86/kvm/lapic.c Jan Kiszka 2013-03-13 955 apic->sipi_vector = vector;
> 66450a21f arch/x86/kvm/lapic.c Jan Kiszka 2013-03-13 956 /* make sure sipi_vector is visible for the receiver */
> 66450a21f arch/x86/kvm/lapic.c Jan Kiszka 2013-03-13 957 smp_wmb();
> 66450a21f arch/x86/kvm/lapic.c Jan Kiszka 2013-03-13 958 set_bit(KVM_APIC_SIPI, &apic->pending_events);
> 3842d135f arch/x86/kvm/lapic.c Avi Kivity 2010-07-27 959 kvm_make_request(KVM_REQ_EVENT, vcpu);
> d76901750 arch/x86/kvm/lapic.c Marcelo Tosatti 2008-09-08 960 kvm_vcpu_kick(vcpu);
> 97222cc83 drivers/kvm/lapic.c Eddie Dong 2007-09-12 961 break;
> 97222cc83 drivers/kvm/lapic.c Eddie Dong 2007-09-12 962
> 23930f952 arch/x86/kvm/lapic.c Jan Kiszka 2008-09-26 @963 case APIC_DM_EXTINT:
> 23930f952 arch/x86/kvm/lapic.c Jan Kiszka 2008-09-26 964 /*
> 23930f952 arch/x86/kvm/lapic.c Jan Kiszka 2008-09-26 965 * Should only be called by kvm_apic_local_deliver() with LVT0,
> 23930f952 arch/x86/kvm/lapic.c Jan Kiszka 2008-09-26 966 * before NMI watchdog was enabled. Already handled by
> 23930f952 arch/x86/kvm/lapic.c Jan Kiszka 2008-09-26 967 * kvm_apic_accept_pic_intr().
> 23930f952 arch/x86/kvm/lapic.c Jan Kiszka 2008-09-26 968 */
> 23930f952 arch/x86/kvm/lapic.c Jan Kiszka 2008-09-26 969 break;
> 23930f952 arch/x86/kvm/lapic.c Jan Kiszka 2008-09-26 970
> 97222cc83 drivers/kvm/lapic.c Eddie Dong 2007-09-12 971 default:
>
> :::::: The code at line 963 was first introduced by commit
> :::::: 23930f9521c9c4d4aa96cdb9d1e1703f3782bb94 KVM: x86: Enable NMI Watchdog via in-kernel PIT source
>
> :::::: TO: Jan Kiszka <jan.kiszka@siemens.com>
> :::::: CC: Avi Kivity <avi@redhat.com>
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
next prev parent reply other threads:[~2016-07-27 22:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-20 2:58 [PATCH 0/3] Enable legacy irq mode before jump to kexec/kdump kernel Baoquan He
2016-07-20 2:58 ` [PATCH 1/3] x86/apic/kexec: " Baoquan He
2016-07-20 2:58 ` [PATCH 2/3] x86/apic: Clean up the names of legacy irq mode setting related functions Baoquan He
2016-07-20 2:58 ` [PATCH 3/3] x86/apic: Clean up the apic delivery mode macro definition Baoquan He
2016-07-23 23:06 ` kbuild test robot
2016-07-23 23:07 ` kbuild test robot
2016-07-27 22:20 ` Baoquan He [this message]
2016-07-20 3:54 ` [PATCH 0/3] Enable legacy irq mode before jump to kexec/kdump kernel Wei, Jiangang
2016-07-20 4:15 ` bhe
2016-07-20 6:32 ` Thomas Gleixner
2016-07-20 6:48 ` bhe
2016-07-20 6:28 ` bhe
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=20160727222058.GA2595@x1.redhat.com \
--to=bhe@redhat.com \
--cc=ebiederm@xmission.com \
--cc=fenghua.yu@intel.com \
--cc=hpa@zytor.com \
--cc=jiang.liu@linux.intel.com \
--cc=kbuild-all@01.org \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=vgoyal@redhat.com \
--cc=weijg.fnst@cn.fujitsu.com \
--cc=x86@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®