* [PATCH bpf-next] mm: drop mem_cgroup_usage() declaration from memcontrol.h
@ 2026-01-06 4:23 Roman Gushchin
2026-01-06 5:00 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Roman Gushchin @ 2026-01-06 4:23 UTC (permalink / raw)
To: Alexei Starovoitov
Cc: Stephen Rothwell, Daniel Borkmann, Andrii Nakryiko, Andrew Morton,
bpf, Networking, Linux Kernel Mailing List,
Linux Next Mailing List, Roman Gushchin
mem_cgroup_usage() is not used outside of memcg-v1 code,
the declaration was added by a mistake.
Signed-off-by: Roman Gushchin <roman.gushchin@linux.dev>
---
include/linux/memcontrol.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index 6a5d65487b70..229ac9835adb 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -950,7 +950,6 @@ static inline void mod_memcg_page_state(struct page *page,
}
unsigned long memcg_events(struct mem_cgroup *memcg, int event);
-unsigned long mem_cgroup_usage(struct mem_cgroup *memcg, bool swap);
unsigned long memcg_page_state(struct mem_cgroup *memcg, int idx);
unsigned long memcg_page_state_output(struct mem_cgroup *memcg, int item);
bool memcg_stat_item_valid(int idx);
--
2.52.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH bpf-next] mm: drop mem_cgroup_usage() declaration from memcontrol.h
2026-01-06 4:23 [PATCH bpf-next] mm: drop mem_cgroup_usage() declaration from memcontrol.h Roman Gushchin
@ 2026-01-06 5:00 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-01-06 5:00 UTC (permalink / raw)
To: Roman Gushchin
Cc: alexei.starovoitov, sfr, daniel, andrii, akpm, bpf, netdev,
linux-kernel, linux-next
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Mon, 5 Jan 2026 20:23:13 -0800 you wrote:
> mem_cgroup_usage() is not used outside of memcg-v1 code,
> the declaration was added by a mistake.
>
> Signed-off-by: Roman Gushchin <roman.gushchin@linux.dev>
> ---
> include/linux/memcontrol.h | 1 -
> 1 file changed, 1 deletion(-)
Here is the summary with links:
- [bpf-next] mm: drop mem_cgroup_usage() declaration from memcontrol.h
https://git.kernel.org/bpf/bpf-next/c/ea180ffbd27c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-06 5:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-06 4:23 [PATCH bpf-next] mm: drop mem_cgroup_usage() declaration from memcontrol.h Roman Gushchin
2026-01-06 5:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox