浏览代码

[CRYPTO] padlock-sha: Make 2 functions static

This patch makes two needlessly global functions static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Adrian Bunk 19 年之前
父节点
当前提交
cb17530b0a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/crypto/padlock-sha.c

+ 2 - 2
drivers/crypto/padlock-sha.c

@@ -112,7 +112,7 @@ static inline void padlock_output_block(uint32_t *src,
 		*dst++ = swab32(*src++);
 		*dst++ = swab32(*src++);
 }
 }
 
 
-void padlock_do_sha1(const char *in, char *out, int count)
+static void padlock_do_sha1(const char *in, char *out, int count)
 {
 {
 	/* We can't store directly to *out as it may be unaligned. */
 	/* We can't store directly to *out as it may be unaligned. */
 	/* BTW Don't reduce the buffer size below 128 Bytes!
 	/* BTW Don't reduce the buffer size below 128 Bytes!
@@ -133,7 +133,7 @@ void padlock_do_sha1(const char *in, char *out, int count)
 	padlock_output_block((uint32_t *)result, (uint32_t *)out, 5);
 	padlock_output_block((uint32_t *)result, (uint32_t *)out, 5);
 }
 }
 
 
-void padlock_do_sha256(const char *in, char *out, int count)
+static void padlock_do_sha256(const char *in, char *out, int count)
 {
 {
 	/* We can't store directly to *out as it may be unaligned. */
 	/* We can't store directly to *out as it may be unaligned. */
 	/* BTW Don't reduce the buffer size below 128 Bytes!
 	/* BTW Don't reduce the buffer size below 128 Bytes!