All of lore.kernel.org
 help / color / mirror / Atom feed
* [mcgrof-next:20211123-sysctl-cleanups 41/41] kernel/kprobes.c:2605:9: error: implicit declaration of function 'kprobe_sysctls_init'
@ 2021-11-24 18:46 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-24 18:46 UTC (permalink / raw)
  To: Xiaoming Ni; +Cc: kbuild-all, linux-kernel, Luis Chamberlain

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211123-sysctl-cleanups
head:   c18add41d859b4feec081eab6cfd624a5642973d
commit: c18add41d859b4feec081eab6cfd624a5642973d [41/41] kprobe: move sysctl_kprobes_optimization to kprobes.c
config: arc-randconfig-r025-20211123 (https://download.01.org/0day-ci/archive/20211125/202111250249.S7EcX00x-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 11.2.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/mcgrof/linux-next.git/commit/?id=c18add41d859b4feec081eab6cfd624a5642973d
        git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
        git fetch --no-tags mcgrof-next 20211123-sysctl-cleanups
        git checkout c18add41d859b4feec081eab6cfd624a5642973d
        # save the config file to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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: In function 'init_kprobes':
>> kernel/kprobes.c:2605:9: error: implicit declaration of function 'kprobe_sysctls_init' [-Werror=implicit-function-declaration]
    2605 |         kprobe_sysctls_init();
         |         ^~~~~~~~~~~~~~~~~~~
   In file included from include/linux/perf_event.h:25,
                    from kernel/kprobes.c:41:
   At top level:
   arch/arc/include/asm/perf_event.h:126:27: warning: 'arc_pmu_cache_map' defined but not used [-Wunused-const-variable=]
     126 | static const unsigned int arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
         |                           ^~~~~~~~~~~~~~~~~
   arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=]
      91 | static const char * const arc_pmu_ev_hw_map[] = {
         |                           ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


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

* [mcgrof-next:20211123-sysctl-cleanups 41/41] kernel/kprobes.c:2605:9: error: implicit declaration of function 'kprobe_sysctls_init'
@ 2021-11-24 18:46 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-24 18:46 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211123-sysctl-cleanups
head:   c18add41d859b4feec081eab6cfd624a5642973d
commit: c18add41d859b4feec081eab6cfd624a5642973d [41/41] kprobe: move sysctl_kprobes_optimization to kprobes.c
config: arc-randconfig-r025-20211123 (https://download.01.org/0day-ci/archive/20211125/202111250249.S7EcX00x-lkp(a)intel.com/config)
compiler: arc-elf-gcc (GCC) 11.2.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/mcgrof/linux-next.git/commit/?id=c18add41d859b4feec081eab6cfd624a5642973d
        git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
        git fetch --no-tags mcgrof-next 20211123-sysctl-cleanups
        git checkout c18add41d859b4feec081eab6cfd624a5642973d
        # save the config file to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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: In function 'init_kprobes':
>> kernel/kprobes.c:2605:9: error: implicit declaration of function 'kprobe_sysctls_init' [-Werror=implicit-function-declaration]
    2605 |         kprobe_sysctls_init();
         |         ^~~~~~~~~~~~~~~~~~~
   In file included from include/linux/perf_event.h:25,
                    from kernel/kprobes.c:41:
   At top level:
   arch/arc/include/asm/perf_event.h:126:27: warning: 'arc_pmu_cache_map' defined but not used [-Wunused-const-variable=]
     126 | static const unsigned int arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
         |                           ^~~~~~~~~~~~~~~~~
   arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=]
      91 | static const char * const arc_pmu_ev_hw_map[] = {
         |                           ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


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(a)lists.01.org

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

end of thread, other threads:[~2021-11-24 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-24 18:46 [mcgrof-next:20211123-sysctl-cleanups 41/41] kernel/kprobes.c:2605:9: error: implicit declaration of function 'kprobe_sysctls_init' kernel test robot
2021-11-24 18:46 ` 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.