All of lore.kernel.org
 help / color / mirror / Atom feed
* [chenhuacai-loongson:loongarch-next 4/16] arch/loongarch/kernel/hw_breakpoint.c:483:12: warning: no previous prototype for 'arch_hw_breakpoint_init'
@ 2023-02-21 15:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-21 15:27 UTC (permalink / raw)
  To: Qing Zhang; +Cc: oe-kbuild-all, Huacai Chen

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git loongarch-next
head:   360d80e15dc47f8892dd09e6bff3a7f1e9aa8fb4
commit: cf9b56699e6fcf664a510afc951cf82f1211b5a2 [4/16] LoongArch: Add hardware breakpoints/watchpoints support
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20230221/202302212345.KeDXResr-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.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/chenhuacai/linux-loongson.git/commit/?id=cf9b56699e6fcf664a510afc951cf82f1211b5a2
        git remote add chenhuacai-loongson https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson.git
        git fetch --no-tags chenhuacai-loongson loongarch-next
        git checkout cf9b56699e6fcf664a510afc951cf82f1211b5a2
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash arch/loongarch/kernel/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302212345.KeDXResr-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/loongarch/kernel/hw_breakpoint.c:483:12: warning: no previous prototype for 'arch_hw_breakpoint_init' [-Wmissing-prototypes]
     483 | int __init arch_hw_breakpoint_init(void)
         |            ^~~~~~~~~~~~~~~~~~~~~~~


vim +/arch_hw_breakpoint_init +483 arch/loongarch/kernel/hw_breakpoint.c

   482	
 > 483	int __init arch_hw_breakpoint_init(void)
   484	{
   485		int cpu;
   486	
   487		boot_cpu_data.watch_ireg_count = get_num_brps();
   488		boot_cpu_data.watch_dreg_count = get_num_wrps();
   489	
   490		pr_info("Found %d breakpoint and %d watchpoint registers.\n",
   491			boot_cpu_data.watch_ireg_count, boot_cpu_data.watch_dreg_count);
   492	
   493		for (cpu = 1; cpu < NR_CPUS; cpu++) {
   494			cpu_data[cpu].watch_ireg_count = boot_cpu_data.watch_ireg_count;
   495			cpu_data[cpu].watch_dreg_count = boot_cpu_data.watch_dreg_count;
   496		}
   497	
   498		return 0;
   499	}
   500	arch_initcall(arch_hw_breakpoint_init);
   501	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

only message in thread, other threads:[~2023-02-21 15:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-21 15:27 [chenhuacai-loongson:loongarch-next 4/16] arch/loongarch/kernel/hw_breakpoint.c:483:12: warning: no previous prototype for 'arch_hw_breakpoint_init' 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.