tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e4cd8d3ff7f9efeb97330e5e9b99eeb2a68f5cf9 commit: 26299b3f6ba26bfc234b73126d14bdf4dec5275a [8539/9537] ftrace: arm64: move from REGS to ARGS config: arm64-buildonly-randconfig-r003-20221120 compiler: aarch64-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/next/linux-next.git/commit/?id=26299b3f6ba26bfc234b73126d14bdf4dec5275a git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 26299b3f6ba26bfc234b73126d14bdf4dec5275a # 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=arm64 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/kvm_host.h:32, from arch/arm64/kernel/asm-offsets.c:15: include/linux/ftrace.h: In function 'ftrace_get_regs': >> include/linux/ftrace.h:126:16: error: implicit declaration of function 'arch_ftrace_get_regs'; did you mean 'ftrace_get_regs'? [-Werror=implicit-function-declaration] 126 | return arch_ftrace_get_regs(fregs); | ^~~~~~~~~~~~~~~~~~~~ | ftrace_get_regs >> include/linux/ftrace.h:126:16: warning: returning 'int' from a function with return type 'struct pt_regs *' makes pointer from integer without a cast [-Wint-conversion] 126 | return arch_ftrace_get_regs(fregs); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:118: arch/arm64/kernel/asm-offsets.s] Error 1 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:1270: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:231: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +126 include/linux/ftrace.h d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 120) d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 121) static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs) d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 122) { d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 123) if (!fregs) d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 124) return NULL; d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 125) 02a474ca266a47 Steven Rostedt (VMware 2020-10-27 @126) return arch_ftrace_get_regs(fregs); d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 127) } d19ad0775dcd64 Steven Rostedt (VMware 2020-10-28 128) :::::: The code at line 126 was first introduced by commit :::::: 02a474ca266a47ea8f4d5a11f4ffa120f83730ad ftrace/x86: Allow for arguments to be passed in to ftrace_regs by default :::::: TO: Steven Rostedt (VMware) :::::: CC: Steven Rostedt (VMware) -- 0-DAY CI Kernel Test Service https://01.org/lkp