Re: [PATCH 5.10 02/41] ARM: 9468/1: fix memset64() on big-endian

Matthew Wilcox
2026-02-21T22:01:54Z

On Sat, Feb 21, 2026 at 09:21:42PM +0100, Ben Hutchings wrote:
> On Mon, 2026-02-09 at 15:24 +0100, Greg Kroah-Hartman wrote:
> > 5.10-stable review patch. If anyone has any objections, please let me know.
> >
> > ------------------
> >
> > From: Thomas Weissschuh <thomas.weissschuh@linutronix.de>
> >
> > commit 23ea2a4c72323feb6e3e025e8a6f18336513d5ad upstream.
> >
> > On big-endian systems the 32-bit low and high halves need to be swapped
> > for the underlying assembly implementation to work correctly.
>
> Now it's broken on little-endian, because CONFIG_CPU_LITTLE_ENDIAN was
> only introduced in 5.19.
>
> For 5.10 and 5.15, please revert this or change the condition to
> !IS_ENABLED(CONFIG_CPU_BIG_ENDIAN).

Probably best to pull in the version Linus preferred: