* [PATCH] samples/cgroup: rm unused MEMCG_EVENTS macro
@ 2025-09-03 7:30 zhangjiao2
0 siblings, 0 replies; only message in thread
From: zhangjiao2 @ 2025-09-03 7:30 UTC (permalink / raw)
To: hannes
Cc: mhocko, roman.gushchin, shakeel.butt, muchun.song, cgroups,
linux-mm, linux-kernel, zhang jiao
From: zhang jiao <zhangjiao2@cmss.chinamobile.com>
MEMCG_EVENTS is never referenced in the code. Just remove it.
Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
---
samples/cgroup/memcg_event_listener.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/samples/cgroup/memcg_event_listener.c b/samples/cgroup/memcg_event_listener.c
index a1667fe2489a..41425edbd88a 100644
--- a/samples/cgroup/memcg_event_listener.c
+++ b/samples/cgroup/memcg_event_listener.c
@@ -18,8 +18,6 @@
#include <sys/inotify.h>
#include <unistd.h>
-#define MEMCG_EVENTS "memory.events"
-
/* Size of buffer to use when reading inotify events */
#define INOTIFY_BUFFER_SIZE 8192
--
2.33.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-03 7:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-03 7:30 [PATCH] samples/cgroup: rm unused MEMCG_EVENTS macro zhangjiao2
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).