[openeuler:OLK-6.6 2320/2320] kernel/cgroup/cpuset.c:5211:28: warning: no previous prototype for 'bpf_cpuset_from_task'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 9a55d4a78730623072ee5a82518e7c094296b8b6 commit: 0999aa9df88739a011ba52243082a87402942223 [2320/2320] bpf: cpuset: Add bpf_cpuset_from_task() kfunc config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250528/202505281528.FWgbJLUK-lkp@i...) compiler: loongarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250528/202505281528.FWgbJLUK-lkp@i...) 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/202505281528.FWgbJLUK-lkp@intel.com/ All warnings (new ones prefixed by >>):
kernel/cgroup/cpuset.c:5211:28: warning: no previous prototype for 'bpf_cpuset_from_task' [-Wmissing-prototypes] 5211 | __bpf_kfunc struct cpuset *bpf_cpuset_from_task(struct task_struct *task) | ^~~~~~~~~~~~~~~~~~~~
vim +/bpf_cpuset_from_task +5211 kernel/cgroup/cpuset.c 5209 5210 #ifdef CONFIG_BPF_RVI
5211 __bpf_kfunc struct cpuset *bpf_cpuset_from_task(struct task_struct *task) 5212 { 5213 if (!task) 5214 return NULL; 5215 return task_cs(task); 5216 } 5217
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot