kallsyms: remove unused arch_get_kallsym() helper
authorArnd Bergmann <arnd@arndb.de>
Wed, 17 May 2023 13:18:07 +0000 (15:18 +0200)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 26 May 2023 17:38:23 +0000 (10:38 -0700)
commit15d5daa0a7006b9bd4dcc49f90e7ac8ddbe102f2
tree397b05ef545b8b59977428bdf1ea621223b9f766
parentcb0b50b813f6198b7d44ae8e169803440333577a
kallsyms: remove unused arch_get_kallsym() helper

The arch_get_kallsym() function was introduced so that x86 could override
it, but that override was removed in bf904d2762ee ("x86/pti/64: Remove
the SYSCALL64 entry trampoline"), so now this does nothing except causing
a warning about a missing prototype:

kernel/kallsyms.c:662:12: error: no previous prototype for 'arch_get_kallsym' [-Werror=missing-prototypes]
  662 | int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,

Restore the old behavior before d83212d5dd67 ("kallsyms, x86: Export
addresses of PTI entry trampolines") to simplify the code and avoid
the warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Alan Maguire <alan.maguire@oracle.com>
[mcgrof: fold in bpf selftest fix]
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/kallsyms.c
tools/testing/selftests/bpf/progs/bpf_iter_ksym.c