* [android-common:android14-6.1 20143/20147] kernel/sched/rt.c:1647:6: warning: no previous prototype for function 'cpu_busy_with_softirqs'
@ 2024-04-04 3:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-04 3:59 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android14-6.1
head: 5dd0c4814fa5d61e0944fccd38547e6cb94635eb
commit: dcdec80d6bb8a786f5d5b24b4af51e0e15c534a9 [20143/20147] ANDROID: Export cpu_busy_with_softirqs()
config: arm-defconfig (https://download.01.org/0day-ci/archive/20240404/202404041114.MiHCeriw-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240404/202404041114.MiHCeriw-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/202404041114.MiHCeriw-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from kernel/sched/build_policy.c:45:
>> kernel/sched/rt.c:1647:6: warning: no previous prototype for function 'cpu_busy_with_softirqs' [-Wmissing-prototypes]
bool cpu_busy_with_softirqs(int cpu)
^
kernel/sched/rt.c:1647:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool cpu_busy_with_softirqs(int cpu)
^
static
In file included from kernel/sched/build_policy.c:49:
kernel/sched/pelt.c:182:1: warning: no previous prototype for function '___update_load_sum' [-Wmissing-prototypes]
___update_load_sum(u64 now, struct sched_avg *sa,
^
kernel/sched/pelt.c:181:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int
^
static
kernel/sched/pelt.c:262:1: warning: no previous prototype for function '___update_load_avg' [-Wmissing-prototypes]
___update_load_avg(struct sched_avg *sa, unsigned long load)
^
kernel/sched/pelt.c:261:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
kernel/sched/pelt.c:484:5: warning: no previous prototype for function 'sched_pelt_multiplier' [-Wmissing-prototypes]
int sched_pelt_multiplier(struct ctl_table *table, int write, void *buffer,
^
kernel/sched/pelt.c:484:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_pelt_multiplier(struct ctl_table *table, int write, void *buffer,
^
static
4 warnings generated.
vim +/cpu_busy_with_softirqs +1647 kernel/sched/rt.c
1631
1632 #ifdef CONFIG_RT_SOFTIRQ_AWARE_SCHED
1633 /*
1634 * Return whether the given cpu is currently non-preemptible
1635 * while handling a potentially long softirq, or if the current
1636 * task is likely to block preemptions soon because it is a
1637 * ksoftirq thread that is handling softirqs.
1638 */
1639 bool cpu_busy_with_softirqs(int cpu)
1640 {
1641 u32 softirqs = per_cpu(active_softirqs, cpu) |
1642 __cpu_softirq_pending(cpu);
1643
1644 return softirqs & LONG_SOFTIRQ_MASK;
1645 }
1646 #else
> 1647 bool cpu_busy_with_softirqs(int cpu)
1648 {
1649 return false;
1650 }
1651 #endif /* CONFIG_RT_SOFTIRQ_AWARE_SCHED */
1652 EXPORT_SYMBOL_GPL(cpu_busy_with_softirqs);
1653
--
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:[~2024-04-04 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-04 3:59 [android-common:android14-6.1 20143/20147] kernel/sched/rt.c:1647:6: warning: no previous prototype for function 'cpu_busy_with_softirqs' 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.