# 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_ppc6xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc6xx_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/sound/ppc/pmac.h:25:0, from /kisskb/src/sound/ppc/awacs.c:29: /kisskb/src/sound/ppc/awacs.c: In function 'snd_pmac_awacs_init': /kisskb/src/include/sound/control.h:223:9: warning: 'speaker_vol' may be used uninitialized in this function [-Wmaybe-uninitialized] return _snd_ctl_add_slave(master, slave, 0); ^ /kisskb/src/sound/ppc/awacs.c:886:36: note: 'speaker_vol' was declared here struct snd_kcontrol *master_vol, *speaker_vol; ^ INFO: Uncompressed kernel (size 0xab93a8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xab93a8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xab93a8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xab93a8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xab93a8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xab93a8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xab93a8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xab93a8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xab93a8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xab93a8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xaa8c90) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xaa8c90) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) Image Name: Linux-5.0.0-rc2+ Created: Wed Feb 27 01:51:36 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5165669 Bytes = 5044.60 KiB = 4.93 MiB Load Address: 00b00000 Entry Point: 00b00294 Image Name: Linux-5.0.0-rc2+ Created: Wed Feb 27 01:51:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5165432 Bytes = 5044.37 KiB = 4.93 MiB Load Address: 00b00000 Entry Point: 00b00294 Image Name: Linux-5.0.0-rc2+ Created: Wed Feb 27 01:51:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5164991 Bytes = 5043.94 KiB = 4.93 MiB Load Address: 00b00000 Entry Point: 00b00894 Image Name: Linux-5.0.0-rc2+ Created: Wed Feb 27 01:51:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5135634 Bytes = 5015.27 KiB = 4.90 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.0.0-rc2+ Created: Wed Feb 27 01:51:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5164732 Bytes = 5043.68 KiB = 4.93 MiB Load Address: 00b00000 Entry Point: 00b00894 Image Name: Linux-5.0.0-rc2+ Created: Wed Feb 27 01:51:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5165127 Bytes = 5044.07 KiB = 4.93 MiB Load Address: 00b00000 Entry Point: 00b00294 Image Name: Linux-5.0.0-rc2+ Created: Wed Feb 27 01:51:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5165937 Bytes = 5044.86 KiB = 4.93 MiB Load Address: 00b00000 Entry Point: 00b00294 Image Name: Linux-5.0.0-rc2+ Created: Wed Feb 27 01:51:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5165869 Bytes = 5044.79 KiB = 4.93 MiB Load Address: 00b00000 Entry Point: 00b00294 Image Name: Linux-5.0.0-rc2+ Created: Wed Feb 27 01:51:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5165048 Bytes = 5043.99 KiB = 4.93 MiB Load Address: 00b00000 Entry Point: 00b00294 Completed OK # rm -rf /kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc5 # Build took: 0:03:09.074761