Skip to content

Commit

Permalink
genksyms: keywords: Use __restrict not _restrict
Browse files Browse the repository at this point in the history
Use the proper form of the RESTRICT keyword.

Quote the comments properly too.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
  • Loading branch information
JoePerches authored and masahir0y committed Aug 18, 2020
1 parent efbf972 commit e29a6d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/genksyms/keywords.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit e29a6d6

Please sign in to comment.