[PATCH] tsacct: Remove unused macro definition
From: Suchit Karunakaran
Date: Tue Jul 29 2025 - 01:34:18 EST
The MB macro was defined in tsacct.c but never used, leading to a compiler
warning. This patch removes the unused definition to clean up the code and
suppress the warning.
Signed-off-by: Suchit Karunakaran <suchitkarunakaran@xxxxxxxxx>
---
kernel/tsacct.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/tsacct.c b/kernel/tsacct.c
index 16b283f9d831..0fd7ef291454 100644
--- a/kernel/tsacct.c
+++ b/kernel/tsacct.c
@@ -83,7 +83,6 @@ void bacct_add_tsk(struct user_namespace *user_ns,
#ifdef CONFIG_TASK_XACCT
#define KB 1024
-#define MB (1024*KB)
#define KB_MASK (~(KB-1))
/*
* fill in extended accounting fields
@@ -119,7 +118,6 @@ void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
#endif
}
#undef KB
-#undef MB
static void __acct_update_integrals(struct task_struct *tsk,
u64 utime, u64 stime)
--
2.50.1