[PATCH 1/4] x86/asm: remove orphan nx_enabled declaration

From: Gaosheng Cui
Date: Mon Sep 19 2022 - 22:07:27 EST


The nx_enabled has been removed by
commit 4763ed4d4552 ("x86, mm: Clean up and simplify NX
enablement"), so remove the orphan declaration.

Signed-off-by: Gaosheng Cui <cuigaosheng1@xxxxxxxxxx>
---
arch/x86/include/asm/pgtable_types.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/x86/include/asm/pgtable_types.h b/arch/x86/include/asm/pgtable_types.h
index aa174fed3a71..53cc7a5ceae3 100644
--- a/arch/x86/include/asm/pgtable_types.h
+++ b/arch/x86/include/asm/pgtable_types.h
@@ -490,7 +490,6 @@ typedef struct page *pgtable_t;
extern pteval_t __supported_pte_mask;
extern pteval_t __default_kernel_pte_mask;
extern void set_nx(void);
-extern int nx_enabled;

#define pgprot_writecombine pgprot_writecombine
extern pgprot_t pgprot_writecombine(pgprot_t prot);
--
2.25.1