From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android14-6.1 20143/20147] kernel/sched/rt.c:1647:6: warning: no previous prototype for function 'cpu_busy_with_softirqs'
Date: Thu, 4 Apr 2024 11:59:57 +0800 [thread overview]
Message-ID: <202404041114.MiHCeriw-lkp@intel.com> (raw)
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
reply other threads:[~2024-04-04 4:00 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=202404041114.MiHCeriw-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.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.