diff options
| author | Ye Liu <liuye@kylinos.cn> | 2025-10-15 17:38:50 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-11-16 17:28:05 -0800 |
| commit | 2f79ddb64b472e50482f6728fec3b44156e5d844 (patch) | |
| tree | cf0f3af449ac003a2ed2714645f584f367d86a25 | |
| parent | 0f21b911011f9fcdc8fab584d6bd5a284e2119eb (diff) | |
tools/mm: use <stdbool.h> in page_owner_sort.c
Use standard <stdbool.h> instead of manually defining bool, true and false.
Link: https://lkml.kernel.org/r/20251015093851.109663-1-ye.liu@linux.dev
Signed-off-by: Ye Liu <liuye@kylinos.cn>
Reviewed-by: Dev Jain <dev.jain@arm.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
| -rw-r--r-- | tools/mm/page_owner_sort.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/mm/page_owner_sort.c b/tools/mm/page_owner_sort.c index 880e36df0c11..894a765652ac 100644 --- a/tools/mm/page_owner_sort.c +++ b/tools/mm/page_owner_sort.c @@ -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 { |