Re: [PATCH 1/6] kprobes: tracing/kprobes: Fix to kill kprobes on initmem after boot

From: Masami Hiramatsu
Date: Tue Sep 01 2020 - 02:27:08 EST


On Tue, 1 Sep 2020 00:25:58 +0800
kernel test robot <lkp@xxxxxxxxx> wrote:

> Hi Masami,
>
> I love your patch! Yet something to improve:
>
> [auto build test ERROR on tip/perf/core]
> [also build test ERROR on trace/for-next lwn/docs-next linus/master v5.9-rc3 next-20200828]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in
> https://git-scm.com/docs/git-format-patch]
>
> url: https://github.com/0day-ci/linux/commits/Masami-Hiramatsu/tracing-boot-Add-new-options-for-tracing-specific-period/20200831-204738
> base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 2cb5383b30d47c446ec7d884cd80f93ffcc31817
> config: arc-defconfig (attached as .config)
> compiler: arc-elf-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
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> arc-elf-ld: init/main.o: in function `kernel_init':
> >> main.c:(.ref.text+0xa6): undefined reference to `kprobe_free_init_mem'
> >> arc-elf-ld: main.c:(.ref.text+0xa6): undefined reference to `kprobe_free_init_mem'

OK, I missed to put the kprobe_free_init_mem() in the code
depends on CONFIG_DEBUG_FS. I'll move this out.

Thank you,


--
Masami Hiramatsu <mhiramat@xxxxxxxxxx>