All of lore.kernel.org
 help / color / mirror / Atom feed
* [mark:arm64/ftrace/minimal-regs 6/6] include/linux/ftrace.h:126:16: error: implicit declaration of function 'arch_ftrace_get_regs'; did you mean 'ftrace_get_regs'?
@ 2022-06-01 18:33 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-06-01 18:33 UTC (permalink / raw)
  To: Mark Rutland; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/ftrace/minimal-regs
head:   b0741d059a9f19a1aa1191833140f53e41f1775a
commit: b0741d059a9f19a1aa1191833140f53e41f1775a [6/6] WIP: arm64/ftrace: move from REGS to ARGS
config: arm64-randconfig-r031-20220601 (https://download.01.org/0day-ci/archive/20220602/202206020253.PecbI4Mb-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.3.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=b0741d059a9f19a1aa1191833140f53e41f1775a
        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 b0741d059a9f19a1aa1191833140f53e41f1775a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.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 <lkp@intel.com>

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:121: arch/arm64/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1196: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:219: __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) <rostedt@goodmis.org>
:::::: CC: Steven Rostedt (VMware) <rostedt@goodmis.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-01 18:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-01 18:33 [mark:arm64/ftrace/minimal-regs 6/6] include/linux/ftrace.h:126:16: error: implicit declaration of function 'arch_ftrace_get_regs'; did you mean 'ftrace_get_regs'? kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.