# git rev-parse -q --verify f460772291f8171988b2b60141a45706123d0c69^{commit} f460772291f8171988b2b60141a45706123d0c69 already have revision, skipping fetch # git checkout -q -f -B kisskb f460772291f8171988b2b60141a45706123d0c69 # git clean -qxdf # < git log -1 # commit f460772291f8171988b2b60141a45706123d0c69 # Author: Michael Ellerman # Date: Sun Dec 30 14:05:13 2018 +1100 # # KVM: PPC: Book3S HV: radix: Fix uninitialized var build error # # Old GCCs (4.6.3 at least), aren't able to follow the logic in # __kvmhv_copy_tofrom_guest_radix() and warn that old_pid is used # uninitialized: # # arch/powerpc/kvm/book3s_64_mmu_radix.c:75:3: error: 'old_pid' may be # used uninitialized in this function # # The logic is OK, we only use old_pid if quadrant == 1, and in that # case it has definitely be initialised, eg: # # if (quadrant == 1) { # old_pid = mfspr(SPRN_PID); # ... # if (quadrant == 1 && pid != old_pid) # mtspr(SPRN_PID, old_pid); # # Annotate it to fix the error. # # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 f460772291f8171988b2b60141a45706123d0c69 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_85xx_sbc8548_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- 85xx/sbc8548_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_85xx_sbc8548_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:186:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:341:21: note: 'pdeo' was declared here /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:247:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:227:19: note: 'i' was declared here INFO: Uncompressed kernel (size 0x4641c4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) Image Name: Linux-4.20.0-gf460772291f8 Created: Sun Dec 30 15:31:09 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2228132 Bytes = 2175.91 KiB = 2.12 MiB Load Address: 00500000 Entry Point: 005002a8 INFO: Uncompressed kernel (size 0x453b3c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) Image Name: Linux-4.20.0-gf460772291f8 Created: Sun Dec 30 15:31:10 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2199004 Bytes = 2147.46 KiB = 2.10 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/powerpc-fixes_85xx_sbc8548_defconfig_powerpc # Build took: 0:00:20.641247