aboutsummaryrefslogtreecommitdiff
path: root/scripts/basic/hash.c
diff options
context:
space:
mode:
authorTrevor Keith <tsrk@tsrk.net>2009-09-18 12:49:23 -0700
committerSam Ravnborg <sam@ravnborg.org>2009-09-20 12:27:44 +0200
commit4356f4890792a678936c93c9196e8f7742e04535 (patch)
tree6c64cbb77de98dfc45e4330632e6f8b27f50ef04 /scripts/basic/hash.c
parent66a570623be0d96130470a41cd38bce889b7e885 (diff)
kbuild: add static to prototypes
Warnings found via gcc -Wmissing-prototypes. Signed-off-by: Trevor Keith <tsrk@tsrk.net> Acked-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/basic/hash.c')
-rw-r--r--scripts/basic/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/basic/hash.c b/scripts/basic/hash.c
index 3299ad7fc8c..2ef5d3f666b 100644
--- a/scripts/basic/hash.c
+++ b/scripts/basic/hash.c
@@ -21,7 +21,7 @@ static void usage(void)
* http://www.cse.yorku.ca/~oz/hash.html
*/
-unsigned int djb2_hash(char *str)
+static unsigned int djb2_hash(char *str)
{
unsigned long hash = 5381;
int c;
@@ -34,7 +34,7 @@ unsigned int djb2_hash(char *str)
return (unsigned int)(hash & ((1 << DYNAMIC_DEBUG_HASH_BITS) - 1));
}
-unsigned int r5_hash(char *str)
+static unsigned int r5_hash(char *str)
{
unsigned long hash = 0;
int c;