Skip to content

Instantly share code, notes, and snippets.

@dvyukov
Created August 13, 2021 06:27
Show Gist options
  • Save dvyukov/993dae6ce34d3032970c9ee19ee6a094 to your computer and use it in GitHub Desktop.
Save dvyukov/993dae6ce34d3032970c9ee19ee6a094 to your computer and use it in GitHub Desktop.
generating linux/s390x...
dev_kvm.txt: failed to run compiler: s390x-linux-gnu-gcc [-nostdinc -w -fmessage-length=0 -O3 -I. -D__KERNEL__ -DKBUILD_MODNAME="-" -Iarch/s390/include -I/tmp/syzkaller-kernel-build543436297/arch/s390/include/generated/uapi -I/tmp/syzkaller-kernel-build543436297/arch/s390/include/generated -Iarch/s390/include/asm/mach-malta -Iarch/s390/include/asm/mach-generic -I/tmp/syzkaller-kernel-build543436297/include -Iinclude -Iarch/s390/include/uapi -I/tmp/syzkaller-kernel-build543436297/arch/s390/include/generated/uapi -Iinclude/uapi -I/tmp/syzkaller-kernel-build543436297/include/generated/uapi -I/syzkaller/kernel -Iinclude/linux -I/tmp/syzkaller-kernel-build543436297/syzkaller -include include/linux/kconfig.h -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -static]
exit status 1
In file included from include/asm-generic/ioctl.h:5,
from /tmp/syzkaller-kernel-build543436297/arch/s390/include/generated/uapi/asm/ioctl.h:1,
from include/uapi/linux/ioctl.h:5,
from include/uapi/linux/kvm.h:14,
from <stdin>:7:
include/uapi/linux/kvm.h:1484:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_cpuid'
#define KVM_SET_CPUID _IOW(KVMIO, 0x8a, struct kvm_cpuid)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1484:35: note: in expansion of macro '_IOW'
#define KVM_SET_CPUID _IOW(KVMIO, 0x8a, struct kvm_cpuid)
^~~~
<stdin>:179:22: note: in expansion of macro 'KVM_SET_CPUID'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_cpuid'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1484:35: note: in expansion of macro '_IOW'
#define KVM_SET_CPUID _IOW(KVMIO, 0x8a, struct kvm_cpuid)
^~~~
<stdin>:179:22: note: in expansion of macro 'KVM_SET_CPUID'
include/uapi/linux/kvm.h:1484:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_cpuid'
#define KVM_SET_CPUID _IOW(KVMIO, 0x8a, struct kvm_cpuid)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1484:35: note: in expansion of macro '_IOW'
#define KVM_SET_CPUID _IOW(KVMIO, 0x8a, struct kvm_cpuid)
^~~~
<stdin>:179:22: note: in expansion of macro 'KVM_SET_CPUID'
include/uapi/linux/kvm.h:1484:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_cpuid'
#define KVM_SET_CPUID _IOW(KVMIO, 0x8a, struct kvm_cpuid)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1484:35: note: in expansion of macro '_IOW'
#define KVM_SET_CPUID _IOW(KVMIO, 0x8a, struct kvm_cpuid)
^~~~
<stdin>:179:22: note: in expansion of macro 'KVM_SET_CPUID'
include/uapi/linux/kvm.h:1490:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_cpuid2'
#define KVM_SET_CPUID2 _IOW(KVMIO, 0x90, struct kvm_cpuid2)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1490:35: note: in expansion of macro '_IOW'
#define KVM_SET_CPUID2 _IOW(KVMIO, 0x90, struct kvm_cpuid2)
^~~~
<stdin>:180:22: note: in expansion of macro 'KVM_SET_CPUID2'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_cpuid2'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1490:35: note: in expansion of macro '_IOW'
#define KVM_SET_CPUID2 _IOW(KVMIO, 0x90, struct kvm_cpuid2)
^~~~
<stdin>:180:22: note: in expansion of macro 'KVM_SET_CPUID2'
include/uapi/linux/kvm.h:1490:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_cpuid2'
#define KVM_SET_CPUID2 _IOW(KVMIO, 0x90, struct kvm_cpuid2)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1490:35: note: in expansion of macro '_IOW'
#define KVM_SET_CPUID2 _IOW(KVMIO, 0x90, struct kvm_cpuid2)
^~~~
<stdin>:180:22: note: in expansion of macro 'KVM_SET_CPUID2'
include/uapi/linux/kvm.h:1490:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_cpuid2'
#define KVM_SET_CPUID2 _IOW(KVMIO, 0x90, struct kvm_cpuid2)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1490:35: note: in expansion of macro '_IOW'
#define KVM_SET_CPUID2 _IOW(KVMIO, 0x90, struct kvm_cpuid2)
^~~~
<stdin>:180:22: note: in expansion of macro 'KVM_SET_CPUID2'
include/uapi/linux/kvm.h:1521:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_debugregs'
#define KVM_SET_DEBUGREGS _IOW(KVMIO, 0xa2, struct kvm_debugregs)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1521:35: note: in expansion of macro '_IOW'
#define KVM_SET_DEBUGREGS _IOW(KVMIO, 0xa2, struct kvm_debugregs)
^~~~
<stdin>:181:22: note: in expansion of macro 'KVM_SET_DEBUGREGS'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_debugregs'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1521:35: note: in expansion of macro '_IOW'
#define KVM_SET_DEBUGREGS _IOW(KVMIO, 0xa2, struct kvm_debugregs)
^~~~
<stdin>:181:22: note: in expansion of macro 'KVM_SET_DEBUGREGS'
include/uapi/linux/kvm.h:1521:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_debugregs'
#define KVM_SET_DEBUGREGS _IOW(KVMIO, 0xa2, struct kvm_debugregs)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1521:35: note: in expansion of macro '_IOW'
#define KVM_SET_DEBUGREGS _IOW(KVMIO, 0xa2, struct kvm_debugregs)
^~~~
<stdin>:181:22: note: in expansion of macro 'KVM_SET_DEBUGREGS'
include/uapi/linux/kvm.h:1521:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_debugregs'
#define KVM_SET_DEBUGREGS _IOW(KVMIO, 0xa2, struct kvm_debugregs)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1521:35: note: in expansion of macro '_IOW'
#define KVM_SET_DEBUGREGS _IOW(KVMIO, 0xa2, struct kvm_debugregs)
^~~~
<stdin>:181:22: note: in expansion of macro 'KVM_SET_DEBUGREGS'
include/uapi/linux/kvm.h:1489:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_lapic_state'
#define KVM_SET_LAPIC _IOW(KVMIO, 0x8f, struct kvm_lapic_state)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1489:35: note: in expansion of macro '_IOW'
#define KVM_SET_LAPIC _IOW(KVMIO, 0x8f, struct kvm_lapic_state)
^~~~
<stdin>:188:22: note: in expansion of macro 'KVM_SET_LAPIC'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_lapic_state'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1489:35: note: in expansion of macro '_IOW'
#define KVM_SET_LAPIC _IOW(KVMIO, 0x8f, struct kvm_lapic_state)
^~~~
<stdin>:188:22: note: in expansion of macro 'KVM_SET_LAPIC'
include/uapi/linux/kvm.h:1489:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_lapic_state'
#define KVM_SET_LAPIC _IOW(KVMIO, 0x8f, struct kvm_lapic_state)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1489:35: note: in expansion of macro '_IOW'
#define KVM_SET_LAPIC _IOW(KVMIO, 0x8f, struct kvm_lapic_state)
^~~~
<stdin>:188:22: note: in expansion of macro 'KVM_SET_LAPIC'
include/uapi/linux/kvm.h:1489:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_lapic_state'
#define KVM_SET_LAPIC _IOW(KVMIO, 0x8f, struct kvm_lapic_state)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1489:35: note: in expansion of macro '_IOW'
#define KVM_SET_LAPIC _IOW(KVMIO, 0x8f, struct kvm_lapic_state)
^~~~
<stdin>:188:22: note: in expansion of macro 'KVM_SET_LAPIC'
include/uapi/linux/kvm.h:1483:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_msrs'
#define KVM_SET_MSRS _IOW(KVMIO, 0x89, struct kvm_msrs)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1483:35: note: in expansion of macro '_IOW'
#define KVM_SET_MSRS _IOW(KVMIO, 0x89, struct kvm_msrs)
^~~~
<stdin>:190:22: note: in expansion of macro 'KVM_SET_MSRS'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_msrs'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1483:35: note: in expansion of macro '_IOW'
#define KVM_SET_MSRS _IOW(KVMIO, 0x89, struct kvm_msrs)
^~~~
<stdin>:190:22: note: in expansion of macro 'KVM_SET_MSRS'
include/uapi/linux/kvm.h:1483:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_msrs'
#define KVM_SET_MSRS _IOW(KVMIO, 0x89, struct kvm_msrs)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1483:35: note: in expansion of macro '_IOW'
#define KVM_SET_MSRS _IOW(KVMIO, 0x89, struct kvm_msrs)
^~~~
<stdin>:190:22: note: in expansion of macro 'KVM_SET_MSRS'
include/uapi/linux/kvm.h:1483:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_msrs'
#define KVM_SET_MSRS _IOW(KVMIO, 0x89, struct kvm_msrs)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1483:35: note: in expansion of macro '_IOW'
#define KVM_SET_MSRS _IOW(KVMIO, 0x89, struct kvm_msrs)
^~~~
<stdin>:190:22: note: in expansion of macro 'KVM_SET_MSRS'
include/uapi/linux/kvm.h:1574:57: error: invalid application of 'sizeof' to incomplete type 'struct kvm_nested_state'
#define KVM_SET_NESTED_STATE _IOW(KVMIO, 0xbf, struct kvm_nested_state)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1574:38: note: in expansion of macro '_IOW'
#define KVM_SET_NESTED_STATE _IOW(KVMIO, 0xbf, struct kvm_nested_state)
^~~~
<stdin>:191:22: note: in expansion of macro 'KVM_SET_NESTED_STATE'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_nested_state'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1574:38: note: in expansion of macro '_IOW'
#define KVM_SET_NESTED_STATE _IOW(KVMIO, 0xbf, struct kvm_nested_state)
^~~~
<stdin>:191:22: note: in expansion of macro 'KVM_SET_NESTED_STATE'
include/uapi/linux/kvm.h:1574:57: error: invalid application of 'sizeof' to incomplete type 'struct kvm_nested_state'
#define KVM_SET_NESTED_STATE _IOW(KVMIO, 0xbf, struct kvm_nested_state)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1574:38: note: in expansion of macro '_IOW'
#define KVM_SET_NESTED_STATE _IOW(KVMIO, 0xbf, struct kvm_nested_state)
^~~~
<stdin>:191:22: note: in expansion of macro 'KVM_SET_NESTED_STATE'
include/uapi/linux/kvm.h:1574:57: error: invalid application of 'sizeof' to incomplete type 'struct kvm_nested_state'
#define KVM_SET_NESTED_STATE _IOW(KVMIO, 0xbf, struct kvm_nested_state)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1574:38: note: in expansion of macro '_IOW'
#define KVM_SET_NESTED_STATE _IOW(KVMIO, 0xbf, struct kvm_nested_state)
^~~~
<stdin>:191:22: note: in expansion of macro 'KVM_SET_NESTED_STATE'
include/uapi/linux/kvm.h:1393:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_pit_state'
#define KVM_SET_PIT _IOR(KVMIO, 0x66, struct kvm_pit_state)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:86:56: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1393:35: note: in expansion of macro '_IOR'
#define KVM_SET_PIT _IOR(KVMIO, 0x66, struct kvm_pit_state)
^~~~
<stdin>:194:22: note: in expansion of macro 'KVM_SET_PIT'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_pit_state'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:86:56: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1393:35: note: in expansion of macro '_IOR'
#define KVM_SET_PIT _IOR(KVMIO, 0x66, struct kvm_pit_state)
^~~~
<stdin>:194:22: note: in expansion of macro 'KVM_SET_PIT'
include/uapi/linux/kvm.h:1393:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_pit_state'
#define KVM_SET_PIT _IOR(KVMIO, 0x66, struct kvm_pit_state)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:86:56: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1393:35: note: in expansion of macro '_IOR'
#define KVM_SET_PIT _IOR(KVMIO, 0x66, struct kvm_pit_state)
^~~~
<stdin>:194:22: note: in expansion of macro 'KVM_SET_PIT'
include/uapi/linux/kvm.h:1393:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_pit_state'
#define KVM_SET_PIT _IOR(KVMIO, 0x66, struct kvm_pit_state)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:86:56: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1393:35: note: in expansion of macro '_IOR'
#define KVM_SET_PIT _IOR(KVMIO, 0x66, struct kvm_pit_state)
^~~~
<stdin>:194:22: note: in expansion of macro 'KVM_SET_PIT'
include/uapi/linux/kvm.h:1422:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_pit_state2'
#define KVM_SET_PIT2 _IOW(KVMIO, 0xa0, struct kvm_pit_state2)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1422:35: note: in expansion of macro '_IOW'
#define KVM_SET_PIT2 _IOW(KVMIO, 0xa0, struct kvm_pit_state2)
^~~~
<stdin>:195:22: note: in expansion of macro 'KVM_SET_PIT2'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_pit_state2'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1422:35: note: in expansion of macro '_IOW'
#define KVM_SET_PIT2 _IOW(KVMIO, 0xa0, struct kvm_pit_state2)
^~~~
<stdin>:195:22: note: in expansion of macro 'KVM_SET_PIT2'
include/uapi/linux/kvm.h:1422:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_pit_state2'
#define KVM_SET_PIT2 _IOW(KVMIO, 0xa0, struct kvm_pit_state2)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1422:35: note: in expansion of macro '_IOW'
#define KVM_SET_PIT2 _IOW(KVMIO, 0xa0, struct kvm_pit_state2)
^~~~
<stdin>:195:22: note: in expansion of macro 'KVM_SET_PIT2'
include/uapi/linux/kvm.h:1422:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_pit_state2'
#define KVM_SET_PIT2 _IOW(KVMIO, 0xa0, struct kvm_pit_state2)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1422:35: note: in expansion of macro '_IOW'
#define KVM_SET_PIT2 _IOW(KVMIO, 0xa0, struct kvm_pit_state2)
^~~~
<stdin>:195:22: note: in expansion of macro 'KVM_SET_PIT2'
include/uapi/linux/kvm.h:1518:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_vcpu_events'
#define KVM_SET_VCPU_EVENTS _IOW(KVMIO, 0xa0, struct kvm_vcpu_events)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1518:35: note: in expansion of macro '_IOW'
#define KVM_SET_VCPU_EVENTS _IOW(KVMIO, 0xa0, struct kvm_vcpu_events)
^~~~
<stdin>:203:22: note: in expansion of macro 'KVM_SET_VCPU_EVENTS'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_vcpu_events'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1518:35: note: in expansion of macro '_IOW'
#define KVM_SET_VCPU_EVENTS _IOW(KVMIO, 0xa0, struct kvm_vcpu_events)
^~~~
<stdin>:203:22: note: in expansion of macro 'KVM_SET_VCPU_EVENTS'
include/uapi/linux/kvm.h:1518:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_vcpu_events'
#define KVM_SET_VCPU_EVENTS _IOW(KVMIO, 0xa0, struct kvm_vcpu_events)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1518:35: note: in expansion of macro '_IOW'
#define KVM_SET_VCPU_EVENTS _IOW(KVMIO, 0xa0, struct kvm_vcpu_events)
^~~~
<stdin>:203:22: note: in expansion of macro 'KVM_SET_VCPU_EVENTS'
include/uapi/linux/kvm.h:1518:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_vcpu_events'
#define KVM_SET_VCPU_EVENTS _IOW(KVMIO, 0xa0, struct kvm_vcpu_events)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1518:35: note: in expansion of macro '_IOW'
#define KVM_SET_VCPU_EVENTS _IOW(KVMIO, 0xa0, struct kvm_vcpu_events)
^~~~
<stdin>:203:22: note: in expansion of macro 'KVM_SET_VCPU_EVENTS'
include/uapi/linux/kvm.h:1532:44: error: invalid application of 'sizeof' to incomplete type 'struct kvm_xcrs'
#define KVM_SET_XCRS _IOW(KVMIO, 0xa7, struct kvm_xcrs)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1532:25: note: in expansion of macro '_IOW'
#define KVM_SET_XCRS _IOW(KVMIO, 0xa7, struct kvm_xcrs)
^~~~
<stdin>:204:22: note: in expansion of macro 'KVM_SET_XCRS'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_xcrs'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1532:25: note: in expansion of macro '_IOW'
#define KVM_SET_XCRS _IOW(KVMIO, 0xa7, struct kvm_xcrs)
^~~~
<stdin>:204:22: note: in expansion of macro 'KVM_SET_XCRS'
include/uapi/linux/kvm.h:1532:44: error: invalid application of 'sizeof' to incomplete type 'struct kvm_xcrs'
#define KVM_SET_XCRS _IOW(KVMIO, 0xa7, struct kvm_xcrs)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1532:25: note: in expansion of macro '_IOW'
#define KVM_SET_XCRS _IOW(KVMIO, 0xa7, struct kvm_xcrs)
^~~~
<stdin>:204:22: note: in expansion of macro 'KVM_SET_XCRS'
include/uapi/linux/kvm.h:1532:44: error: invalid application of 'sizeof' to incomplete type 'struct kvm_xcrs'
#define KVM_SET_XCRS _IOW(KVMIO, 0xa7, struct kvm_xcrs)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1532:25: note: in expansion of macro '_IOW'
#define KVM_SET_XCRS _IOW(KVMIO, 0xa7, struct kvm_xcrs)
^~~~
<stdin>:204:22: note: in expansion of macro 'KVM_SET_XCRS'
include/uapi/linux/kvm.h:1529:45: error: invalid application of 'sizeof' to incomplete type 'struct kvm_xsave'
#define KVM_SET_XSAVE _IOW(KVMIO, 0xa5, struct kvm_xsave)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1529:26: note: in expansion of macro '_IOW'
#define KVM_SET_XSAVE _IOW(KVMIO, 0xa5, struct kvm_xsave)
^~~~
<stdin>:205:22: note: in expansion of macro 'KVM_SET_XSAVE'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_xsave'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1529:26: note: in expansion of macro '_IOW'
#define KVM_SET_XSAVE _IOW(KVMIO, 0xa5, struct kvm_xsave)
^~~~
<stdin>:205:22: note: in expansion of macro 'KVM_SET_XSAVE'
include/uapi/linux/kvm.h:1529:45: error: invalid application of 'sizeof' to incomplete type 'struct kvm_xsave'
#define KVM_SET_XSAVE _IOW(KVMIO, 0xa5, struct kvm_xsave)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1529:26: note: in expansion of macro '_IOW'
#define KVM_SET_XSAVE _IOW(KVMIO, 0xa5, struct kvm_xsave)
^~~~
<stdin>:205:22: note: in expansion of macro 'KVM_SET_XSAVE'
include/uapi/linux/kvm.h:1529:45: error: invalid application of 'sizeof' to incomplete type 'struct kvm_xsave'
#define KVM_SET_XSAVE _IOW(KVMIO, 0xa5, struct kvm_xsave)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1529:26: note: in expansion of macro '_IOW'
#define KVM_SET_XSAVE _IOW(KVMIO, 0xa5, struct kvm_xsave)
^~~~
<stdin>:205:22: note: in expansion of macro 'KVM_SET_XSAVE'
<stdin>:208:22: error: 'KVM_STATE_NESTED_GUEST_MODE' undeclared here (not in a function); did you mean 'KVM_SET_NESTED_STATE'?
<stdin>:209:22: error: 'KVM_STATE_NESTED_RUN_PENDING' undeclared here (not in a function); did you mean 'KVM_SET_NESTED_STATE'?
<stdin>:210:22: error: 'KVM_STATE_NESTED_SMM_GUEST_MODE' undeclared here (not in a function); did you mean 'KVM_SET_NESTED_STATE'?
<stdin>:211:22: error: 'KVM_STATE_NESTED_SMM_VMXON' undeclared here (not in a function); did you mean 'KVM_SET_NESTED_STATE'?
In file included from include/asm-generic/ioctl.h:5,
from /tmp/syzkaller-kernel-build543436297/arch/s390/include/generated/uapi/asm/ioctl.h:1,
from include/uapi/linux/ioctl.h:5,
from include/uapi/linux/kvm.h:14,
from <stdin>:7:
include/uapi/linux/kvm.h:1515:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_x86_mce'
#define KVM_X86_SET_MCE _IOW(KVMIO, 0x9e, struct kvm_x86_mce)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1515:35: note: in expansion of macro '_IOW'
#define KVM_X86_SET_MCE _IOW(KVMIO, 0x9e, struct kvm_x86_mce)
^~~~
<stdin>:217:22: note: in expansion of macro 'KVM_X86_SET_MCE'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_x86_mce'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1515:35: note: in expansion of macro '_IOW'
#define KVM_X86_SET_MCE _IOW(KVMIO, 0x9e, struct kvm_x86_mce)
^~~~
<stdin>:217:22: note: in expansion of macro 'KVM_X86_SET_MCE'
include/uapi/linux/kvm.h:1515:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_x86_mce'
#define KVM_X86_SET_MCE _IOW(KVMIO, 0x9e, struct kvm_x86_mce)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1515:35: note: in expansion of macro '_IOW'
#define KVM_X86_SET_MCE _IOW(KVMIO, 0x9e, struct kvm_x86_mce)
^~~~
<stdin>:217:22: note: in expansion of macro 'KVM_X86_SET_MCE'
include/uapi/linux/kvm.h:1515:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_x86_mce'
#define KVM_X86_SET_MCE _IOW(KVMIO, 0x9e, struct kvm_x86_mce)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1515:35: note: in expansion of macro '_IOW'
#define KVM_X86_SET_MCE _IOW(KVMIO, 0x9e, struct kvm_x86_mce)
^~~~
<stdin>:217:22: note: in expansion of macro 'KVM_X86_SET_MCE'
include/uapi/linux/kvm.h:1417:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_xen_hvm_config'
#define KVM_XEN_HVM_CONFIG _IOW(KVMIO, 0x7a, struct kvm_xen_hvm_config)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1417:35: note: in expansion of macro '_IOW'
#define KVM_XEN_HVM_CONFIG _IOW(KVMIO, 0x7a, struct kvm_xen_hvm_config)
^~~~
<stdin>:218:22: note: in expansion of macro 'KVM_XEN_HVM_CONFIG'
include/asm-generic/ioctl.h:13:25: error: array type has incomplete element type 'struct kvm_xen_hvm_config'
((sizeof(t) == sizeof(t[1]) && \
^
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1417:35: note: in expansion of macro '_IOW'
#define KVM_XEN_HVM_CONFIG _IOW(KVMIO, 0x7a, struct kvm_xen_hvm_config)
^~~~
<stdin>:218:22: note: in expansion of macro 'KVM_XEN_HVM_CONFIG'
include/uapi/linux/kvm.h:1417:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_xen_hvm_config'
#define KVM_XEN_HVM_CONFIG _IOW(KVMIO, 0x7a, struct kvm_xen_hvm_config)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1417:35: note: in expansion of macro '_IOW'
#define KVM_XEN_HVM_CONFIG _IOW(KVMIO, 0x7a, struct kvm_xen_hvm_config)
^~~~
<stdin>:218:22: note: in expansion of macro 'KVM_XEN_HVM_CONFIG'
include/uapi/linux/kvm.h:1417:54: error: invalid application of 'sizeof' to incomplete type 'struct kvm_xen_hvm_config'
#define KVM_XEN_HVM_CONFIG _IOW(KVMIO, 0x7a, struct kvm_xen_hvm_config)
^~~~~~
include/uapi/asm-generic/ioctl.h:73:5: note: in definition of macro '_IOC'
((size) << _IOC_SIZESHIFT))
^~~~
include/uapi/asm-generic/ioctl.h:87:57: note: in expansion of macro '_IOC_TYPECHECK'
#define _IOW(type,nr,size) _IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
^~~~~~~~~~~~~~
include/uapi/linux/kvm.h:1417:35: note: in expansion of macro '_IOW'
#define KVM_XEN_HVM_CONFIG _IOW(KVMIO, 0x7a, struct kvm_xen_hvm_config)
^~~~
<stdin>:218:22: note: in expansion of macro 'KVM_XEN_HVM_CONFIG'
<stdin>:219:22: error: 'MCG_STATUS_EIPV' undeclared here (not in a function); did you mean 'TP_STATUS_COPY'?
<stdin>:220:22: error: 'MCG_STATUS_LMCES' undeclared here (not in a function); did you mean 'CPUSTAT_MCDS'?
<stdin>:221:22: error: 'MCG_STATUS_MCIP' undeclared here (not in a function); did you mean 'TP_STATUS_COPY'?
<stdin>:222:22: error: 'MCG_STATUS_RIPV' undeclared here (not in a function); did you mean 'TP_STATUS_COPY'?
<stdin>:223:22: error: 'MCI_STATUS_ADDRV' undeclared here (not in a function); did you mean 'KVM_SET_TSS_ADDR'?
<stdin>:224:22: error: 'MCI_STATUS_AR' undeclared here (not in a function); did you mean 'MOD_STATUS'?
<stdin>:225:22: error: 'MCI_STATUS_EN' undeclared here (not in a function); did you mean 'MOD_STATUS'?
<stdin>:226:22: error: 'MCI_STATUS_MISCV' undeclared here (not in a function); did you mean 'VCPU_STATS_DESC'?
<stdin>:227:22: error: 'MCI_STATUS_OVER' undeclared here (not in a function); did you mean 'TP_STATUS_USER'?
<stdin>:228:22: error: 'MCI_STATUS_PCC' undeclared here (not in a function); did you mean 'AUDIT_STATUS_PID'?
<stdin>:229:22: error: 'MCI_STATUS_S' undeclared here (not in a function); did you mean 'MOD_STATUS'?
<stdin>:230:22: error: 'MCI_STATUS_UC' undeclared here (not in a function); did you mean 'MOD_STATUS'?
<stdin>:231:22: error: 'MCI_STATUS_VAL' undeclared here (not in a function); did you mean 'MOD_STATUS'?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment