Skip to contentSkip to conversation

tools/mm: use <stdbool.h> in page_owner_sort.c

PATCH Applied Ye Liu 3 participants 3 messages Oct 15, 2025 Memory management

lore
Share & tools
lore

Ye Liu

author
#0 lore raw

PATCH v2 1/1 tools/mm: use <stdbool.h> in page_owner_sort.c

From: Ye Liu <[email protected]>

Use standard <stdbool.h> instead of manually defining bool, true and false.

---
 tools/mm/page_owner_sort.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tools/mm/page_owner_sort.c +1 -3
index 880e36df0c11..894a765652ac 100644
@@ -13,6 +13,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdbool.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -23,9 +24,6 @@
 #include <linux/types.h>
 #include <getopt.h>
 
-#define bool int
-#define true 1
-#define false 0
 #define TASK_COMM_LEN 16
 
 struct block_list {
Signature · 1 line
2.43.0