[PATCH 09/12] arm64: Remove all usage of CONFIG_CPU_BIG_ENDIAN

Marc Zyngier maz at kernel.org
Tue Aug 11 07:49:33 PDT 2026


On Tue, 11 Aug 2026 15:01:28 +0100,
Will Deacon <will at kernel.org> 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 at kernel.org>

[...]

> 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.



More information about the linux-arm-kernel mailing list