# 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-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 1a52c68af17bfc24c6450449942f9f6b448ac3ed # < make -s -j 80 ARCH=powerpc O=/kisskb/build/chleroy_83xx_mpc832x_mds_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- 83xx/mpc832x_mds_defconfig # < make -s -j 80 ARCH=powerpc O=/kisskb/build/chleroy_83xx_mpc832x_mds_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 80 ARCH=powerpc O=/kisskb/build/chleroy_83xx_mpc832x_mds_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/chleroy_83xx_mpc832x_mds_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/arch/powerpc/include/asm/machdep.h:10:0, from /kisskb/src/arch/powerpc/include/asm/pci.h:15, from /kisskb/src/include/linux/pci.h:1840, from /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:14: /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c: In function 'mpc832x_sys_probe': /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:100:28: error: 'mpc831x_rdb_setup_arch' undeclared (first use in this function) ppc_md_update(setup_arch, mpc831x_rdb_setup_arch); ^ /kisskb/src/include/linux/static_call.h:121:42: note: in definition of macro 'static_call_update' typeof(&STATIC_CALL_TRAMP(name)) __F = (func); \ ^ /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:100:2: note: in expansion of macro 'ppc_md_update' ppc_md_update(setup_arch, mpc831x_rdb_setup_arch); ^ /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:100:28: note: each undeclared identifier is reported only once for each function it appears in ppc_md_update(setup_arch, mpc831x_rdb_setup_arch); ^ /kisskb/src/include/linux/static_call.h:121:42: note: in definition of macro 'static_call_update' typeof(&STATIC_CALL_TRAMP(name)) __F = (func); \ ^ /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:100:2: note: in expansion of macro 'ppc_md_update' ppc_md_update(setup_arch, mpc831x_rdb_setup_arch); ^ /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c: At top level: /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:115:2: error: unknown field 'setup_arch' specified in initializer .setup_arch = mpc832x_sys_setup_arch, ^ /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:115:2: error: excess elements in struct initializer [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:115:2: error: (near initialization for 'mach_mpc832x_mds') [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:116:2: error: unknown field 'discover_phbs' specified in initializer .discover_phbs = mpc83xx_setup_pci, ^ /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:116:2: error: excess elements in struct initializer [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:116:2: error: (near initialization for 'mach_mpc832x_mds') [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:117:2: error: unknown field 'init_IRQ' specified in initializer .init_IRQ = mpc83xx_ipic_init_IRQ, ^ /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:117:2: error: excess elements in struct initializer [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:117:2: error: (near initialization for 'mach_mpc832x_mds') [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:118:2: error: unknown field 'get_irq' specified in initializer .get_irq = ipic_get_irq, ^ /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:118:2: error: excess elements in struct initializer [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:118:2: error: (near initialization for 'mach_mpc832x_mds') [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:119:2: error: unknown field 'restart' specified in initializer .restart = mpc83xx_restart, ^ /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:119:2: error: excess elements in struct initializer [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:119:2: error: (near initialization for 'mach_mpc832x_mds') [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:120:2: error: unknown field 'time_init' specified in initializer .time_init = mpc83xx_time_init, ^ /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:120:2: error: excess elements in struct initializer [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:120:2: error: (near initialization for 'mach_mpc832x_mds') [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:121:2: error: unknown field 'calibrate_decr' specified in initializer .calibrate_decr = generic_calibrate_decr, ^ /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:121:2: error: excess elements in struct initializer [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:121:2: error: (near initialization for 'mach_mpc832x_mds') [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:122:2: error: unknown field 'progress' specified in initializer .progress = udbg_progress, ^ /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:122:2: error: excess elements in struct initializer [-Werror] /kisskb/src/arch/powerpc/platforms/83xx/mpc832x_mds.c:122:2: error: (near initialization for 'mach_mpc832x_mds') [-Werror] cc1: all warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:271: arch/powerpc/platforms/83xx/mpc832x_mds.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [/kisskb/src/scripts/Makefile.build:514: arch/powerpc/platforms/83xx] Error 2 make[2]: *** [/kisskb/src/scripts/Makefile.build:514: arch/powerpc/platforms] Error 2 make[2]: *** Waiting for unfinished jobs.... /kisskb/src/net/sched/sch_frag.c: In function 'sch_fragment': /kisskb/src/net/sched/sch_frag.c:93:10: warning: missing braces around initializer [-Wmissing-braces] struct rtable sch_frag_rt = { 0 }; ^ /kisskb/src/net/sched/sch_frag.c:93:10: warning: (near initialization for 'sch_frag_rt.dst') [-Wmissing-braces] /kisskb/src/block/genhd.c: In function 'diskstats_show': /kisskb/src/block/genhd.c:1181:1: warning: the frame size of 1120 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/block/mq-deadline.c:274:12: warning: 'dd_queued' defined but not used [-Wunused-function] static u32 dd_queued(struct deadline_data *dd, enum dd_prio prio) ^ make[1]: *** [/kisskb/src/Makefile:1851: arch/powerpc] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:220: __sub-make] Error 2 Command 'make -s -j 80 ARCH=powerpc O=/kisskb/build/chleroy_83xx_mpc832x_mds_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/chleroy_83xx_mpc832x_mds_defconfig_powerpc-gcc4.9 # Build took: 0:00:52.794552