[PATCH] samples/cgroup: rm unused MEMCG_EVENTS macro

zhangjiao2 posted 1 patch 1 month ago
samples/cgroup/memcg_event_listener.c | 2 --
1 file changed, 2 deletions(-)
[PATCH] samples/cgroup: rm unused MEMCG_EVENTS macro
Posted by zhangjiao2 1 month ago
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
Re: [PATCH] samples/cgroup: rm unused MEMCG_EVENTS macro
Posted by Shakeel Butt 4 weeks ago
On Wed, Sep 03, 2025 at 03:30:59PM +0800, zhangjiao2 wrote:
> 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>

Acked-by: Shakeel Butt <shakeel.butt@linux.dev>