From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Cheng Yu <serein.chengyu@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 2673/2673] kernel/sched/bpf_sched.c:213:17: warning: no previous prototype for function 'bpf_sched_set_task_prefer_nid'
Date: Wed, 13 Aug 2025 00:12:58 +0800 [thread overview]
Message-ID: <202508130030.33T0AvPU-lkp@intel.com> (raw)
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: aa3c277f9483def562baa4e43778762d2a8141c2
commit: 4e47cb331dc0bc7e1e2161f946842f9df3f3f44f [2673/2673] sched/ebpf: Add kfunc to set the preferred NUMA node for the task
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250813/202508130030.33T0AvPU-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250813/202508130030.33T0AvPU-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/202508130030.33T0AvPU-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from kernel/sched/build_utility.c:73:
kernel/sched/debug.c:102:12: warning: no previous prototype for function 'is_prefer_numa' [-Wmissing-prototypes]
102 | int __weak is_prefer_numa(void)
| ^
kernel/sched/debug.c:102:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
102 | int __weak is_prefer_numa(void)
| ^
| static
In file included from kernel/sched/build_utility.c:113:
kernel/sched/bpf_sched.c:186:17: warning: no previous prototype for function 'bpf_sched_entity_is_task' [-Wmissing-prototypes]
186 | __bpf_kfunc int bpf_sched_entity_is_task(struct sched_entity *se)
| ^
kernel/sched/bpf_sched.c:186:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
186 | __bpf_kfunc int bpf_sched_entity_is_task(struct sched_entity *se)
| ^
| static
kernel/sched/bpf_sched.c:194:33: warning: no previous prototype for function 'bpf_sched_entity_to_task' [-Wmissing-prototypes]
194 | __bpf_kfunc struct task_struct *bpf_sched_entity_to_task(struct sched_entity *se)
| ^
kernel/sched/bpf_sched.c:194:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
194 | __bpf_kfunc struct task_struct *bpf_sched_entity_to_task(struct sched_entity *se)
| ^
| static
kernel/sched/bpf_sched.c:202:18: warning: no previous prototype for function 'bpf_sched_tag_of_entity' [-Wmissing-prototypes]
202 | __bpf_kfunc long bpf_sched_tag_of_entity(struct sched_entity *se)
| ^
kernel/sched/bpf_sched.c:202:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
202 | __bpf_kfunc long bpf_sched_tag_of_entity(struct sched_entity *se)
| ^
| static
>> kernel/sched/bpf_sched.c:213:17: warning: no previous prototype for function 'bpf_sched_set_task_prefer_nid' [-Wmissing-prototypes]
213 | __bpf_kfunc int bpf_sched_set_task_prefer_nid(struct task_struct *task, int nid)
| ^
kernel/sched/bpf_sched.c:213:13: note: declare 'static' if the function is not intended to be used outside of this translation unit
213 | __bpf_kfunc int bpf_sched_set_task_prefer_nid(struct task_struct *task, int nid)
| ^
| static
5 warnings generated.
vim +/bpf_sched_set_task_prefer_nid +213 kernel/sched/bpf_sched.c
212
> 213 __bpf_kfunc int bpf_sched_set_task_prefer_nid(struct task_struct *task, int nid)
214 {
215 if (!task)
216 return -EINVAL;
217
218 if ((unsigned int)nid >= nr_node_ids)
219 return -EINVAL;
220
221 return set_prefer_cpus_ptr(task, cpumask_of_node(nid));
222 }
223
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-08-12 16:13 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=202508130030.33T0AvPU-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=serein.chengyu@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.