Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

UAPI: Put a comment into uapi/asm-generic/kvm_para.h and use it from arches

Make uapi/asm-generic/kvm_para.h non-empty by addition of a comment to stop
the patch program from deleting it when it creates it.

Then delete empty arch-specific uapi/asm/kvm_para.h files and tell the Kbuild
files to use the generic instead.

Should this perhaps instead be a #warning or #error that the facility is
unsupported on this arch?

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Arnd Bergmann <arnd@arndb.de>
cc: Avi Kivity <avi@redhat.com>
cc: Marcelo Tosatti <mtosatti@redhat.com>
cc: kvm@vger.kernel.org

+8
+2
arch/ia64/include/uapi/asm/Kbuild
··· 1 1 # UAPI Header export list 2 2 include include/uapi/asm-generic/Kbuild.asm 3 3 4 + generic-y += kvm_para.h 5 + 4 6 header-y += auxvec.h 5 7 header-y += bitsperlong.h 6 8 header-y += break.h
arch/ia64/include/uapi/asm/kvm_para.h
+2
arch/s390/include/uapi/asm/Kbuild
··· 1 1 # UAPI Header export list 2 2 include include/uapi/asm-generic/Kbuild.asm 3 3 4 + generic-y += kvm_para.h 5 + 4 6 header-y += auxvec.h 5 7 header-y += bitsperlong.h 6 8 header-y += byteorder.h
arch/s390/include/uapi/asm/kvm_para.h
+4
include/uapi/asm-generic/kvm_para.h
··· 1 + /* 2 + * There isn't anything here, but the file must not be empty or patch 3 + * will delete it. 4 + */