# git rev-parse -q --verify 8bc086899816214fbc6047c9c7e15fcab49552bf^{commit} 8bc086899816214fbc6047c9c7e15fcab49552bf already have revision, skipping fetch # git checkout -q -f -B kisskb 8bc086899816214fbc6047c9c7e15fcab49552bf # git clean -qxdf # < git log -1 # commit 8bc086899816214fbc6047c9c7e15fcab49552bf # Author: Ben Hutchings # Date: Sun Mar 17 01:17:56 2019 +0000 # # powerpc/mm: Only define MAX_PHYSMEM_BITS in SPARSEMEM configurations # # MAX_PHYSMEM_BITS only needs to be defined if CONFIG_SPARSEMEM is # enabled, and that was the case before commit 4ffe713b7587 # ("powerpc/mm: Increase the max addressable memory to 2PB"). # # On 32-bit systems, where CONFIG_SPARSEMEM is not enabled, we now # define it as 46. That is larger than the real number of physical # address bits, and breaks calculations in zsmalloc: # # mm/zsmalloc.c:130:49: warning: right shift count is negative # MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) # ^~ # ... # mm/zsmalloc.c:253:21: error: variably modified 'size_class' at file scope # struct size_class *size_class[ZS_SIZE_CLASSES]; # ^~~~~~~~~~ # # Fixes: 4ffe713b7587 ("powerpc/mm: Increase the max addressable memory to 2PB") # Cc: stable@vger.kernel.org # v4.20+ # Signed-off-by: Ben Hutchings # 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 8bc086899816214fbc6047c9c7e15fcab49552bf # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powerpc-allnoconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- allnoconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powerpc-allnoconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- :1478:2: warning: #warning syscall pidfd_send_signal not implemented [-Wcpp] :1481:2: warning: #warning syscall io_uring_setup not implemented [-Wcpp] :1484:2: warning: #warning syscall io_uring_enter not implemented [-Wcpp] :1487:2: warning: #warning syscall io_uring_register not implemented [-Wcpp] Completed OK # rm -rf /kisskb/build/powerpc-fixes_powerpc-allnoconfig_powerpc-gcc5 # Build took: 0:00:15.956574