Re: [PATCH 09/12] arm64: Remove all usage of CONFIG_CPU_BIG_ENDIAN
From: Marc Zyngier
Date: Tue Aug 11 2026 - 10:52:48 EST
On Tue, 11 Aug 2026 15:01:28 +0100,
Will Deacon <will@xxxxxxxxxx> wrote:
>
> Big-endian support on arm64 depends on BROKEN. In preparation for
> removing the dead code altogether, remove all usage of
> CONFIG_CPU_BIG_ENDIAN from the arm64 kernel port.
>
> Signed-off-by: Will Deacon <will@xxxxxxxxxx>
[...]
> diff --git a/arch/arm64/kernel/kgdb.c b/arch/arm64/kernel/kgdb.c
> index 968324a79a89..41eb34c50721 100644
> --- a/arch/arm64/kernel/kgdb.c
> +++ b/arch/arm64/kernel/kgdb.c
> @@ -61,9 +61,6 @@ struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = {
> * detail.
> */
> { "pstate", 4, offsetof(struct pt_regs, pstate)
> -#ifdef CONFIG_CPU_BIG_ENDIAN
> - + 4
> -#endif
> },
nit: this reads a bit odd now, and could be brought together on a
single line.
M.
--
Without deviation from the norm, progress is not possible.