mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] x86/mm: Remove unused nx declarations
@ 2024-08-14  3:19 Yue Haibing
  2024-08-14 10:59 ` [tip: x86/mm] x86/mm: Remove unused NX related declarations tip-bot2 for Yue Haibing
  0 siblings, 1 reply; 2+ messages in thread
From: Yue Haibing @ 2024-08-14  3:19 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, x86, hpa; +Cc: linux-kernel, yuehaibing

Since commit 4763ed4d4552 ("x86, mm: Clean up and simplify NX enablement")
these declarations is unused and can be removed.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
 arch/x86/include/asm/pgtable_types.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/include/asm/pgtable_types.h b/arch/x86/include/asm/pgtable_types.h
index 2f321137736c..6f82e75b6149 100644
--- a/arch/x86/include/asm/pgtable_types.h
+++ b/arch/x86/include/asm/pgtable_types.h
@@ -517,8 +517,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.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-14 10:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-14  3:19 [PATCH -next] x86/mm: Remove unused nx declarations Yue Haibing
2024-08-14 10:59 ` [tip: x86/mm] x86/mm: Remove unused NX related declarations tip-bot2 for Yue Haibing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®