summaryrefslogtreecommitdiff
path: root/scripts/mod/modpost.h
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-05-01 11:40:07 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2022-05-07 21:17:00 +0300
commit58e01fcae18c9d01be701bec9e9a8ee58269c7c1 (patch)
tree44e5a43612e0000b3626f7a5beb9044a3a2e2cd0 /scripts/mod/modpost.h
parent63cbee7f3a1d4f48f8aceb11598f0da4f32fb403 (diff)
downloadlinux-58e01fcae18c9d01be701bec9e9a8ee58269c7c1.tar.xz
modpost: use bool type where appropriate
Use 'bool' to clarify that the valid value is true or false. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'scripts/mod/modpost.h')
-rw-r--r--scripts/mod/modpost.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/mod/modpost.h b/scripts/mod/modpost.h
index 7aed57fe793e..0bd8f697f94c 100644
--- a/scripts/mod/modpost.h
+++ b/scripts/mod/modpost.h
@@ -1,4 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0 */
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
@@ -113,11 +114,11 @@ struct module {
struct module *next;
int gpl_compatible;
struct symbol *unres;
- int from_dump; /* 1 if module was loaded from *.symvers */
- int is_vmlinux;
- int seen;
- int has_init;
- int has_cleanup;
+ bool from_dump; /* true if module was loaded from *.symvers */
+ bool is_vmlinux;
+ bool seen;
+ bool has_init;
+ bool has_cleanup;
struct buffer dev_table_buf;
char srcversion[25];
// Missing namespace dependencies