From: Ethan Nelson-Moore <enelsonmoore@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
David Hildenbrand <david@kernel.org>,
"Vlastimil Babka (SUSE)" <vbabka@kernel.org>,
Ankur Arora <ankur.a.arora@oracle.com>,
"Lorenzo Stoakes (Oracle)" <ljs@kernel.org>,
Ethan Nelson-Moore <enelsonmoore@gmail.com>,
Magnus Lindholm <linmag7@gmail.com>,
Andreas Larsson <andreas@gaisler.com>,
"Liam R. Howlett" <liam@infradead.org>,
Dinh Nguyen <dinguyen@kernel.org>,
"Mike Rapoport (Microsoft)" <rppt@kernel.org>,
linux-hexagon@vger.kernel.org
Cc: Brian Cain <bcain@kernel.org>,
Dave Hansen <dave.hansen@linux.intel.com>,
Helge Deller <deller@gmx.de>
Subject: [PATCH] hexagon: remove code to handle nonexistent CONFIG_PAGE_SIZE_1MB
Date: Wed, 10 Jun 2026 15:23:52 -0700 [thread overview]
Message-ID: <20260610222357.108394-1-enelsonmoore@gmail.com> (raw)
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 <enelsonmoore@gmail.com>
---
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
next reply other threads:[~2026-06-10 22:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-10 22:23 Ethan Nelson-Moore [this message]
2026-06-11 7:36 ` [PATCH] hexagon: remove code to handle nonexistent CONFIG_PAGE_SIZE_1MB David Hildenbrand (Arm)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260610222357.108394-1-enelsonmoore@gmail.com \
--to=enelsonmoore@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=andreas@gaisler.com \
--cc=ankur.a.arora@oracle.com \
--cc=bcain@kernel.org \
--cc=dave.hansen@linux.intel.com \
--cc=david@kernel.org \
--cc=deller@gmx.de \
--cc=dinguyen@kernel.org \
--cc=liam@infradead.org \
--cc=linmag7@gmail.com \
--cc=linux-hexagon@vger.kernel.org \
--cc=ljs@kernel.org \
--cc=rppt@kernel.org \
--cc=vbabka@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox