[kvm:queue 105/118] arch/s390/include/asm/kvm_para.h:185:19: error: conflicting types for 'kvm_para_available'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   2be36d0a853ffdabd4029d4f495d73362b0689f8
commit: cdfb3f7dd044f505f714db02ff74141f10a71e71 [105/118] KVM: export <linux/kvm_para.h> and <asm/kvm_para.h> iif KVM is supported
config: s390-allyesconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout cdfb3f7dd044f505f714db02ff74141f10a71e71
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=s390 

All errors (new ones prefixed by >>):

   In file included from include/uapi/linux/kvm_para.h:35:0,
                    from include/linux/kvm_para.h:5,
                    from include/linux/kvm_host.h:34,
                    from arch/s390/kernel/asm-offsets.c:11:
>> arch/s390/include/asm/kvm_para.h:185:19: error: conflicting types for 'kvm_para_available'
    static inline int kvm_para_available(void)
                      ^~~~~~~~~~~~~~~~~~
   In file included from ./arch/s390/include/generated/uapi/asm/kvm_para.h:1:0,
                    from arch/s390/include/asm/kvm_para.h:24,
                    from include/uapi/linux/kvm_para.h:35,
                    from include/linux/kvm_para.h:5,
                    from include/linux/kvm_host.h:34,
                    from arch/s390/kernel/asm-offsets.c:11:
   include/asm-generic/kvm_para.h:27:20: note: previous definition of 'kvm_para_available' was here
    static inline bool kvm_para_available(void)
                       ^~~~~~~~~~~~~~~~~~
   In file included from include/uapi/linux/kvm_para.h:35:0,
                    from include/linux/kvm_para.h:5,
                    from include/linux/kvm_host.h:34,
                    from arch/s390/kernel/asm-offsets.c:11:
>> arch/s390/include/asm/kvm_para.h:191:28: error: redefinition of 'kvm_arch_para_features'
    static inline unsigned int kvm_arch_para_features(void)
                               ^~~~~~~~~~~~~~~~~~~~~~
   In file included from ./arch/s390/include/generated/uapi/asm/kvm_para.h:1:0,
                    from arch/s390/include/asm/kvm_para.h:24,
                    from include/uapi/linux/kvm_para.h:35,
                    from include/linux/kvm_para.h:5,
                    from include/linux/kvm_host.h:34,
                    from arch/s390/kernel/asm-offsets.c:11:
   include/asm-generic/kvm_para.h:17:28: note: previous definition of 'kvm_arch_para_features' was here
    static inline unsigned int kvm_arch_para_features(void)
                               ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/uapi/linux/kvm_para.h:35:0,
                    from include/linux/kvm_para.h:5,
                    from include/linux/kvm_host.h:34,
                    from arch/s390/kernel/asm-offsets.c:11:
>> arch/s390/include/asm/kvm_para.h:196:28: error: redefinition of 'kvm_arch_para_hints'
    static inline unsigned int kvm_arch_para_hints(void)
                               ^~~~~~~~~~~~~~~~~~~
   In file included from ./arch/s390/include/generated/uapi/asm/kvm_para.h:1:0,
                    from arch/s390/include/asm/kvm_para.h:24,
                    from include/uapi/linux/kvm_para.h:35,
                    from include/linux/kvm_para.h:5,
                    from include/linux/kvm_host.h:34,
                    from arch/s390/kernel/asm-offsets.c:11:
   include/asm-generic/kvm_para.h:22:28: note: previous definition of 'kvm_arch_para_hints' was here
    static inline unsigned int kvm_arch_para_hints(void)
                               ^~~~~~~~~~~~~~~~~~~
   In file included from include/uapi/linux/kvm_para.h:35:0,
                    from include/linux/kvm_para.h:5,
                    from include/linux/kvm_host.h:34,
                    from arch/s390/kernel/asm-offsets.c:11:
>> arch/s390/include/asm/kvm_para.h:201:20: error: redefinition of 'kvm_check_and_clear_guest_paused'
    static inline bool kvm_check_and_clear_guest_paused(void)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from ./arch/s390/include/generated/uapi/asm/kvm_para.h:1:0,
                    from arch/s390/include/asm/kvm_para.h:24,
                    from include/uapi/linux/kvm_para.h:35,
                    from include/linux/kvm_para.h:5,
                    from include/linux/kvm_host.h:34,
                    from arch/s390/kernel/asm-offsets.c:11:
   include/asm-generic/kvm_para.h:12:20: note: previous definition of 'kvm_check_and_clear_guest_paused' was here
    static inline bool kvm_check_and_clear_guest_paused(void)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   make[2]: *** [arch/s390/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +/kvm_para_available +185 arch/s390/include/asm/kvm_para.h

1ec2772e arch/s390/include/asm/kvm_para.h Martin Schwidefsky    2015-08-20  183  
e976a2b9 include/asm-s390/kvm_para.h      Christian Borntraeger 2008-03-25  184  /* kvm on s390 is always paravirtualization enabled */
b0c632db include/asm-s390/kvm_para.h      Heiko Carstens        2008-03-25 @185  static inline int kvm_para_available(void)
b0c632db include/asm-s390/kvm_para.h      Heiko Carstens        2008-03-25  186  {
e976a2b9 include/asm-s390/kvm_para.h      Christian Borntraeger 2008-03-25  187  	return 1;
b0c632db include/asm-s390/kvm_para.h      Heiko Carstens        2008-03-25  188  }
b0c632db include/asm-s390/kvm_para.h      Heiko Carstens        2008-03-25  189  
e976a2b9 include/asm-s390/kvm_para.h      Christian Borntraeger 2008-03-25  190  /* No feature bits are currently assigned for kvm on s390 */
b0c632db include/asm-s390/kvm_para.h      Heiko Carstens        2008-03-25 @191  static inline unsigned int kvm_arch_para_features(void)
b0c632db include/asm-s390/kvm_para.h      Heiko Carstens        2008-03-25  192  {
b0c632db include/asm-s390/kvm_para.h      Heiko Carstens        2008-03-25  193  	return 0;
b0c632db include/asm-s390/kvm_para.h      Heiko Carstens        2008-03-25  194  }
b0c632db include/asm-s390/kvm_para.h      Heiko Carstens        2008-03-25  195  
a4429e53 arch/s390/include/asm/kvm_para.h Wanpeng Li            2018-02-13 @196  static inline unsigned int kvm_arch_para_hints(void)
a4429e53 arch/s390/include/asm/kvm_para.h Wanpeng Li            2018-02-13  197  {
a4429e53 arch/s390/include/asm/kvm_para.h Wanpeng Li            2018-02-13  198  	return 0;
a4429e53 arch/s390/include/asm/kvm_para.h Wanpeng Li            2018-02-13  199  }
a4429e53 arch/s390/include/asm/kvm_para.h Wanpeng Li            2018-02-13  200  
3b5d56b9 arch/s390/include/asm/kvm_para.h Eric B Munson         2012-03-10 @201  static inline bool kvm_check_and_clear_guest_paused(void)
3b5d56b9 arch/s390/include/asm/kvm_para.h Eric B Munson         2012-03-10  202  {
3b5d56b9 arch/s390/include/asm/kvm_para.h Eric B Munson         2012-03-10  203  	return false;
3b5d56b9 arch/s390/include/asm/kvm_para.h Eric B Munson         2012-03-10  204  }
3b5d56b9 arch/s390/include/asm/kvm_para.h Eric B Munson         2012-03-10  205  

:::::: The code at line 185 was first introduced by commit
:::::: b0c632db637d68ad39d9f97f452ce176253f5f4e KVM: s390: arch backend for the kvm kernel module

:::::: TO: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
:::::: CC: Avi Kivity <avi@xxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux