From: kernel test robot <lkp@intel.com>
To: Qing Zhang <zhangqing@loongson.cn>
Cc: oe-kbuild-all@lists.linux.dev, Huacai Chen <chenhuacai@kernel.org>
Subject: [chenhuacai-loongson:loongarch-next 4/16] arch/loongarch/kernel/hw_breakpoint.c:483:12: warning: no previous prototype for 'arch_hw_breakpoint_init'
Date: Tue, 21 Feb 2023 23:27:04 +0800 [thread overview]
Message-ID: <202302212345.KeDXResr-lkp@intel.com> (raw)
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
reply other threads:[~2023-02-21 15:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202302212345.KeDXResr-lkp@intel.com \
--to=lkp@intel.com \
--cc=chenhuacai@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=zhangqing@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.