# git rev-parse -q --verify 098c5fad8c7d5fe777a19df0f04dae1655e2fb25^{commit} 098c5fad8c7d5fe777a19df0f04dae1655e2fb25 already have revision, skipping fetch # git checkout -q -f -B kisskb 098c5fad8c7d5fe777a19df0f04dae1655e2fb25 # git clean -qxdf # < git log -1 # commit 098c5fad8c7d5fe777a19df0f04dae1655e2fb25 # Author: Christophe Leroy # Date: Tue Jun 25 09:45:18 2019 +0000 # # powerpc/hw_breakpoint: move instruction stepping out of hw_breakpoint_handler() # # On 8xx, breakpoints stop after executing the instruction, so # stepping/emulation is not needed. Move it into a sub-function and # remove the #ifdefs. # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 098c5fad8c7d5fe777a19df0f04dae1655e2fb25 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/chleroy_ppc64le_defconfig_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64le_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/chleroy_ppc64le_defconfig_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-view.c:656:13: error: 'tm_ppr_active' undeclared here (not in a function) .active = tm_ppr_active, .get = tm_ppr_get, .set = tm_ppr_set ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-vsx.c: In function 'vsr_get': /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-vsx.c:129:2: error: implicit declaration of function 'flush_tmregs_to_thread' [-Werror=implicit-function-declaration] flush_tmregs_to_thread(target); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-view.c:922:13: error: initializer element is not constant .active = tm_ppr_active, .get = tm_ppr_get, .set = tm_ppr_set ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-view.c:922:13: note: (near initialization for 'compat_regsets[10].active') make[4]: *** [/kisskb/src/scripts/Makefile.build:279: arch/powerpc/kernel/ptrace/ptrace-view.o] Error 1 make[4]: *** Waiting for unfinished jobs.... /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c: In function 'set_user_ckpt_msr': /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:61:33: error: 'MSR_DEBUGCHANGE' undeclared (first use in this function) task->thread.ckpt_regs.msr &= ~MSR_DEBUGCHANGE; ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:61:33: note: each undeclared identifier is reported only once for each function it appears in /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c: In function 'tm_cgpr_set': /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:209:8: error: 'PT_MAX_PUT_REG' undeclared (first use in this function) (PT_MAX_PUT_REG + 1) * sizeof(reg)); ^ In file included from /kisskb/src/include/linux/kernel.h:11:0, from /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:3: /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c: In function 'tm_cvmx_get': /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:394:15: error: implicit declaration of function 'TVSO' [-Werror=implicit-function-declaration] BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:394:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:394:20: error: 'vscr' undeclared (first use in this function) BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:394:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:394:34: error: 'vr' undeclared (first use in this function) BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:394:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c: In function 'tm_cvmx_set': /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:455:20: error: 'vscr' undeclared (first use in this function) BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:455:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:455:34: error: 'vr' undeclared (first use in this function) BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:455:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c: In function 'tm_spr_get': /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:646:15: error: implicit declaration of function 'TSO' [-Werror=implicit-function-declaration] BUILD_BUG_ON(TSO(tm_tfhar) + sizeof(u64) != TSO(tm_texasr)); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:646:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TSO(tm_tfhar) + sizeof(u64) != TSO(tm_texasr)); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:646:19: error: 'tm_tfhar' undeclared (first use in this function) BUILD_BUG_ON(TSO(tm_tfhar) + sizeof(u64) != TSO(tm_texasr)); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:646:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TSO(tm_tfhar) + sizeof(u64) != TSO(tm_texasr)); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:646:50: error: 'tm_texasr' undeclared (first use in this function) BUILD_BUG_ON(TSO(tm_tfhar) + sizeof(u64) != TSO(tm_texasr)); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:646:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TSO(tm_tfhar) + sizeof(u64) != TSO(tm_texasr)); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:647:51: error: 'tm_tfiar' undeclared (first use in this function) BUILD_BUG_ON(TSO(tm_texasr) + sizeof(u64) != TSO(tm_tfiar)); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:647:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TSO(tm_texasr) + sizeof(u64) != TSO(tm_tfiar)); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:648:50: error: 'ckpt_regs' undeclared (first use in this function) BUILD_BUG_ON(TSO(tm_tfiar) + sizeof(u64) != TSO(ckpt_regs)); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:648:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TSO(tm_tfiar) + sizeof(u64) != TSO(ckpt_regs)); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c: In function 'tm_spr_set': /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:701:19: error: 'tm_tfhar' undeclared (first use in this function) BUILD_BUG_ON(TSO(tm_tfhar) + sizeof(u64) != TSO(tm_texasr)); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:701:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TSO(tm_tfhar) + sizeof(u64) != TSO(tm_texasr)); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:701:50: error: 'tm_texasr' undeclared (first use in this function) BUILD_BUG_ON(TSO(tm_tfhar) + sizeof(u64) != TSO(tm_texasr)); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:701:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TSO(tm_tfhar) + sizeof(u64) != TSO(tm_texasr)); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:702:51: error: 'tm_tfiar' undeclared (first use in this function) BUILD_BUG_ON(TSO(tm_texasr) + sizeof(u64) != TSO(tm_tfiar)); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:702:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TSO(tm_texasr) + sizeof(u64) != TSO(tm_tfiar)); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:703:50: error: 'ckpt_regs' undeclared (first use in this function) BUILD_BUG_ON(TSO(tm_tfiar) + sizeof(u64) != TSO(ckpt_regs)); ^ /kisskb/src/include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert' if (!(condition)) \ ^ /kisskb/src/include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ /kisskb/src/include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ /kisskb/src/include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:703:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(TSO(tm_tfiar) + sizeof(u64) != TSO(ckpt_regs)); ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c: In function 'tm_cgpr32_get': /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:867:9: error: implicit declaration of function 'gpr32_get_common' [-Werror=implicit-function-declaration] return gpr32_get_common(target, regset, pos, count, kbuf, ubuf, ^ /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c: In function 'tm_cgpr32_set': /kisskb/src/arch/powerpc/kernel/ptrace/ptrace-tm.c:875:9: error: implicit declaration of function 'gpr32_set_common' [-Werror=implicit-function-declaration] return gpr32_set_common(target, regset, pos, count, kbuf, ubuf, ^ cc1: all warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:279: arch/powerpc/kernel/ptrace/ptrace-tm.o] Error 1 cc1: all warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:278: arch/powerpc/kernel/ptrace/ptrace-vsx.o] Error 1 make[3]: *** [/kisskb/src/scripts/Makefile.build:489: arch/powerpc/kernel/ptrace] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:489: arch/powerpc/kernel] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:1071: arch/powerpc] Error 2 make[1]: *** Waiting for unfinished jobs.... /kisskb/src/kernel/futex.c: In function 'do_futex': /kisskb/src/kernel/futex.c:1645:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg; ^ /kisskb/src/kernel/futex.c:1620:6: note: 'oldval' was declared here int oldval, ret; ^ make: *** [Makefile:179: sub-make] Error 2 Command 'make -s -j 120 ARCH=powerpc O=/kisskb/build/chleroy_ppc64le_defconfig_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/chleroy_ppc64le_defconfig_ppc64le-gcc5 # Build took: 0:01:20.901984