All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH RFC bpf-next v2 3/5] bpf: cgroup_view iter
Date: Wed, 02 Feb 2022 09:17:41 +0800	[thread overview]
Message-ID: <202202020906.kAc8RBeZ-lkp@intel.com> (raw)
In-Reply-To: <20220201205534.1962784-4-haoluo@google.com>

[-- Attachment #1: Type: text/plain, Size: 4148 bytes --]

Hi Hao,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on bpf-next/master]

url:    https://github.com/0day-ci/linux/commits/Hao-Luo/Extend-cgroup-interface-with-bpf/20220202-045743
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: m68k-defconfig (https://download.01.org/0day-ci/archive/20220202/202202020906.kAc8RBeZ-lkp(a)intel.com/config)
compiler: m68k-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/0day-ci/linux/commit/717a4c31e5bc20e5c7abf8c78a8c434fb15788a3
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Hao-Luo/Extend-cgroup-interface-with-bpf/20220202-045743
        git checkout 717a4c31e5bc20e5c7abf8c78a8c434fb15788a3
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   kernel/bpf/cgroup_view_iter.c: In function 'cgroup_view_seq_start':
>> kernel/bpf/cgroup_view_iter.c:32:25: error: implicit declaration of function 'cgroup_tryget'; did you mean 'cgroup_bpf_get'? [-Werror=implicit-function-declaration]
      32 |         if (!cgroup || !cgroup_tryget(cgroup))
         |                         ^~~~~~~~~~~~~
         |                         cgroup_bpf_get
   kernel/bpf/cgroup_view_iter.c: In function 'cgroup_view_seq_stop':
>> kernel/bpf/cgroup_view_iter.c:77:17: error: implicit declaration of function 'cgroup_put'; did you mean 'cgroup_psi'? [-Werror=implicit-function-declaration]
      77 |                 cgroup_put(v);
         |                 ^~~~~~~~~~
         |                 cgroup_psi
   cc1: some warnings being treated as errors


vim +32 kernel/bpf/cgroup_view_iter.c

    11	
    12	static void *cgroup_view_seq_start(struct seq_file *seq, loff_t *pos)
    13	{
    14		struct bpf_dir_tag *tag;
    15		struct kernfs_node *kn;
    16		struct cgroup *cgroup;
    17		struct inode *dir;
    18	
    19		/* Only one session is supported. */
    20		if (*pos > 0)
    21			return NULL;
    22	
    23		dir = d_inode(seq->file->f_path.dentry->d_parent);
    24		tag = dir->i_private;
    25		if (!tag)
    26			return NULL;
    27	
    28		kn = tag->private;
    29	
    30		rcu_read_lock();
    31		cgroup = rcu_dereference(*(void __rcu __force **)&kn->priv);
  > 32		if (!cgroup || !cgroup_tryget(cgroup))
    33			cgroup = NULL;
    34		rcu_read_unlock();
    35	
    36		if (!cgroup)
    37			return NULL;
    38	
    39		if (*pos == 0)
    40			++*pos;
    41		return cgroup;
    42	}
    43	
    44	static void *cgroup_view_seq_next(struct seq_file *seq, void *v, loff_t *pos)
    45	{
    46		++*pos;
    47		return NULL;
    48	}
    49	
    50	struct bpf_iter__cgroup_view {
    51		__bpf_md_ptr(struct bpf_iter_meta *, meta);
    52		__bpf_md_ptr(struct cgroup *, cgroup);
    53	};
    54	
    55	DEFINE_BPF_ITER_FUNC(cgroup_view, struct bpf_iter_meta *meta, struct cgroup *cgroup)
    56	
    57	static int cgroup_view_seq_show(struct seq_file *seq, void *v)
    58	{
    59		struct bpf_iter__cgroup_view ctx;
    60		struct bpf_iter_meta meta;
    61		struct bpf_prog *prog;
    62		int ret = 0;
    63	
    64		ctx.meta = &meta;
    65		ctx.cgroup = v;
    66		meta.seq = seq;
    67		prog = bpf_iter_get_info(&meta, false);
    68		if (prog)
    69			ret = bpf_iter_run_prog(prog, &ctx);
    70	
    71		return ret;
    72	}
    73	
    74	static void cgroup_view_seq_stop(struct seq_file *seq, void *v)
    75	{
    76		if (v)
  > 77			cgroup_put(v);
    78	}
    79	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

  reply	other threads:[~2022-02-02  1:17 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-01 20:55 [PATCH RFC bpf-next v2 0/5] Extend cgroup interface with bpf Hao Luo
2022-02-01 20:55 ` [PATCH RFC bpf-next v2 1/5] bpf: Bpffs directory tag Hao Luo
2022-02-01 20:55 ` [PATCH RFC bpf-next v2 2/5] bpf: Introduce inherit list for dir tag Hao Luo
2022-02-01 20:55 ` [PATCH RFC bpf-next v2 3/5] bpf: cgroup_view iter Hao Luo
2022-02-02  1:17   ` kernel test robot [this message]
2022-02-02  3:39   ` kernel test robot
2022-02-02  3:39     ` kernel test robot
2022-02-01 20:55 ` [PATCH RFC bpf-next v2 4/5] bpf: Pin cgroup_view Hao Luo
2022-02-02  4:20   ` kernel test robot
2022-02-02  5:11   ` kernel test robot
2022-02-02  5:11     ` kernel test robot
2022-02-01 20:55 ` [PATCH RFC bpf-next v2 5/5] selftests/bpf: test for pinning for cgroup_view link Hao Luo
2022-02-03 18:04   ` Alexei Starovoitov
2022-02-03 22:46     ` Hao Luo
2022-02-04  3:33       ` Alexei Starovoitov
2022-02-04 18:26         ` Hao Luo
2022-02-06  4:29           ` Alexei Starovoitov
2022-02-08 20:07             ` Hao Luo
2022-02-08 21:20               ` Alexei Starovoitov
2022-02-08 21:34                 ` Hao Luo
2022-02-14 18:29                 ` Hao Luo
2022-02-14 19:24                   ` Alexei Starovoitov
2022-02-14 20:23                     ` Hao Luo
2022-02-14 20:27                       ` Alexei Starovoitov
2022-02-14 20:39                         ` Hao Luo
  -- strict thread matches above, loose matches on Subject: below --
2022-02-02  9:15 [PATCH RFC bpf-next v2 2/5] bpf: Introduce inherit list for dir tag kernel test robot
2022-02-02  9:32 ` Dan Carpenter

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=202202020906.kAc8RBeZ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.