All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-stable-rc:linux-4.19.y 1864/3681] arch/ia64/kernel/kprobes.c:414:17: error: implicit declaration of function '__kretprobe_trampoline_handler'; did you mean
@ 2021-03-17 15:16 kernel test robot
  2021-03-18  0:49 ` Masami Hiramatsu
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-03-17 15:16 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4008 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head:   a636947af93f0a20fdba2c08ae38b7825ebf9c56
commit: d3380de483d55d904fb94a241406b34ed2fada7d [1864/3681] ia64: kprobes: Use generic kretprobe trampoline handler
config: ia64-randconfig-r015-20210317 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.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/stable/linux-stable-rc.git/commit/?id=d3380de483d55d904fb94a241406b34ed2fada7d
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc linux-4.19.y
        git checkout d3380de483d55d904fb94a241406b34ed2fada7d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/ia64/include/asm/pgtable.h:154,
                    from include/linux/memremap.h:7,
                    from include/linux/mm.h:27,
                    from include/linux/kallsyms.h:12,
                    from include/linux/ftrace.h:11,
                    from include/linux/kprobes.h:42,
                    from arch/ia64/kernel/kprobes.c:26:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     137 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   arch/ia64/kernel/kprobes.c: In function 'get_kprobe_inst':
   arch/ia64/kernel/kprobes.c:338:15: warning: variable 'template' set but not used [-Wunused-but-set-variable]
     338 |  unsigned int template;
         |               ^~~~~~~~
   arch/ia64/kernel/kprobes.c: At top level:
   arch/ia64/kernel/kprobes.c:412:15: warning: no previous prototype for 'trampoline_probe_handler' [-Wmissing-prototypes]
     412 | int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs)
         |               ^~~~~~~~~~~~~~~~~~~~~~~~
   arch/ia64/kernel/kprobes.c: In function 'trampoline_probe_handler':
>> arch/ia64/kernel/kprobes.c:414:17: error: implicit declaration of function '__kretprobe_trampoline_handler'; did you mean 'kretprobe_trampoline'? [-Werror=implicit-function-declaration]
     414 |  regs->cr_iip = __kretprobe_trampoline_handler(regs, kretprobe_trampoline, NULL);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                 kretprobe_trampoline
   At top level:
   arch/ia64/kernel/kprobes.c:928:13: warning: 'ia64_get_bsp_cfm' defined but not used [-Wunused-function]
     928 | static void ia64_get_bsp_cfm(struct unw_frame_info *info, void *arg)
         |             ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for NUMA
   Depends on !IA64_HP_SIM && !FLATMEM
   Selected by
   - IA64_SGI_UV && <choice>


vim +414 arch/ia64/kernel/kprobes.c

   411	
   412	int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs)
   413	{
 > 414		regs->cr_iip = __kretprobe_trampoline_handler(regs, kretprobe_trampoline, NULL);
   415		/*
   416		 * By returning a non-zero value, we are telling
   417		 * kprobe_handler() that we don't want the post_handler
   418		 * to run (and have re-enabled preemption)
   419		 */
   420		return 1;
   421	}
   422	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 20157 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-stable-rc:linux-4.19.y 1864/3681] arch/ia64/kernel/kprobes.c:414:17: error: implicit declaration of function '__kretprobe_trampoline_handler'; did you mean
  2021-03-17 15:16 [linux-stable-rc:linux-4.19.y 1864/3681] arch/ia64/kernel/kprobes.c:414:17: error: implicit declaration of function '__kretprobe_trampoline_handler'; did you mean kernel test robot
@ 2021-03-18  0:49 ` Masami Hiramatsu
  0 siblings, 0 replies; 2+ messages in thread
From: Masami Hiramatsu @ 2021-03-18  0:49 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4412 bytes --]

Hello,

This depends on upstream commit 66ada2ccae4e ("kprobes: Add generic kretprobe trampoline handler").

Thank you,

On Wed, 17 Mar 2021 23:16:03 +0800
kernel test robot <lkp@intel.com> wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
> head:   a636947af93f0a20fdba2c08ae38b7825ebf9c56
> commit: d3380de483d55d904fb94a241406b34ed2fada7d [1864/3681] ia64: kprobes: Use generic kretprobe trampoline handler
> config: ia64-randconfig-r015-20210317 (attached as .config)
> compiler: ia64-linux-gcc (GCC) 9.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/stable/linux-stable-rc.git/commit/?id=d3380de483d55d904fb94a241406b34ed2fada7d
>         git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
>         git fetch --no-tags linux-stable-rc linux-4.19.y
>         git checkout d3380de483d55d904fb94a241406b34ed2fada7d
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>    In file included from arch/ia64/include/asm/pgtable.h:154,
>                     from include/linux/memremap.h:7,
>                     from include/linux/mm.h:27,
>                     from include/linux/kallsyms.h:12,
>                     from include/linux/ftrace.h:11,
>                     from include/linux/kprobes.h:42,
>                     from arch/ia64/kernel/kprobes.c:26:
>    arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
>    arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
>      137 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
>          |                                         ^~~~~~~
>    arch/ia64/kernel/kprobes.c: In function 'get_kprobe_inst':
>    arch/ia64/kernel/kprobes.c:338:15: warning: variable 'template' set but not used [-Wunused-but-set-variable]
>      338 |  unsigned int template;
>          |               ^~~~~~~~
>    arch/ia64/kernel/kprobes.c: At top level:
>    arch/ia64/kernel/kprobes.c:412:15: warning: no previous prototype for 'trampoline_probe_handler' [-Wmissing-prototypes]
>      412 | int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs)
>          |               ^~~~~~~~~~~~~~~~~~~~~~~~
>    arch/ia64/kernel/kprobes.c: In function 'trampoline_probe_handler':
> >> arch/ia64/kernel/kprobes.c:414:17: error: implicit declaration of function '__kretprobe_trampoline_handler'; did you mean 'kretprobe_trampoline'? [-Werror=implicit-function-declaration]
>      414 |  regs->cr_iip = __kretprobe_trampoline_handler(regs, kretprobe_trampoline, NULL);
>          |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>          |                 kretprobe_trampoline
>    At top level:
>    arch/ia64/kernel/kprobes.c:928:13: warning: 'ia64_get_bsp_cfm' defined but not used [-Wunused-function]
>      928 | static void ia64_get_bsp_cfm(struct unw_frame_info *info, void *arg)
>          |             ^~~~~~~~~~~~~~~~
>    cc1: some warnings being treated as errors
> 
> Kconfig warnings: (for reference only)
>    WARNING: unmet direct dependencies detected for NUMA
>    Depends on !IA64_HP_SIM && !FLATMEM
>    Selected by
>    - IA64_SGI_UV && <choice>
> 
> 
> vim +414 arch/ia64/kernel/kprobes.c
> 
>    411	
>    412	int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs)
>    413	{
>  > 414		regs->cr_iip = __kretprobe_trampoline_handler(regs, kretprobe_trampoline, NULL);
>    415		/*
>    416		 * By returning a non-zero value, we are telling
>    417		 * kprobe_handler() that we don't want the post_handler
>    418		 * to run (and have re-enabled preemption)
>    419		 */
>    420		return 1;
>    421	}
>    422	
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org


-- 
Masami Hiramatsu <mhiramat@kernel.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-18  0:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17 15:16 [linux-stable-rc:linux-4.19.y 1864/3681] arch/ia64/kernel/kprobes.c:414:17: error: implicit declaration of function '__kretprobe_trampoline_handler'; did you mean kernel test robot
2021-03-18  0:49 ` Masami Hiramatsu

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.