tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/ftrace/minimal-regs head: 1e840c7ba731d3b9fe5d23a41b3744fa8999ec1e commit: 1907aee84bdc80f1126268b50d59e9cdc4d60d80 [4/5] ftrace: abstract DYNAMIC_FTRACE_WITH_ARGS accesses config: powerpc-allyesconfig compiler: powerpc-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=1907aee84bdc80f1126268b50d59e9cdc4d60d80 git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git git fetch --no-tags mark arm64/ftrace/minimal-regs git checkout 1907aee84bdc80f1126268b50d59e9cdc4d60d80 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc prepare If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): In file included from include/linux/ftrace.h:23, from include/linux/kvm_host.h:32, from arch/powerpc/include/asm/kvm_ppc.h:19, from arch/powerpc/include/asm/dbell.h:17, from arch/powerpc/kernel/asm-offsets.c:36: >> arch/powerpc/include/asm/ftrace.h:48:50: warning: 'struct ftrace_refs' declared inside parameter list will not be visible outside of this definition or declaration 48 | ftrace_regs_get_instruction_pointer(const struct ftrace_refs *fregs) | ^~~~~~~~~~~ arch/powerpc/include/asm/ftrace.h: In function 'ftrace_regs_get_instruction_pointer': >> arch/powerpc/include/asm/ftrace.h:50:42: error: invalid use of undefined type 'const struct ftrace_refs' 50 | return instruction_pointer(&fregs->regs) | ^~ >> arch/powerpc/include/asm/ftrace.h:50:49: error: expected ';' before '}' token 50 | return instruction_pointer(&fregs->regs) | ^ | ; 51 | } | ~ make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1205: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:222: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +50 arch/powerpc/include/asm/ftrace.h 46 47 static __always_inline unsigned long > 48 ftrace_regs_get_instruction_pointer(const struct ftrace_refs *fregs) 49 { > 50 return instruction_pointer(&fregs->regs) 51 } 52 -- 0-DAY CI Kernel Test Service https://01.org/lkp