All of lore.kernel.org
 help / color / mirror / Atom feed
* [mark:sched/preempt-dynamic-optimizations 1/1] kernel/sched/core.c:7455:13: warning: no previous prototype for 'dynamic_cond_resched'
@ 2026-02-25 13:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-25 13:31 UTC (permalink / raw)
  To: Mark Rutland; +Cc: oe-kbuild-all

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

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

only message in thread, other threads:[~2026-02-25 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-25 13:31 [mark:sched/preempt-dynamic-optimizations 1/1] kernel/sched/core.c:7455:13: warning: no previous prototype for 'dynamic_cond_resched' 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.