# 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-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux-ld --version # < git log --format=%s --max-count=1 8bc086899816214fbc6047c9c7e15fcab49552bf # < make -s -j 120 ARCH=x86 O=/kisskb/build/powerpc-fixes_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # yes \n | make -s -j 120 ARCH=x86 O=/kisskb/build/powerpc-fixes_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 120 ARCH=x86 O=/kisskb/build/powerpc-fixes_x86-allmodconfig_x86_64-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/x86_64-linux/bin/x86_64-linux- Completed OK # rm -rf /kisskb/build/powerpc-fixes_x86-allmodconfig_x86_64-gcc8 # Build took: 0:12:09.526359