* [rgushchin:bpfoom.1.2 5/17] mm/bpf_memcontrol.c:45:27: sparse: sparse: symbol 'bpf_mem_cgroup_events' was not declared. Should it be static?
@ 2025-06-05 9:33 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-06-05 9:33 UTC (permalink / raw)
To: Roman Gushchin; +Cc: oe-kbuild-all
tree: https://github.com/rgushchin/linux.git bpfoom.1.2
head: e3a569772f1fbe667574cb12da7cf500a0c91475
commit: 91f1156004c1e4ba4636fb952d8c076579962d05 [5/17] mm: introduce bpf kfuncs to deal with memcg pointers
config: hexagon-randconfig-r133-20250605 (https://download.01.org/0day-ci/archive/20250605/202506051752.uj7dbLuJ-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce: (https://download.01.org/0day-ci/archive/20250605/202506051752.uj7dbLuJ-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/202506051752.uj7dbLuJ-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> mm/bpf_memcontrol.c:45:27: sparse: sparse: symbol 'bpf_mem_cgroup_events' was not declared. Should it be static?
>> mm/bpf_memcontrol.c:67:18: sparse: sparse: symbol 'bpf_mem_cgroup_flush_stats' was not declared. Should it be static?
mm/bpf_memcontrol.c:37:9: sparse: sparse: context imbalance in 'bpf_get_mem_cgroup' - different lock contexts for basic block
vim +/bpf_mem_cgroup_events +45 mm/bpf_memcontrol.c
44
> 45 __bpf_kfunc unsigned long bpf_mem_cgroup_events(struct mem_cgroup *memcg, int event)
46 {
47
48 if (event < 0 || event >= NR_VM_EVENT_ITEMS)
49 return (unsigned long)-1;
50
51 return memcg_events(memcg, event);
52 }
53
54 __bpf_kfunc unsigned long bpf_mem_cgroup_usage(struct mem_cgroup *memcg, bool swap)
55 {
56 return mem_cgroup_usage(memcg, swap);
57 }
58
59 __bpf_kfunc unsigned long bpf_mem_cgroup_page_state(struct mem_cgroup *memcg, int idx)
60 {
61 if (idx < 0 || idx >= MEMCG_NR_STAT)
62 return (unsigned long)-1;
63
64 return memcg_page_state(memcg, idx);
65 }
66
> 67 __bpf_kfunc void bpf_mem_cgroup_flush_stats(struct mem_cgroup *memcg)
68 {
69 mem_cgroup_flush_stats(memcg);
70 }
71
--
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-06-05 9:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-05 9:33 [rgushchin:bpfoom.1.2 5/17] mm/bpf_memcontrol.c:45:27: sparse: sparse: symbol 'bpf_mem_cgroup_events' was not declared. Should it be static? 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.