mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [mcgrof-next:20211124-sysctl-cleanups-v2 41/41] kernel/kprobes.c:2605:2: error: implicit declaration of function 'kprobe_sysctls_init'
@ 2021-11-27  6:48 kernel test robot
  2021-11-29 20:12 ` Luis Chamberlain
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-11-27  6:48 UTC (permalink / raw)
  To: Xiaoming Ni; +Cc: llvm, kbuild-all, linux-kernel, Luis Chamberlain

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211124-sysctl-cleanups-v2
head:   c66aee3b7120f4a5f1d40cc9109dcf684643cc17
commit: c66aee3b7120f4a5f1d40cc9109dcf684643cc17 [41/41] kprobe: move sysctl_kprobes_optimization to kprobes.c
config: arm64-randconfig-r006-20211126 (https://download.01.org/0day-ci/archive/20211127/202111271451.VDtFz59Q-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5162b558d8c0b542e752b037e72a69d5fd51eb1e)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/commit/?id=c66aee3b7120f4a5f1d40cc9109dcf684643cc17
        git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
        git fetch --no-tags mcgrof-next 20211124-sysctl-cleanups-v2
        git checkout c66aee3b7120f4a5f1d40cc9109dcf684643cc17
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash

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 >>):

>> kernel/kprobes.c:2605:2: error: implicit declaration of function 'kprobe_sysctls_init' [-Werror,-Wimplicit-function-declaration]
           kprobe_sysctls_init();
           ^
   1 error generated.


vim +/kprobe_sysctls_init +2605 kernel/kprobes.c

  2597	
  2598		err = arch_init_kprobes();
  2599		if (!err)
  2600			err = register_die_notifier(&kprobe_exceptions_nb);
  2601		if (!err)
  2602			err = register_module_notifier(&kprobe_module_nb);
  2603	
  2604		kprobes_initialized = (err == 0);
> 2605		kprobe_sysctls_init();
  2606		return err;
  2607	}
  2608	early_initcall(init_kprobes);
  2609	

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

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

* Re: [mcgrof-next:20211124-sysctl-cleanups-v2 41/41] kernel/kprobes.c:2605:2: error: implicit declaration of function 'kprobe_sysctls_init'
  2021-11-27  6:48 [mcgrof-next:20211124-sysctl-cleanups-v2 41/41] kernel/kprobes.c:2605:2: error: implicit declaration of function 'kprobe_sysctls_init' kernel test robot
@ 2021-11-29 20:12 ` Luis Chamberlain
  0 siblings, 0 replies; 2+ messages in thread
From: Luis Chamberlain @ 2021-11-29 20:12 UTC (permalink / raw)
  To: kernel test robot; +Cc: Xiaoming Ni, llvm, kbuild-all, linux-kernel

On Sat, Nov 27, 2021 at 02:48:14PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211124-sysctl-cleanups-v2
> head:   c66aee3b7120f4a5f1d40cc9109dcf684643cc17
> commit: c66aee3b7120f4a5f1d40cc9109dcf684643cc17 [41/41] kprobe: move sysctl_kprobes_optimization to kprobes.c
> config: arm64-randconfig-r006-20211126 (https://download.01.org/0day-ci/archive/20211127/202111271451.VDtFz59Q-lkp@intel.com/config)
> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5162b558d8c0b542e752b037e72a69d5fd51eb1e)
> 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
>         # install arm64 cross compiling tool for clang build
>         # apt-get install binutils-aarch64-linux-gnu
>         # https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/commit/?id=c66aee3b7120f4a5f1d40cc9109dcf684643cc17
>         git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
>         git fetch --no-tags mcgrof-next 20211124-sysctl-cleanups-v2
>         git checkout c66aee3b7120f4a5f1d40cc9109dcf684643cc17
>         # save the config file to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash
> 
> 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 >>):
> 
> >> kernel/kprobes.c:2605:2: error: implicit declaration of function 'kprobe_sysctls_init' [-Werror,-Wimplicit-function-declaration]
>            kprobe_sysctls_init();
>            ^
>    1 error generated.

Fixed.

  Luis

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

end of thread, other threads:[~2021-11-29 22:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-27  6:48 [mcgrof-next:20211124-sysctl-cleanups-v2 41/41] kernel/kprobes.c:2605:2: error: implicit declaration of function 'kprobe_sysctls_init' kernel test robot
2021-11-29 20:12 ` Luis Chamberlain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®