[PATCH] hexagon: remove code to handle nonexistent CONFIG_PAGE_SIZE_1MB
Ethan Nelson-Moore <[email protected]> Wed, 10 Jun 2026 15:23:52 -0700
| Newsgroups | org.kernel.vger.linux-hexagon |
|---|---|
| Message-ID | <[email protected]> |
Two Hexagon memory management headers contain code to handle CONFIG_PAGE_SIZE_1MB, which has never existed in the kernel. Remove this dead code. Discovered while searching for CONFIG_* symbols referenced in code but not defined in any Kconfig file. Signed-off-by: Ethan Nelson-Moore <[email protected]> --- arch/hexagon/include/asm/page.h | 4 ---- arch/hexagon/include/asm/pgtable.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/arch/hexagon/include/asm/page.h b/arch/hexagon/include/asm/page.h index 6d82572a7f21..6eac99438e3f 100644 --- a/arch/hexagon/include/asm/page.h +++ b/arch/hexagon/include/asm/page.h @@ -28,10 +28,6 @@ #define HEXAGON_L1_PTE_SIZE __HVM_PDE_S_256KB #endif -#ifdef CONFIG_PAGE_SIZE_1MB -#define HEXAGON_L1_PTE_SIZE __HVM_PDE_S_1MB -#endif - /* * These should be defined in hugetlb.h, but apparently not. * "Huge" for us should be 4MB or 16MB, which are both represented diff --git a/arch/hexagon/include/asm/pgtable.h b/arch/hexagon/include/asm/pgtable.h index 27b269e2870d..0c62df423a1d 100644 --- a/arch/hexagon/include/asm/pgtable.h +++ b/arch/hexagon/include/asm/pgtable.h @@ -89,10 +89,6 @@ #define PTRS_PER_PTE 16 #endif -#ifdef CONFIG_PAGE_SIZE_1MB -#define PTRS_PER_PTE 4 -#endif - /* Any bigger and the PTE disappears. */ #define pgd_ERROR(e) \ printk(KERN_ERR "%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__,\ -- 2.43.0