• Arnd Bergmann's avatar
    kallsyms: remove unused arch_get_kallsym() helper · 15d5daa0
    Arnd Bergmann authored
    The arch_get_kallsym() function was introduced so that x86 could override
    it, but that override was removed in bf904d27 ("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 d83212d5 ("kallsyms, x86: Export
    addresses of PTI entry trampolines") to simplify the code and avoid
    the warning.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Tested-by: default avatarAlan Maguire <alan.maguire@oracle.com>
    [mcgrof: fold in bpf selftest fix]
    Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
    15d5daa0
bpf_iter_ksym.c 1.75 KB