# git rev-parse -q --verify e41b93a6be57e26a4a123345f826a6ac3a213551^{commit} e41b93a6be57e26a4a123345f826a6ac3a213551 already have revision, skipping fetch # git checkout -q -f -B kisskb e41b93a6be57e26a4a123345f826a6ac3a213551 # git clean -qxdf # < git log -1 # commit e41b93a6be57e26a4a123345f826a6ac3a213551 # Author: Michael Ellerman # Date: Mon Dec 3 19:55:55 2018 +1100 # # powerpc/boot: Fix build failures with -j 1 # # In commit 5e9dcb6188a4 ("powerpc/boot: Expose Kconfig symbols to # wrapper") we added a dependency to serial.c on autoconf.h: # # $(obj)/serial.c: $(obj)/autoconf.h # # This works when building in-tree (ie. with KBUILD_OUTPUT unset) # because the obj tree is the src tree. # # But when building with eg. O=build and -j 1 the build fails: # # gcc ... -I../arch/powerpc/boot -c -o arch/powerpc/boot/serial.o arch/powerpc/boot/serial.c # gcc: error: arch/powerpc/boot/serial.c: No such file or directory # # Why this is only happening with -j 1 is not clear, when building with # -j greater than 1 somehow we decide to look for serial.c in the src # tree (../), eg: # # gcc -I../arch/powerpc/boot -c -o arch/powerpc/boot/serial.o ../arch/powerpc/boot/serial.c # # Regardless we shouldn't be specifying a dependency on serial.c in the # build tree, we want to add a dependency to the version in $(srctree) # so fix the rule to say that. # # Fixes: 5e9dcb6188a4 ("powerpc/boot: Expose Kconfig symbols to wrapper") # Tested-by: Daniel Axtens # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 e41b93a6be57e26a4a123345f826a6ac3a213551 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pmac32_defconfig+SMP_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- pmac32_defconfig # Added to kconfig CONFIG_SMP=y # yes \n | make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pmac32_defconfig+SMP_powerpc-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 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pmac32_defconfig+SMP_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 0x93c914) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xa00000) Completed OK # rm -rf /kisskb/build/powerpc-fixes_pmac32_defconfig+SMP_powerpc-gcc5 # Build took: 0:01:40.025033