# git rev-parse -q --verify 9ede3728899d26f7bd67fd6b8830d58b9ac1a569^{commit} 9ede3728899d26f7bd67fd6b8830d58b9ac1a569 already have revision, skipping fetch # git checkout -q -f -B kisskb 9ede3728899d26f7bd67fd6b8830d58b9ac1a569 # git clean -qxdf # < git log -1 # commit 9ede3728899d26f7bd67fd6b8830d58b9ac1a569 # Author: Michael Ellerman # Date: Tue Jan 15 16:19:05 2019 +1100 # # powerpc/syscalls: Fix syscall tracing # # Recently in commit fbf508da7440 ("powerpc: split compat syscall table # out from native table") we change the layout of the system call table. # Instead of having two entries for each syscall number, one for the # regular entry point and one for the compat entry point, we now have # separate tables for regular and compat. # # This inadvertently broke syscall tracing (CONFIG_FTRACE_SYSCALLS), # because our implementation of arch_syscall_addr() knew about the # layout of the table (it did nr * 2). # # We can fix it just by dropping our version of arch_syscall_addr() and # using the generic version which does: # # return (unsigned long)sys_call_table[nr]; # # Fixes: fbf508da7440 ("powerpc: split compat syscall table out from native table") # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/m68k-linux/bin/m68k-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/m68k-linux/bin/m68k-linux-ld --version # < git log --format=%s --max-count=1 9ede3728899d26f7bd67fd6b8830d58b9ac1a569 # < make -s -j 80 ARCH=m68k O=/kisskb/build/powerpc-fixes_m68k-defconfig_m68k CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/m68k-linux/bin/m68k-linux- defconfig # make -s -j 80 ARCH=m68k O=/kisskb/build/powerpc-fixes_m68k-defconfig_m68k CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/m68k-linux/bin/m68k-linux- In file included from /kisskb/src/include/linux/sched.h:16:0, from /kisskb/src/arch/m68k/kernel/asm-offsets.c:15: /kisskb/src/include/linux/shm.h:8:26: fatal error: asm/shmparam.h: No such file or directory compilation terminated. make[2]: *** [/kisskb/src/scripts/Makefile.build:110: arch/m68k/kernel/asm-offsets.s] Error 1 make[1]: *** [/kisskb/src/Makefile:1092: prepare0] Error 2 make: *** [Makefile:152: sub-make] Error 2 Command 'make -s -j 80 ARCH=m68k O=/kisskb/build/powerpc-fixes_m68k-defconfig_m68k CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/m68k-linux/bin/m68k-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-fixes_m68k-defconfig_m68k # Build took: 0:00:06.455319