diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2017-09-18 11:26:04 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2017-09-18 11:26:04 +0000 |
commit | 68d18a891e89eb8131b80b8a13af71853ea9d9fa (patch) | |
tree | 53b2c8a2e20837c8673dc6b1ddf2b15b3fa60bb5 /maint | |
parent | 7052c84b01ae13fb7a4da00761227a7a1714e81a (diff) | |
download | strace-68d18a891e89eb8131b80b8a13af71853ea9d9fa.tar.gz |
Remove KVM_S390_* ioctls from non-s390 architectures
* maint/ioctls_sym.sh <linux/kvm.h> (s390_list): New variable.
Use it to exclude KVM_S390_* ioctls on non-s390 architectures.
* linux/arm/ioctls_arch0.h: Regenerate.
* linux/i386/ioctls_arch0.h: Likewise.
* linux/powerpc/ioctls_arch0.h: Likewise.
* linux/s390/ioctls_arch0.h: Likewise.
* linux/x86_64/ioctls_arch0.h: Likewise.
Diffstat (limited to 'maint')
-rwxr-xr-x | maint/ioctls_sym.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/maint/ioctls_sym.sh b/maint/ioctls_sym.sh index 3f5aa69f9..124bbc41e 100755 --- a/maint/ioctls_sym.sh +++ b/maint/ioctls_sym.sh @@ -389,12 +389,14 @@ s/^\([[:space:]]\+[^),]\+)\),$/\1/' >> "$tmpdir/$f" *linux/kvm.h) arm_list='KVM_ARM_[A-Z_]+' ppc_list='KVM_ALLOCATE_RMA|KVM_CREATE_SPAPR_TCE|KVM_CREATE_SPAPR_TCE_64|KVM_PPC_[A-Z_]+' + s390_list='KVM_S390_[A-Z_]+' x86_list='KVM_GET_CPUID2|KVM_GET_DEBUGREGS|KVM_GET_EMULATED_CPUID|KVM_GET_LAPIC|KVM_GET_MSRS|KVM_GET_MSR_INDEX_LIST|KVM_GET_PIT|KVM_GET_PIT2|KVM_GET_SUPPORTED_CPUID|KVM_GET_VCPU_EVENTS|KVM_GET_XCRS|KVM_GET_XSAVE|KVM_SET_CPUID|KVM_SET_CPUID2|KVM_SET_DEBUGREGS|KVM_SET_LAPIC|KVM_SET_MEMORY_ALIAS|KVM_SET_MSRS|KVM_SET_PIT|KVM_SET_PIT2|KVM_SET_VCPU_EVENTS|KVM_SET_XCRS|KVM_SET_XSAVE|KVM_XEN_HVM_CONFIG|KVM_X86_[A-Z_]+' case "$uname_m" in - arm*) list="$ppc_list|$x86_list" ;; - ppc*) list="$arm_list|$x86_list" ;; - i?86|x86_64*) list="$arm_list|$ppc_list" ;; - *) list="$arm_list|$ppc_list|$x86_list" ;; + arm*) list="$ppc_list|$s390_list|$x86_list" ;; + ppc*) list="$arm_list|$s390_list|$x86_list" ;; + s390*) list="$arm_list|$ppc_list|$x86_list" ;; + i?86|x86_64*) list="$arm_list|$ppc_list|$s390_list" ;; + *) list="$arm_list|$ppc_list|$s390_list|$x86_list" ;; esac sed -r -i "/[[:space:]]($list)[[:space:]]/d" "$tmpdir"/header.out ;; |