# git rev-parse -q --verify e7140639b1de65bba435a6bd772d134901141f86^{commit} e7140639b1de65bba435a6bd772d134901141f86 already have revision, skipping fetch # git checkout -q -f -B kisskb e7140639b1de65bba435a6bd772d134901141f86 # git clean -qxdf # < git log -1 # commit e7140639b1de65bba435a6bd772d134901141f86 # Author: Nathan Chancellor # Date: Mon Feb 25 22:38:55 2019 -0700 # # powerpc/xmon: Fix opcode being uninitialized in print_insn_powerpc # # When building with -Wsometimes-uninitialized, Clang warns: # # arch/powerpc/xmon/ppc-dis.c:157:7: warning: variable 'opcode' is used # uninitialized whenever 'if' condition is false # [-Wsometimes-uninitialized] # if (cpu_has_feature(CPU_FTRS_POWER9)) # ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # arch/powerpc/xmon/ppc-dis.c:167:7: note: uninitialized use occurs here # if (opcode == NULL) # ^~~~~~ # arch/powerpc/xmon/ppc-dis.c:157:3: note: remove the 'if' if its # condition is always true # if (cpu_has_feature(CPU_FTRS_POWER9)) # ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # arch/powerpc/xmon/ppc-dis.c:132:38: note: initialize the variable # 'opcode' to silence this warning # const struct powerpc_opcode *opcode; # ^ # = NULL # 1 warning generated. # # This warning seems to make no sense on the surface because opcode is set # to NULL right below this statement. However, there is a comma instead of # semicolon to end the dialect assignment, meaning that the opcode # assignment only happens in the if statement. Properly terminate that # line so that Clang no longer warns. # # Fixes: 5b102782c7f4 ("powerpc/xmon: Enable disassembly files (compilation changes)") # Signed-off-by: Nathan Chancellor # Reviewed-by: Nick Desaulniers # Signed-off-by: Michael Ellerman # < /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 e7140639b1de65bba435a6bd772d134901141f86 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_powernv_defconfig+STRICT_RWX_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- powernv_defconfig # Added to kconfig CONFIG_RELOCATABLE=n # Added to kconfig CONFIG_STRICT_KERNEL_RWX=y # yes \n | make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_powernv_defconfig+STRICT_RWX_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_powernv_defconfig+STRICT_RWX_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- WARNING: modpost: Found 2 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' Completed OK # rm -rf /kisskb/build/powerpc-next_powernv_defconfig+STRICT_RWX_ppc64le-gcc5 # Build took: 0:03:02.714812