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

Submitted by Andrey Ryabinin on Oct. 8, 2018, 12:15 p.m.

Details

Message ID 20181008121547.11129-1-aryabinin@virtuozzo.com
State New
Series "Series without cover letter"
Headers show

Commit Message

Andrey Ryabinin Oct. 8, 2018, 12:15 p.m.
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@virtuozzo.com>
---
 arch/x86/mm/kaiser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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;