* [rgushchin:bpfsched.rfc 3/7] kernel/sched/bpf_sched.c:71:10: error: implicit declaration of function 'task_dfl_cgroup'
@ 2021-09-15 11:35 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-15 11:35 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3296 bytes --]
tree: https://github.com/rgushchin/linux.git bpfsched.rfc
head: f4c466accae6c27a4fbece80f8cec431f685a20c
commit: 1bd61b2c1899a1a9e8ba44e9ac2958dea9847d82 [3/7] bpf: sched: add convenient helpers to identify sched entities
config: hexagon-randconfig-r002-20210915 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 8cbbd7e0b2aa21ce7e416cfb63d9965518948c35)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/rgushchin/linux/commit/1bd61b2c1899a1a9e8ba44e9ac2958dea9847d82
git remote add rgushchin https://github.com/rgushchin/linux.git
git fetch --no-tags rgushchin bpfsched.rfc
git checkout 1bd61b2c1899a1a9e8ba44e9ac2958dea9847d82
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
>> kernel/sched/bpf_sched.c:71:10: error: implicit declaration of function 'task_dfl_cgroup' [-Werror,-Wimplicit-function-declaration]
cgrp = task_dfl_cgroup(task_of(se));
^
kernel/sched/bpf_sched.c:71:10: note: did you mean 'task_group'?
kernel/sched/sched.h:1912:34: note: 'task_group' declared here
static inline struct task_group *task_group(struct task_struct *p)
^
>> kernel/sched/bpf_sched.c:71:8: warning: incompatible integer to pointer conversion assigning to 'struct cgroup *' from 'int' [-Wint-conversion]
cgrp = task_dfl_cgroup(task_of(se));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/bpf_sched.c:77:19: error: incomplete definition of type 'struct cgroup'
for (level = cgrp->level; level; level--)
~~~~^
include/linux/sched/task.h:35:9: note: forward declaration of 'struct cgroup'
struct cgroup *cgrp;
^
kernel/sched/bpf_sched.c:78:11: error: incomplete definition of type 'struct cgroup'
if (cgrp->ancestor_ids[level] == cgrpid)
~~~~^
include/linux/sched/task.h:35:9: note: forward declaration of 'struct cgroup'
struct cgroup *cgrp;
^
1 warning and 3 errors generated.
vim +/task_dfl_cgroup +71 kernel/sched/bpf_sched.c
63
64 BPF_CALL_2(bpf_sched_entity_belongs_to_cgrp, struct sched_entity *, se,
65 u64, cgrpid)
66 {
67 struct cgroup *cgrp;
68 int level;
69
70 if (entity_is_task(se))
> 71 cgrp = task_dfl_cgroup(task_of(se));
72 #ifdef CONFIG_FAIR_GROUP_SCHED
73 else
74 cgrp = se->cfs_rq->tg->css.cgroup;
75 #endif
76
> 77 for (level = cgrp->level; level; level--)
78 if (cgrp->ancestor_ids[level] == cgrpid)
79 return 1;
80
81 return 0;
82 }
83
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27225 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-15 11:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 11:35 [rgushchin:bpfsched.rfc 3/7] kernel/sched/bpf_sched.c:71:10: error: implicit declaration of function 'task_dfl_cgroup' 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.