Re: [PATCH] riscv: module: Use generic cmp_int() instead of custom cmp_3way()
From: Paul Walmsley
Date: Tue May 19 2026 - 17:29:41 EST
On Tue, 12 May 2026, Florian Schmaus wrote:
> The module-sections.c file defines a custom cmp_3way() macro to perform
> 3-way comparisons during relocation sorting.
>
> Instead of maintaining our own implementation, use the generic
> cmp_int() macro provided by the already included <linux/sort.h>. This
> removes redundant code and relies on standard kernel interfaces.
>
> Signed-off-by: Florian Schmaus <florian.schmaus@xxxxxxxxxxx>
Thanks, queued for v7.2. Looks like arm, arm64, and loongarch have the
same problem. Care to fix those too (in separate patches)?
- Paul