From: kernel test robot <lkp@intel.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [mark:sched/preempt-dynamic-optimizations 1/1] kernel/sched/core.c:7455:13: warning: no previous prototype for 'dynamic_cond_resched'
Date: Wed, 25 Feb 2026 21:31:21 +0800 [thread overview]
Message-ID: <202602252143.hft7gnDD-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git sched/preempt-dynamic-optimizations
head: 16adb0d62633d31709c26ea63ab9de6ec1bbdf4e
commit: 16adb0d62633d31709c26ea63ab9de6ec1bbdf4e [1/1] sched: Avoid generating cond_resched() code when CONFIG_ARCH_HAS_PREEMPT_LAZY=y
config: loongarch-randconfig-001-20260225 (https://download.01.org/0day-ci/archive/20260225/202602252143.hft7gnDD-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260225/202602252143.hft7gnDD-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/202602252143.hft7gnDD-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/sched/core.c:7455:13: warning: no previous prototype for 'dynamic_cond_resched' [-Wmissing-prototypes]
7455 | int __sched dynamic_cond_resched(void)
| ^~~~~~~~~~~~~~~~~~~~
vim +/dynamic_cond_resched +7455 kernel/sched/core.c
48f24c4da1ee7f3 kernel/sched.c Ingo Molnar 2006-07-03 7448
04746ed80bcf313 kernel/sched/core.c Ingo Molnar 2024-04-07 7449 # define might_resched_dynamic_enabled __cond_resched
04746ed80bcf313 kernel/sched/core.c Ingo Molnar 2024-04-07 7450 # define might_resched_dynamic_disabled ((void *)&__static_call_return0)
04746ed80bcf313 kernel/sched/core.c Ingo Molnar 2024-04-07 7451 DEFINE_STATIC_CALL_RET0(might_resched, __cond_resched);
04746ed80bcf313 kernel/sched/core.c Ingo Molnar 2024-04-07 7452 EXPORT_STATIC_CALL_TRAMP(might_resched);
04746ed80bcf313 kernel/sched/core.c Ingo Molnar 2024-04-07 7453 # elif defined(CONFIG_HAVE_PREEMPT_DYNAMIC_KEY)
04746ed80bcf313 kernel/sched/core.c Ingo Molnar 2024-04-07 7454 static DEFINE_STATIC_KEY_FALSE(sk_dynamic_cond_resched);
04746ed80bcf313 kernel/sched/core.c Ingo Molnar 2024-04-07 @7455 int __sched dynamic_cond_resched(void)
04746ed80bcf313 kernel/sched/core.c Ingo Molnar 2024-04-07 7456 {
04746ed80bcf313 kernel/sched/core.c Ingo Molnar 2024-04-07 7457 if (!static_branch_unlikely(&sk_dynamic_cond_resched))
04746ed80bcf313 kernel/sched/core.c Ingo Molnar 2024-04-07 7458 return 0;
04746ed80bcf313 kernel/sched/core.c Ingo Molnar 2024-04-07 7459 return __cond_resched();
700a78335fc28a5 kernel/sched/core.c Christian Göttsche 2022-06-15 7460 }
04746ed80bcf313 kernel/sched/core.c Ingo Molnar 2024-04-07 7461 EXPORT_SYMBOL(dynamic_cond_resched);
700a78335fc28a5 kernel/sched/core.c Christian Göttsche 2022-06-15 7462
:::::: The code at line 7455 was first introduced by commit
:::::: 04746ed80bcf3130951ed4d5c1bc5b0bcabdde22 sched/syscalls: Split out kernel/sched/syscalls.c from kernel/sched/core.c
:::::: TO: Ingo Molnar <mingo@kernel.org>
:::::: CC: Ingo Molnar <mingo@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-02-25 13:32 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=202602252143.hft7gnDD-lkp@intel.com \
--to=lkp@intel.com \
--cc=mark.rutland@arm.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.