Linux Hexagon architecture development
 help / color / mirror / Atom feed
From: "David Hildenbrand (Arm)" <david@kernel.org>
To: Ethan Nelson-Moore <enelsonmoore@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	"Vlastimil Babka (SUSE)" <vbabka@kernel.org>,
	Ankur Arora <ankur.a.arora@oracle.com>,
	"Lorenzo Stoakes (Oracle)" <ljs@kernel.org>,
	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: Re: [PATCH] hexagon: remove code to handle nonexistent CONFIG_PAGE_SIZE_1MB
Date: Thu, 11 Jun 2026 09:36:58 +0200	[thread overview]
Message-ID: <eaa19238-d4ba-4789-91ff-4a019b2486d9@kernel.org> (raw)
In-Reply-To: <20260610222357.108394-1-enelsonmoore@gmail.com>

On 6/11/26 00:23, Ethan Nelson-Moore wrote:
> 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
> -

Heh, I stumbled over that myself at some point and was like "wtf, how can that
even work" :)

$ git grep PAGE_SIZE_1MB | grep Kconfig
arch/sh/mm/Kconfig:     default HUGETLB_PAGE_SIZE_1MB if PAGE_SIZE_64KB
arch/sh/mm/Kconfig:config HUGETLB_PAGE_SIZE_1MB


Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>

-- 
Cheers,

David

      reply	other threads:[~2026-06-11  7:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-10 22:23 [PATCH] hexagon: remove code to handle nonexistent CONFIG_PAGE_SIZE_1MB Ethan Nelson-Moore
2026-06-11  7:36 ` David Hildenbrand (Arm) [this message]

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=eaa19238-d4ba-4789-91ff-4a019b2486d9@kernel.org \
    --to=david@kernel.org \
    --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=deller@gmx.de \
    --cc=dinguyen@kernel.org \
    --cc=enelsonmoore@gmail.com \
    --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