]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Enable compile-time check for syscall handlers
authorRohan McLure <rmclure@linux.ibm.com>
Wed, 21 Sep 2022 06:55:57 +0000 (16:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:09 +0000 (19:22 +1000)
commit2c1c6836e05033dd3ba34176bf057b28e327a4c0
treea50d1f67b647e51dad90701799faa0f619ff97dc
parent13b5d7b069079c9d1f4402b848def00ee8d78043
powerpc: Enable compile-time check for syscall handlers

The table of syscall handlers and registered compatibility syscall
handlers has in past been produced using assembly, with function
references resolved at link time. This moves link-time errors to
compile-time, by rewriting systbl.S in C, and including the
linux/syscalls.h, linux/compat.h and asm/syscalls.h headers for
prototypes.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220921065605.1051927-18-rmclure@linux.ibm.com
arch/powerpc/kernel/systbl.S [deleted file]
arch/powerpc/kernel/systbl.c [new file with mode: 0644]