Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Ye Liu and committed by
Andrew Morton
2f79ddb6 0f21b911

+1 -3
+1 -3
tools/mm/page_owner_sort.c
··· 13 13 14 14 #include <stdio.h> 15 15 #include <stdlib.h> 16 + #include <stdbool.h> 16 17 #include <sys/types.h> 17 18 #include <sys/stat.h> 18 19 #include <fcntl.h> ··· 24 23 #include <linux/types.h> 25 24 #include <getopt.h> 26 25 27 - #define bool int 28 - #define true 1 29 - #define false 0 30 26 #define TASK_COMM_LEN 16 31 27 32 28 struct block_list {