>From 45622ce1e4db512ad603dd90f959e61285b7541a Mon Sep 17 00:00:00 2001 From: Alexey Dobriyan <adobriyan@xxxxxxxxx> Date: Tue, 9 Feb 2021 14:43:52 +0300 Subject: [PATCH 03/11] pragma once: convert arch/s390/tools/gen_facilities.c 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