All of lore.kernel.org
 help / color / mirror / Atom feed
* [rgushchin:bpfsched.rfc 3/7] kernel/sched/bpf_sched.c:71:24: error: implicit declaration of function 'task_dfl_cgroup'; did you mean 'task_group'?
@ 2021-09-15 10:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-15 10:42 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2906 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: sparc64-randconfig-r036-20210915 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 11.2.0
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=gcc-11.2.0 make.cross ARCH=sparc64 

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: In function '____bpf_sched_entity_belongs_to_cgrp':
>> kernel/sched/bpf_sched.c:71:24: error: implicit declaration of function 'task_dfl_cgroup'; did you mean 'task_group'? [-Werror=implicit-function-declaration]
      71 |                 cgrp = task_dfl_cgroup(task_of(se));
         |                        ^~~~~~~~~~~~~~~
         |                        task_group
>> kernel/sched/bpf_sched.c:71:22: warning: assignment to 'struct cgroup *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
      71 |                 cgrp = task_dfl_cgroup(task_of(se));
         |                      ^
>> kernel/sched/bpf_sched.c:77:26: error: invalid use of undefined type 'struct cgroup'
      77 |         for (level = cgrp->level; level; level--)
         |                          ^~
   kernel/sched/bpf_sched.c:78:25: error: invalid use of undefined type 'struct cgroup'
      78 |                 if (cgrp->ancestor_ids[level] == cgrpid)
         |                         ^~
   cc1: some warnings being treated as errors


vim +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: 34009 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-15 10:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 10:42 [rgushchin:bpfsched.rfc 3/7] kernel/sched/bpf_sched.c:71:24: error: implicit declaration of function 'task_dfl_cgroup'; did you mean 'task_group'? 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.