# git rev-parse -q --verify 7eeb18a4da1ebbdb8e9583aa28c2965584ad7dab^{commit} 7eeb18a4da1ebbdb8e9583aa28c2965584ad7dab already have revision, skipping fetch # git checkout -q -f -B kisskb 7eeb18a4da1ebbdb8e9583aa28c2965584ad7dab # git clean -qxdf # < git log -1 # commit 7eeb18a4da1ebbdb8e9583aa28c2965584ad7dab # Author: Vaibhav Jain # Date: Wed Jul 4 20:58:33 2018 +0530 # # cxl: Fix wrong comparison in cxl_adapter_context_get() # # Function atomic_inc_unless_negative() returns a bool to indicate # success/failure. However cxl_adapter_context_get() wrongly compares # the return value against '>=0' which will always be true. The patch # fixes this comparison to '==0' there by also fixing this compile time # warning: # # drivers/misc/cxl/main.c:290 cxl_adapter_context_get() # warn: 'atomic_inc_unless_negative(&adapter->contexts_num)' is unsigned # # Fixes: 70b565bbdb91 ("cxl: Prevent adapter reset if an active context exists") # Cc: stable@vger.kernel.org # v4.9+ # Reported-by: Dan Carpenter # Signed-off-by: Vaibhav Jain # Acked-by: Andrew Donnellan # Acked-by: Frederic Barrat # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 7eeb18a4da1ebbdb8e9583aa28c2965584ad7dab # < make -s -j 10 ARCH=powerpc O=/kisskb/build/powerpc-next_85xx_stx_gp3_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- 85xx/stx_gp3_defconfig # make -s -j 10 ARCH=powerpc O=/kisskb/build/powerpc-next_85xx_stx_gp3_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. /kisskb/src/drivers/dma-buf/reservation.c: In function 'reservation_object_add_shared_fence': /kisskb/src/drivers/dma-buf/reservation.c:225:6: warning: 'k' 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:339:21: note: 'pdeo' was declared here /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] INFO: Uncompressed kernel (size 0x4e8898) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) Image Name: Linux-4.18.0-rc3-g7eeb18a Created: Thu Jul 19 18:54:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2524546 Bytes = 2465.38 kB = 2.41 MB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/powerpc-next_85xx_stx_gp3_defconfig_powerpc # Build took: 0:00:54.469991