All of lore.kernel.org
 help / color / mirror / Atom feed
* [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 *'
@ 2025-12-02 19:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-02 19:10 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: 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

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

only message in thread, other threads:[~2025-12-02 19:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-02 19:10 [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 *' 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.