diff options
author | Joe Perches <joe@perches.com> | 2020-08-15 03:38:15 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-08-18 13:16:46 +0200 |
commit | e29a6d633e2782ec0278b8c199135ad24a99240d (patch) | |
tree | 8b204ebaae7c5337275ae1056d3a1e63579d0a49 /scripts | |
parent | kbuild: remove redundant patterns in filter/filter-out (diff) | |
download | linux-e29a6d633e2782ec0278b8c199135ad24a99240d.tar.xz linux-e29a6d633e2782ec0278b8c199135ad24a99240d.zip |
genksyms: keywords: Use __restrict not _restrict
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/genksyms/keywords.c | 4 |
1 files 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 }, |