# git rev-parse -q --verify 1a52c68af17bfc24c6450449942f9f6b448ac3ed^{commit} 1a52c68af17bfc24c6450449942f9f6b448ac3ed already have revision, skipping fetch # git checkout -q -f -B kisskb 1a52c68af17bfc24c6450449942f9f6b448ac3ed # git clean -qxdf # < git log -1 # commit 1a52c68af17bfc24c6450449942f9f6b448ac3ed # Author: Christophe Leroy # Date: Thu Sep 2 08:22:42 2021 +0000 # # powerpc/machdep: Convert ppc_md to static calls # # Static calls are global structures declared with DECLARE_STATIC_CALL() # and defined with DEFINE_STATIC_CALL(). # # All fonction prototypes are moved out of struct machdep_calls into # struct machdep_calls_ops. That new struct won't be instanciated, it # is only used as a support for carriing fonction prototypes and use # them to declare/define associated static calls. # # In order to limit test copies which are error prone, define a macro # called PPC_MD_CALL, which either declare the call or defines it # based on the definition of GENERATING_PPC_MD_STATIC_CALLS_DEFINITIONS # that will be defined in and only in kernel/setup-common.c as a # replacement of ppc_md instance. # # Signed-off-by: Christophe Leroy # --- # v2: Export static calls for modules. # < /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 1a52c68af17bfc24c6450449942f9f6b448ac3ed # < make -s -j 32 ARCH=powerpc O=/kisskb/build/chleroy_pseries_le_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- pseries_le_defconfig # < make -s -j 32 ARCH=powerpc O=/kisskb/build/chleroy_pseries_le_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 32 ARCH=powerpc O=/kisskb/build/chleroy_pseries_le_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/chleroy_pseries_le_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/kernel/audit_tree.c:33:9: error: redefinition of 'struct node' struct node { ^ In file included from /kisskb/src/include/linux/cpu.h:17:0, from /kisskb/src/include/linux/static_call.h:102, from /kisskb/src/arch/powerpc/include/asm/machdep.h:10, from /kisskb/src/arch/powerpc/include/asm/archrandom.h:7, from /kisskb/src/include/linux/random.h:121, from /kisskb/src/include/linux/net.h:18, from /kisskb/src/include/linux/skbuff.h:26, from /kisskb/src/kernel/audit.h:11, from /kisskb/src/kernel/audit_tree.c:2: /kisskb/src/include/linux/node.h:84:8: note: originally defined here struct node { ^ make[2]: *** [/kisskb/src/scripts/Makefile.build:271: kernel/audit_tree.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:1851: kernel] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:220: __sub-make] Error 2 Command 'make -s -j 32 ARCH=powerpc O=/kisskb/build/chleroy_pseries_le_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/chleroy_pseries_le_defconfig_powerpc-gcc5 # Build took: 0:01:44.986613