# git rev-parse -q --verify fde46ba593df92c4d787d2cc35a11f46583c89a6^{commit} fde46ba593df92c4d787d2cc35a11f46583c89a6 already have revision, skipping fetch # git checkout -q -f -B kisskb fde46ba593df92c4d787d2cc35a11f46583c89a6 # git clean -qxdf # < git log -1 # commit fde46ba593df92c4d787d2cc35a11f46583c89a6 # Author: Nathan Chancellor # Date: Mon Jun 3 15:11:58 2019 -0700 # # PCI: rpaphp: Avoid a sometimes-uninitialized warning # # When building with -Wsometimes-uninitialized, clang warns: # # drivers/pci/hotplug/rpaphp_core.c:243:14: warning: variable 'fndit' is # used uninitialized whenever 'for' loop exits because its condition is # false [-Wsometimes-uninitialized] # for (j = 0; j < entries; j++) { # ^~~~~~~~~~~ # drivers/pci/hotplug/rpaphp_core.c:256:6: note: uninitialized use occurs # here # if (fndit) # ^~~~~ # drivers/pci/hotplug/rpaphp_core.c:243:14: note: remove the condition if # it is always true # for (j = 0; j < entries; j++) { # ^~~~~~~~~~~ # drivers/pci/hotplug/rpaphp_core.c:233:14: note: initialize the variable # 'fndit' to silence this warning # int j, fndit; # ^ # = 0 # # fndit is only used to gate a sprintf call, which can be moved into the # loop to simplify the code and eliminate the local variable, which will # fix this warning. # # Fixes: 2fcf3ae508c2 ("hotplug/drc-info: Add code to search ibm,drc-info property") # Suggested-by: Nick Desaulniers # Signed-off-by: Nathan Chancellor # Acked-by: Tyrel Datwyler # Acked-by: Joel Savitz # Signed-off-by: Michael Ellerman # Link: https://github.com/ClangBuiltLinux/linux/issues/504 # Link: https://lore.kernel.org/r/20190603221157.58502-1-natechancellor@gmail.com # < /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 fde46ba593df92c4d787d2cc35a11f46583c89a6 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_pseries_le_defconfig+NO_NUMA_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- pseries_le_defconfig # Added to kconfig CONFIG_NUMA=n # yes \n | make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_pseries_le_defconfig+NO_NUMA_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 80 ARCH=powerpc O=/kisskb/build/powerpc-next_pseries_le_defconfig+NO_NUMA_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- :1511:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/kernel/futex.c: In function 'do_futex': /kisskb/src/kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg; ^ /kisskb/src/kernel/futex.c:1651:6: note: 'oldval' was declared here int oldval, ret; ^ WARNING: vmlinux.o(.text+0x31fc): Section mismatch in reference from the variable __boot_from_prom to the function .init.text:prom_init() The function __boot_from_prom() references the function __init prom_init(). This is often because __boot_from_prom lacks a __init annotation or the annotation of prom_init is wrong. WARNING: vmlinux.o(.text+0x33d0): Section mismatch in reference from the variable start_here_common to the function .init.text:start_kernel() The function start_here_common() references the function __init start_kernel(). This is often because start_here_common lacks a __init annotation or the annotation of start_kernel is wrong. Completed OK # rm -rf /kisskb/build/powerpc-next_pseries_le_defconfig+NO_NUMA_ppc64le-gcc5 # Build took: 0:02:36.723700