[PATCH] riscv: process: Use str_supported_unsupported() in compat_mode_detect()

Thorsten Blum blum at kernel.org
Wed Nov 11 09:35:06 PST 2026


Hi Paul,

On Thu, Oct 01, 2026 at 10:45:11AM -0600, Paul Walmsley wrote:
> On Tue, 29 Sep 2026, Thorsten Blum wrote:
> 
> > On Tue, Sep 29, 2026 at 11:11:55AM +0200, Geert Uytterhoeven wrote:
> > > Hi Paul, Thorsten,
> > > 
> > > On Sat, 26 Sept 2026 at 01:48, Paul Walmsley <pjw at kernel.org> wrote:
> > > > On Thu, 24 Sep 2026, Thorsten Blum wrote:
> > > > > Replace hard-coded strings with the str_supported_unsupported() helper.
> > > > > This unifies the output and helps the linker with deduplication, which
> > > > > can result in a smaller binary.
> > > > >
> > > > > Signed-off-by: Thorsten Blum <blum at kernel.org>
> > > >
> > > > Thanks, queued for v7.4.
> > > 
> > > Thanks for your patch, which is now commit a06776565b9e7351 ("riscv:
> > > process: Use str_supported_unsupported() in compat_mode_detect()")
> > > in riscv/for-next.
> > > 
> > > This fails to build:
> > > 
> > >     arch/riscv/kernel/process.c: In function ‘compat_mode_detect’:
> > >     arch/riscv/kernel/process.c:138:17: error: implicit declaration of
> > > function ‘str_supported_unsupported’
> > > [-Werror=implicit-function-declaration]
> > >       138 |                 str_supported_unsupported(compat_mode_supported));
> > >           |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
> > > 
> > > as it has a hard dependency on commit 5383cf280ef4f00b
> > > ("lib/string_choices: Add str_supported_unsupported()
> > > helper"), which is only present in the for-next branch of
> > > https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git.
> > 
> > Hi Geert,
> > 
> > It's also in linux-next:
> > 
> > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=5383cf280ef4f00b15f1d9e2a2886d0d02c0118b
> 
> I'm dropping this one until the dependency lands in mainline.  

Do you want me to resend this patch now that the dependency [1] is in
mainline, or can you re-apply this one?

Thanks,
Thorsten

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ccd5ff410feb2adcf3840d071cf796cc5c549520



More information about the linux-riscv mailing list