[PATCH 03/11] pragma once: convert arch/s390/tools/gen_facilities.c
From: Alexey Dobriyan
Date: Tue Feb 09 2021 - 06:43:52 EST
Generate arch/s390/include/generated/asm/facility-defs.h without include
guard.
Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
---
arch/s390/tools/gen_facilities.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/s390/tools/gen_facilities.c b/arch/s390/tools/gen_facilities.c
index 61ce5b59b828..cd5055994206 100644
--- a/arch/s390/tools/gen_facilities.c
+++ b/arch/s390/tools/gen_facilities.c
@@ -157,8 +157,7 @@ static void print_facility_lists(void)
int main(int argc, char **argv)
{
- printf("#ifndef __ASM_S390_FACILITY_DEFS__\n");
- printf("#define __ASM_S390_FACILITY_DEFS__\n");
+ printf("#pragma once\n");
printf("/*\n");
printf(" * DO NOT MODIFY.\n");
printf(" *\n");
@@ -166,6 +165,6 @@ int main(int argc, char **argv)
printf(" */\n\n");
printf("#include <linux/const.h>\n\n");
print_facility_lists();
- printf("\n#endif\n");
+ printf("\n");
return 0;
}
--
2.29.2