tools/mm: use <stdbool.h> in page_owner_sort.c
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.
Signed-off-by Ye Liu <[email protected]>
--- tools/mm/page_owner_sort.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
tools/mm/page_owner_sort.c +1 -3
@@ -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 16struct block_list {
Signature · 1 line
2.43.0
Quoted 7 lines · Ye Liu
From: Ye Liu <[email protected]>
Use standard <
stdbool.h> instead of manually defining bool, true and false.Signed-off-by Ye Liu <[email protected]>---
Reviewed-by Dev Jain <[email protected]>
Quoted 5 lines · On Wed, 15 Oct 2025 17:38:50 +0800 Ye Liu <[email protected]> wrote:
From: Ye Liu <[email protected]>
Use standard <
stdbool.h> instead of manually defining bool, true and false.Signed-off-by Ye Liu <[email protected]>
Reviewed-by SeongJae Park <[email protected]>
Thanks,
SJ
[...]