From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Zheng Zengkai <zhengzengkai@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-5.10 2985/2985] kernel/watchdog_hld.c:502:12: warning: no previous prototype for function '__hardlockup_detector_perf_init'
Date: Sun, 29 Jun 2025 03:07:02 +0200 [thread overview]
Message-ID: <202506290345.5mLGiKER-lkp@intel.com> (raw)
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: c245365237da527fb423d85e7ec54648113f843d
commit: 364de98eacea8dbfe4f926f62085aebf8534f403 [2985/2985] watchdog: Fix sleeping function called from atomic context
config: x86_64-buildonly-randconfig-2004-20250626 (https://download.01.org/0day-ci/archive/20250629/202506290345.5mLGiKER-lkp@intel.com/config)
compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250629/202506290345.5mLGiKER-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506290345.5mLGiKER-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/watchdog_hld.c:502:12: warning: no previous prototype for function '__hardlockup_detector_perf_init' [-Wmissing-prototypes]
502 | int __init __hardlockup_detector_perf_init(void *not_used)
| ^
kernel/watchdog_hld.c:502:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
502 | int __init __hardlockup_detector_perf_init(void *not_used)
| ^
| static
1 warning generated.
vim +/__hardlockup_detector_perf_init +502 kernel/watchdog_hld.c
501
> 502 int __init __hardlockup_detector_perf_init(void *not_used)
503 {
504 int ret = hardlockup_detector_event_create();
505
506 if (ret) {
507 pr_info("Perf NMI watchdog permanently disabled\n");
508 } else {
509 perf_event_release_kernel(this_cpu_read(watchdog_ev));
510 this_cpu_write(watchdog_ev, NULL);
511 }
512 return ret;
513 }
514
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-06-29 1:07 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=202506290345.5mLGiKER-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=zhengzengkai@huawei.com \
/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.