On Mon, Apr 13, 2026 at 02:26:12PM -0300, Marcos Paulo de Souza wrote: > Older kernels that lack CONFIG_ARCH_HAS_SYSCALL_WRAPPER config don't > have any prefixes for their syscalls. The same applies to current > powerpc and loongarch, covering all currently supported architectures > that support livepatch. > > The other supported architectures have specific prefixes, so error out > when a new architecture adds livepatch support with wrappes but didn't
nit: s/wrappes/wrappers > update the test to include it. > > Signed-off-by: Marcos Paulo de Souza <[email protected]> > --- > .../selftests/livepatch/test_modules/test_klp_syscall.c | 17 > ++++++++++++++--- > 1 file changed, 14 insertions(+), 3 deletions(-) > > diff --git > a/tools/testing/selftests/livepatch/test_modules/test_klp_syscall.c > b/tools/testing/selftests/livepatch/test_modules/test_klp_syscall.c > index dd802783ea84..b5527a288a7c 100644 > --- a/tools/testing/selftests/livepatch/test_modules/test_klp_syscall.c > +++ b/tools/testing/selftests/livepatch/test_modules/test_klp_syscall.c > @@ -12,15 +12,26 @@ > #include <linux/slab.h> > #include <linux/livepatch.h> > > -#if defined(__x86_64__) > +/* > + * Before CONFIG_ARCH_HAS_SYSCALL_WRAPPER was introduced there were no > + * prefixes for system calls. > + * Both ppc and loongarch does not set prefixes for their system calls > either. nit: s/does not/do not -- Joe

