KVM: PPC: Ultravisor: Include ultravisor header file.
PATCH 2/13 KVM: PPC: Ultravisor: Include ultravisor header file.
This file contains the definitions of all ultracalls.
Signed-off-by Ram Pai <[email protected]>
--- arch/powerpc/include/asm/ucall-api.h | 5 +++++ arch/powerpc/include/uapi/asm/uapi_uvcall.h | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 arch/powerpc/include/asm/ucall-api.h create mode 100644 arch/powerpc/include/uapi/asm/uapi_uvcall.h
arch/powerpc/include/asm/ucall-api.h new file +5 -0
@@ -0,0 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_POWERPC_UCALL_API_H +#define _ASM_POWERPC_UCALL_API_H +#include <uapi/asm/uapi_uvcall.h> +#endif /* _ASM_POWERPC_UCALL_API_H */
arch/powerpc/include/uapi/asm/uapi_uvcall.h new file +10 -0
@@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* +* Ultravisor calls. +* +* Copyright 2018, IBM Corporation. +* +*/ +#ifndef UAPI_UC_H +#define UAPI_UC_H +#endif /* #ifndef UAPI_UC_H */
Signature · 1 line
1.8.3.1
Quoted 1 line · Ram Pai
This file contains the definitions of all ultracalls.
"will contain", perhaps?
Quoted 4 lines
Signed-off-by Ram Pai <[email protected]>--- arch/powerpc/include/asm/ucall-api.h | 5 +++++ arch/powerpc/include/uapi/asm/uapi_uvcall.h | 10 ++++++++++
This is the wrong place for these definitions. The "u" in uapi stands for "user", and this directory is for the definition of the API that the kernel provides to userspace. This file should just go in the normal arch/powerpc/include/asm directory, and it shouldn't have "uapi" in its name.
Paul.