linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] genksyms: keywords: Use __restrict not _restrict
@ 2020-08-15  1:38 Joe Perches
  2020-08-15  2:14 ` Nick Desaulniers
  0 siblings, 1 reply; 9+ messages in thread
From: Joe Perches @ 2020-08-15  1:38 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: Nick Desaulniers, Linus Torvalds, LKML

Use the proper form of the RESTRICT keyword.

Quote the comments properly too.

Signed-off-by: Joe Perches <joe@perches.com>
---
 scripts/genksyms/keywords.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/genksyms/keywords.c b/scripts/genksyms/keywords.c
index 7a85c4e21175..057c6cabad1d 100644
--- a/scripts/genksyms/keywords.c
+++ b/scripts/genksyms/keywords.c
@@ -25,9 +25,9 @@ static struct resword {
 	{ "__int128_t", BUILTIN_INT_KEYW },
 	{ "__uint128_t", BUILTIN_INT_KEYW },
 
-	// According to rth, c99 defines "_Bool", __restrict", __restrict__", "restrict".  KAO
+	// According to rth, c99 defines "_Bool", "__restrict", "__restrict__", "restrict".  KAO
 	{ "_Bool", BOOL_KEYW },
-	{ "_restrict", RESTRICT_KEYW },
+	{ "__restrict", RESTRICT_KEYW },
 	{ "__restrict__", RESTRICT_KEYW },
 	{ "restrict", RESTRICT_KEYW },
 	{ "asm", ASM_KEYW },


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-08-18 11:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-15  1:38 [PATCH] genksyms: keywords: Use __restrict not _restrict Joe Perches
2020-08-15  2:14 ` Nick Desaulniers
2020-08-15  3:05   ` Linus Torvalds
2020-08-15  3:17     ` Joe Perches
2020-08-15 22:46       ` Randy Dunlap
2020-08-18  1:05         ` Masahiro Yamada
2020-08-18  3:32           ` Randy Dunlap
2020-08-18 11:15             ` Masahiro Yamada
2020-08-15 21:30     ` Nick Desaulniers

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).