public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* compiling with icc: kvm.h(240): error
@ 2008-10-23 16:59 Antoine Martin
  2008-11-09 15:00 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Antoine Martin @ 2008-10-23 16:59 UTC (permalink / raw)
  To: kvm

Hi,

I am testing kernel builds with Intel's ICC and got a failure on KVM 
(not that the rest was very smooth either...)
Just in case someone is interested, here it is (this kernel tree is 
loosely based on linux-next + other patches):

CC [M]  arch/x86/kvm/svm.o - due to: include/linux/bounds.h
icc -Wp,-MD,arch/x86/kvm/.svm.o.d -nostdinc -isystem icc 
-I/usr/lib/gcc/i486-pc-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude 
-I/usr/src/fastboot.git/arch/x86/include -include 
include/linux/autoconf.h -Wall    -fno-strict-aliasing -fno-common 
-Werror-implicit-function-declaration -Os -m32   -freg-struct-return  
-mtune=generic  -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe   
-Iinclude/asm-x86/mach-default   -fno-omit-frame-pointer   -Ivirt/kvm 
-Iarch/x86/kvm -DMODULE -DKBUILD_STR(s)=#s 
-DKBUILD_BASENAME=KBUILD_STR(svm) -DKBUILD_MODNAME=KBUILD_STR(kvm_amd) 
-c -o arch/x86/kvm/.tmp_svm.o arch/x86/kvm/svm.c
icc: command line warning #10156: ignoring option '-W'; no argument 
required
include/linux/kvm.h(240): error: "padding" has already been declared in 
the current scope
               __u64 padding;
                     ^

arch/x86/kvm/mmu.h(54): remark #869: parameter "vcpu" was never referenced
 static inline int is_long_mode(struct kvm_vcpu *vcpu)
(...)

Patch following the same approach used in this file:
--- a/include/linux/kvm.h   2008-10-17 16:29:41.000000000 +0100
+++ b/include/linux/kvm.h     2008-10-23 17:58:15.000000000 +0100
@@ -234,10 +234,10 @@
 /* for KVM_GET_DIRTY_LOG */
 struct kvm_dirty_log {
        __u32 slot;
-       __u32 padding;
+       __u32 padding1;
        union {
                void __user *dirty_bitmap; /* one bit per page */
-               __u64 padding;
+               __u64 padding2;
        };
 };

Cheers
Antoine

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: compiling with icc: kvm.h(240): error
  2008-10-23 16:59 compiling with icc: kvm.h(240): error Antoine Martin
@ 2008-11-09 15:00 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-11-09 15:00 UTC (permalink / raw)
  To: Antoine Martin; +Cc: kvm

Antoine Martin wrote:
> Hi,
>
> I am testing kernel builds with Intel's ICC and got a failure on KVM 
> (not that the rest was very smooth either...)
> Just in case someone is interested, here it is (this kernel tree is 
> loosely based on linux-next + other patches):
>
> CC [M]  arch/x86/kvm/svm.o - due to: include/linux/bounds.h
> icc -Wp,-MD,arch/x86/kvm/.svm.o.d -nostdinc -isystem icc 
> -I/usr/lib/gcc/i486-pc-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude 
> -I/usr/src/fastboot.git/arch/x86/include -include 
> include/linux/autoconf.h -Wall    -fno-strict-aliasing -fno-common 
> -Werror-implicit-function-declaration -Os -m32   -freg-struct-return  
> -mtune=generic  -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 
> -pipe   -Iinclude/asm-x86/mach-default   -fno-omit-frame-pointer   
> -Ivirt/kvm -Iarch/x86/kvm -DMODULE -DKBUILD_STR(s)=#s 
> -DKBUILD_BASENAME=KBUILD_STR(svm) -DKBUILD_MODNAME=KBUILD_STR(kvm_amd) 
> -c -o arch/x86/kvm/.tmp_svm.o arch/x86/kvm/svm.c
> icc: command line warning #10156: ignoring option '-W'; no argument 
> required
> include/linux/kvm.h(240): error: "padding" has already been declared 
> in the current scope
>               __u64 padding;
>                     ^
>

Please resend with a changelog entry and signoff.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-09 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-23 16:59 compiling with icc: kvm.h(240): error Antoine Martin
2008-11-09 15:00 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox