summaryrefslogtreecommitdiff
path: root/scripts/genksyms/keywords.gperf
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2009-10-15 23:58:40 +0400
committerJosh Triplett <josh@joshtriplett.org>2009-11-16 02:01:22 +0300
commited9df091491dd41d4e054071948c8e2e5b354c99 (patch)
tree7a9f8e36027944e9fff166ff8b99e5d6a2a45ff4 /scripts/genksyms/keywords.gperf
parent65166571800af0f63f21e5576d7db12d2bf73790 (diff)
downloadlinux-ed9df091491dd41d4e054071948c8e2e5b354c99.tar.xz
genksyms: Mark is_reserved_word static
The genksyms keyword gperf hash provides a function is_reserved_word. genksyms #includes the resulting generated file keywords.c, so the function gets used only in the same source file that defines it. Mark is_reserved_word static, and regenerate the corresponding generated file. Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'scripts/genksyms/keywords.gperf')
-rw-r--r--scripts/genksyms/keywords.gperf2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/genksyms/keywords.gperf b/scripts/genksyms/keywords.gperf
index 5ef3733225fb..8fe977a4d57b 100644
--- a/scripts/genksyms/keywords.gperf
+++ b/scripts/genksyms/keywords.gperf
@@ -1,4 +1,6 @@
%{
+struct resword;
+static const struct resword *is_reserved_word(register const char *str, register unsigned int len);
%}
struct resword { const char *name; int token; }
%%