[Devel] [PATCH rh7 1/2] x86/mm/kaiser: Fix build with CONFIG_XEN=n

Andrey Ryabinin aryabinin at virtuozzo.com
Mon Oct 8 15:15:46 MSK 2018


Fix the following:
arch/x86/mm/kaiser.c: In function ‘create_kpti_enabled’:
arch/x86/mm/kaiser.c:623:7: error: implicit declaration of function ‘xen_pv_domain’; did you mean ‘is_xen_pv_domain’? [-Werror=implicit-function-declaration]
  if (!xen_pv_domain())
       ^~~~~~~~~~~~~
       is_xen_pv_domain

Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
 arch/x86/mm/kaiser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/mm/kaiser.c b/arch/x86/mm/kaiser.c
index 5996f64b9b75..c4f6044eb57b 100644
--- a/arch/x86/mm/kaiser.c
+++ b/arch/x86/mm/kaiser.c
@@ -620,7 +620,7 @@ static const struct file_operations fops_kaiser_enabled = {
 
 static int __init create_kpti_enabled(void)
 {
-	if (!xen_pv_domain())
+	if (!is_xen_pv_domain())
 		debugfs_create_file("pti_enabled", S_IRUSR | S_IWUSR,
 				    arch_debugfs_dir, NULL, &fops_kaiser_enabled);
 	return 0;
-- 
2.18.0



More information about the Devel mailing list