# git rev-parse -q --verify 393144fdab45bfe2dbcde8fc91164f5c732c3590^{commit} 393144fdab45bfe2dbcde8fc91164f5c732c3590 already have revision, skipping fetch # git checkout -q -f -B kisskb 393144fdab45bfe2dbcde8fc91164f5c732c3590 # git clean -qxdf # < git log -1 # commit 393144fdab45bfe2dbcde8fc91164f5c732c3590 # Author: Christophe Leroy # Date: Wed Feb 13 16:06:21 2019 +0000 # # powerpc/8xx: Map 32Mb of RAM at init. # # At the time being, initial MMU setup allows 24 Mbytes # of DATA and 8 Mbytes of code. # # Some debug setup like CONFIG_KASAN generate huge # kernels with text size over the 8M limit and data over the # 24 Mbytes limit. # # Here is an 8xx kernel compiled with CONFIG_KASAN_INLINE for # one of my boards: # # [root@po16846vm linux-powerpc]# size -x vmlinux # text data bss dec hex filename # 0x111019c 0x41b0d4 0x490de0 26984528 19bc050 vmlinux # # This patch maps up to 32 Mbytes code based on _einittext symbol # and allows 32 Mbytes of memory instead of 24. # # Signed-off-by: Christophe Leroy # 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 393144fdab45bfe2dbcde8fc91164f5c732c3590 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_44x_taishan_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- 44x/taishan_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_44x_taishan_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/arch/powerpc/mm/pgtable_32.c:22:0: /kisskb/src/arch/powerpc/mm/pgtable_32.c: In function 'mapin_ram': /kisskb/src/include/linux/kernel.h:846:29: error: comparison of distinct pointer types lacks a cast [-Werror] (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ^ /kisskb/src/include/linux/kernel.h:860:4: note: in expansion of macro '__typecheck' (__typecheck(x, y) && __no_side_effects(x, y)) ^ /kisskb/src/include/linux/kernel.h:870:24: note: in expansion of macro '__safe_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^ /kisskb/src/include/linux/kernel.h:879:19: note: in expansion of macro '__careful_cmp' #define min(x, y) __careful_cmp(x, y, <) ^ /kisskb/src/arch/powerpc/mm/pgtable_32.c:261:23: note: in expansion of macro 'min' unsigned long top = min(base + reg->size, (unsigned long)total_lowmem); ^ cc1: all warnings being treated as errors make[3]: *** [/kisskb/src/scripts/Makefile.build:277: arch/powerpc/mm/pgtable_32.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:492: arch/powerpc/mm] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:1042: arch/powerpc] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:152: sub-make] Error 2 Command 'make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_44x_taishan_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next_44x_taishan_defconfig_powerpc-gcc5 # Build took: 0:00:29.289010