From: kernel test robot <lkp@intel.com>
To: Yonghong Song <yonghong.song@linux.dev>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH bpf-next 1/4] cgroup: Add bpf prog revisions to struct cgroup_bpf
Date: Sat, 12 Apr 2025 08:41:54 +0800 [thread overview]
Message-ID: <202504120853.I4bFTHhG-lkp@intel.com> (raw)
In-Reply-To: <20250411011528.1839359-1-yonghong.song@linux.dev>
Hi Yonghong,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on bpf-next/master]
url: https://github.com/intel-lab-lkp/linux/commits/Yonghong-Song/cgroup-Add-bpf-prog-revisions-to-struct-cgroup_bpf/20250411-091743
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link: https://lore.kernel.org/r/20250411011528.1839359-1-yonghong.song%40linux.dev
patch subject: [RFC PATCH bpf-next 1/4] cgroup: Add bpf prog revisions to struct cgroup_bpf
config: x86_64-buildonly-randconfig-001-20250412 (https://download.01.org/0day-ci/archive/20250412/202504120853.I4bFTHhG-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250412/202504120853.I4bFTHhG-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/202504120853.I4bFTHhG-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:16,
from include/linux/cpumask.h:11,
from arch/x86/include/asm/tlbbatch.h:5,
from include/linux/mm_types_task.h:17,
from include/linux/sched.h:38,
from include/linux/cgroup.h:12,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
kernel/cgroup/cgroup.c: In function 'init_cgroup_housekeeping':
>> kernel/cgroup/cgroup.c:2074:45: error: 'struct cgroup_bpf' has no member named 'revisions'
2074 | for (i = 0; i < ARRAY_SIZE(cgrp->bpf.revisions); i++)
| ^
include/linux/array_size.h:11:33: note: in definition of macro 'ARRAY_SIZE'
11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~
>> kernel/cgroup/cgroup.c:2074:45: error: 'struct cgroup_bpf' has no member named 'revisions'
2074 | for (i = 0; i < ARRAY_SIZE(cgrp->bpf.revisions); i++)
| ^
include/linux/array_size.h:11:48: note: in definition of macro 'ARRAY_SIZE'
11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~
In file included from include/linux/build_bug.h:5,
from arch/x86/include/asm/current.h:5,
from include/linux/sched.h:12:
>> kernel/cgroup/cgroup.c:2074:45: error: 'struct cgroup_bpf' has no member named 'revisions'
2074 | for (i = 0; i < ARRAY_SIZE(cgrp->bpf.revisions); i++)
| ^
include/linux/compiler.h:197:79: note: in definition of macro '__BUILD_BUG_ON_ZERO_MSG'
197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
| ^
include/linux/compiler.h:201:35: note: in expansion of macro '__same_type'
201 | #define __is_array(a) (!__same_type((a), &(a)[0]))
| ^~~~~~~~~~~
include/linux/compiler.h:202:58: note: in expansion of macro '__is_array'
202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
| ^~~~~~~~~~
include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
kernel/cgroup/cgroup.c:2074:25: note: in expansion of macro 'ARRAY_SIZE'
2074 | for (i = 0; i < ARRAY_SIZE(cgrp->bpf.revisions); i++)
| ^~~~~~~~~~
>> kernel/cgroup/cgroup.c:2074:45: error: 'struct cgroup_bpf' has no member named 'revisions'
2074 | for (i = 0; i < ARRAY_SIZE(cgrp->bpf.revisions); i++)
| ^
include/linux/compiler.h:197:79: note: in definition of macro '__BUILD_BUG_ON_ZERO_MSG'
197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
| ^
include/linux/compiler.h:201:35: note: in expansion of macro '__same_type'
201 | #define __is_array(a) (!__same_type((a), &(a)[0]))
| ^~~~~~~~~~~
include/linux/compiler.h:202:58: note: in expansion of macro '__is_array'
202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
| ^~~~~~~~~~
include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
kernel/cgroup/cgroup.c:2074:25: note: in expansion of macro 'ARRAY_SIZE'
2074 | for (i = 0; i < ARRAY_SIZE(cgrp->bpf.revisions); i++)
| ^~~~~~~~~~
include/linux/compiler.h:197:77: error: expression in static assertion is not an integer
197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
| ^
include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
202 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
kernel/cgroup/cgroup.c:2074:25: note: in expansion of macro 'ARRAY_SIZE'
2074 | for (i = 0; i < ARRAY_SIZE(cgrp->bpf.revisions); i++)
| ^~~~~~~~~~
kernel/cgroup/cgroup.c:2075:40: error: 'struct cgroup_bpf' has no member named 'revisions'
2075 | atomic64_set(&cgrp->bpf.revisions[i], 1);
| ^
vim +2074 kernel/cgroup/cgroup.c
2052
2053 static void init_cgroup_housekeeping(struct cgroup *cgrp)
2054 {
2055 struct cgroup_subsys *ss;
2056 int i, ssid;
2057
2058 INIT_LIST_HEAD(&cgrp->self.sibling);
2059 INIT_LIST_HEAD(&cgrp->self.children);
2060 INIT_LIST_HEAD(&cgrp->cset_links);
2061 INIT_LIST_HEAD(&cgrp->pidlists);
2062 mutex_init(&cgrp->pidlist_mutex);
2063 cgrp->self.cgroup = cgrp;
2064 cgrp->self.flags |= CSS_ONLINE;
2065 cgrp->dom_cgrp = cgrp;
2066 cgrp->max_descendants = INT_MAX;
2067 cgrp->max_depth = INT_MAX;
2068 INIT_LIST_HEAD(&cgrp->rstat_css_list);
2069 prev_cputime_init(&cgrp->prev_cputime);
2070
2071 for_each_subsys(ss, ssid)
2072 INIT_LIST_HEAD(&cgrp->e_csets[ssid]);
2073
> 2074 for (i = 0; i < ARRAY_SIZE(cgrp->bpf.revisions); i++)
2075 atomic64_set(&cgrp->bpf.revisions[i], 1);
2076
2077 init_waitqueue_head(&cgrp->offline_waitq);
2078 INIT_WORK(&cgrp->release_agent_work, cgroup1_release_agent);
2079 }
2080
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-04-12 0:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-11 1:15 [RFC PATCH bpf-next 0/4] bpf: Implement mprog API on top of existing cgroup progs Yonghong Song
2025-04-11 1:15 ` [RFC PATCH bpf-next 1/4] cgroup: Add bpf prog revisions to struct cgroup_bpf Yonghong Song
2025-04-12 0:41 ` kernel test robot [this message]
2025-05-08 4:18 ` Yonghong Song
2025-04-12 1:13 ` kernel test robot
2025-04-23 23:19 ` Andrii Nakryiko
2025-05-08 4:19 ` Yonghong Song
2025-04-11 1:15 ` [RFC PATCH bpf-next 2/4] bpf: Implement mprog API on top of existing cgroup progs Yonghong Song
2025-04-23 23:19 ` Andrii Nakryiko
2025-05-08 4:42 ` Yonghong Song
2025-04-11 1:15 ` [RFC PATCH bpf-next 3/4] libbpf: Support link-based cgroup attach with options Yonghong Song
2025-04-11 1:15 ` [RFC PATCH bpf-next 4/4] selftests/bpf: Add two selftests for mprog API based cgroup progs Yonghong Song
2025-04-23 23:20 ` [RFC PATCH bpf-next 0/4] bpf: Implement mprog API on top of existing " Andrii Nakryiko
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=202504120853.I4bFTHhG-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yonghong.song@linux.dev \
/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.