From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [rgushchin:bpfoom.3.1 28/28] kernel/bpf/bpf_struct_ops.c:1211:21: error: incompatible pointer types passing 'struct bpf_struct_ops_link *' to parameter of type 'struct bpf_struct_st_link *'
Date: Tue, 2 Dec 2025 20:10:55 +0100 [thread overview]
Message-ID: <202512022023.eTYc5Xdy-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "low confidence bisect report"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Roman Gushchin <roman.gushchin@linux.dev>
tree: https://github.com/rgushchin/linux.git bpfoom.3.1
head: dca9f586d5471222d105b51cf2ceb5eb91fdda01
commit: dca9f586d5471222d105b51cf2ceb5eb91fdda01 [28/28] tmp
:::::: branch date: 17 hours ago
:::::: commit date: 17 hours ago
config: i386-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251202/202512022023.eTYc5Xdy-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251202/202512022023.eTYc5Xdy-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/r/202512022023.eTYc5Xdy-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
>> kernel/bpf/bpf_struct_ops.c:1205:32: warning: declaration of 'struct bpf_struct_st_link' will not be visible outside of this function [-Wvisibility]
1205 | void bpf_oom_clear_link(struct bpf_struct_st_link *st_link);
| ^
>> kernel/bpf/bpf_struct_ops.c:1211:21: error: incompatible pointer types passing 'struct bpf_struct_ops_link *' to parameter of type 'struct bpf_struct_st_link *' [-Werror,-Wincompatible-pointer-types]
1211 | bpf_oom_clear_link(st_link);
| ^~~~~~~
kernel/bpf/bpf_struct_ops.c:1205:52: note: passing argument to parameter 'st_link' here
1205 | void bpf_oom_clear_link(struct bpf_struct_st_link *st_link);
| ^
1 warning and 1 error generated.
vim +1211 kernel/bpf/bpf_struct_ops.c
dca9f586d54712 Roman Gushchin 2025-12-01 1204
dca9f586d54712 Roman Gushchin 2025-12-01 @1205 void bpf_oom_clear_link(struct bpf_struct_st_link *st_link);
dca9f586d54712 Roman Gushchin 2025-12-01 1206 void bpf_struct_ops_link_detach_cgroup(struct bpf_struct_ops_link *st_link,
dca9f586d54712 Roman Gushchin 2025-12-01 1207 bool cgroup_locked)
dca9f586d54712 Roman Gushchin 2025-12-01 1208 {
dca9f586d54712 Roman Gushchin 2025-12-01 1209 bool unref = false;
dca9f586d54712 Roman Gushchin 2025-12-01 1210
dca9f586d54712 Roman Gushchin 2025-12-01 @1211 bpf_oom_clear_link(st_link);
dca9f586d54712 Roman Gushchin 2025-12-01 1212
dca9f586d54712 Roman Gushchin 2025-12-01 1213 if (!cgroup_locked)
dca9f586d54712 Roman Gushchin 2025-12-01 1214 cgroup_lock();
dca9f586d54712 Roman Gushchin 2025-12-01 1215
dca9f586d54712 Roman Gushchin 2025-12-01 1216 if (!st_link->cgroup)
dca9f586d54712 Roman Gushchin 2025-12-01 1217 goto unlock;
dca9f586d54712 Roman Gushchin 2025-12-01 1218
dca9f586d54712 Roman Gushchin 2025-12-01 1219 cgroup_put(st_link->cgroup);
dca9f586d54712 Roman Gushchin 2025-12-01 1220 st_link->cgroup = NULL;
dca9f586d54712 Roman Gushchin 2025-12-01 1221 WARN_ON(list_empty(&st_link->links_list));
dca9f586d54712 Roman Gushchin 2025-12-01 1222 list_del_init(&st_link->links_list);
dca9f586d54712 Roman Gushchin 2025-12-01 1223 unref = true;
dca9f586d54712 Roman Gushchin 2025-12-01 1224
dca9f586d54712 Roman Gushchin 2025-12-01 1225 unlock:
dca9f586d54712 Roman Gushchin 2025-12-01 1226 if (!cgroup_locked)
dca9f586d54712 Roman Gushchin 2025-12-01 1227 cgroup_unlock();
dca9f586d54712 Roman Gushchin 2025-12-01 1228
dca9f586d54712 Roman Gushchin 2025-12-01 1229 if (unref)
dca9f586d54712 Roman Gushchin 2025-12-01 1230 bpf_link_put(&st_link->link);
dca9f586d54712 Roman Gushchin 2025-12-01 1231 }
dca9f586d54712 Roman Gushchin 2025-12-01 1232
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-12-02 19:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202512022023.eTYc5Xdy-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.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.