# git rev-parse -q --verify edd4d23d290772d75891f7cf35eb6bb66f2e4fe5^{commit} edd4d23d290772d75891f7cf35eb6bb66f2e4fe5 already have revision, skipping fetch # git checkout -q -f -B kisskb edd4d23d290772d75891f7cf35eb6bb66f2e4fe5 # git clean -qxdf # < git log -1 # commit edd4d23d290772d75891f7cf35eb6bb66f2e4fe5 # Author: Luc Van Oostenryck # Date: Sat Nov 9 13:12:16 2019 +0100 # # kbuild: tell sparse about the $ARCH # # Sparse uses the same executable for all archs and uses flags # like -m64, -mbig-endian or -D__arm__ for arch-specific parameters. # But Sparse also uses value from the host machine used to build # Sparse as default value for the target machine. # # This works, of course, well for native build but can create # problems when cross-compiling, like defining both '__i386__' # and '__arm__' when cross-compiling for arm on a x86-64 machine. # # Fix this by explicitely telling sparse the target architecture. # # Reported-by: Ben Dooks # Signed-off-by: Luc Van Oostenryck # Signed-off-by: Masahiro Yamada # < /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 edd4d23d290772d75891f7cf35eb6bb66f2e4fe5 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/kbuild_pseries_le_defconfig_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- pseries_le_defconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/kbuild_pseries_le_defconfig_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- WARNING: vmlinux.o(.text+0x31dc): 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+0x33c8): 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/kbuild_pseries_le_defconfig_ppc64le-gcc5 # Build took: 0:02:37.401429