linux-s390.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 03/11] pragma once: convert arch/s390/tools/gen_facilities.c
       [not found] <YDvLYzsGu+l1pQ2y@localhost.localdomain>
@ 2021-02-28 16:59 ` Alexey Dobriyan
  0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2021-02-28 16:59 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, akpm, hca, gor, borntraeger, linux-s390

From 45622ce1e4db512ad603dd90f959e61285b7541a Mon Sep 17 00:00:00 2001
From: Alexey Dobriyan <adobriyan@gmail.com>
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@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-28 17:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <YDvLYzsGu+l1pQ2y@localhost.localdomain>
2021-02-28 16:59 ` [PATCH 03/11] pragma once: convert arch/s390/tools/gen_facilities.c Alexey Dobriyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).