crypto: crypto_user - fix sparse warnings (symbol was not declared, should be static?)
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Tue, 28 Aug 2012 13:46:54 +0000 (16:46 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Sep 2012 20:17:05 +0000 (04:17 +0800)
Fix "symbol 'x' was not declared. Should it be static?" sparse warnings.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/crypto_user.c
crypto/vmac.c

index ba2c611..b590471 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "internal.h"
 
-DEFINE_MUTEX(crypto_cfg_mutex);
+static DEFINE_MUTEX(crypto_cfg_mutex);
 
 /* The crypto netlink socket */
 static struct sock *crypto_nlsk;
index 4243905..f2338ca 100644 (file)
  * Constants and masks
  */
 #define UINT64_C(x) x##ULL
-const u64 p64   = UINT64_C(0xfffffffffffffeff);  /* 2^64 - 257 prime  */
-const u64 m62   = UINT64_C(0x3fffffffffffffff);  /* 62-bit mask       */
-const u64 m63   = UINT64_C(0x7fffffffffffffff);  /* 63-bit mask       */
-const u64 m64   = UINT64_C(0xffffffffffffffff);  /* 64-bit mask       */
-const u64 mpoly = UINT64_C(0x1fffffff1fffffff);  /* Poly key mask     */
+static const u64 p64   = UINT64_C(0xfffffffffffffeff); /* 2^64 - 257 prime  */
+static const u64 m62   = UINT64_C(0x3fffffffffffffff); /* 62-bit mask       */
+static const u64 m63   = UINT64_C(0x7fffffffffffffff); /* 63-bit mask       */
+static const u64 m64   = UINT64_C(0xffffffffffffffff); /* 64-bit mask       */
+static const u64 mpoly = UINT64_C(0x1fffffff1fffffff); /* Poly key mask     */
 
 #define pe64_to_cpup le64_to_cpup              /* Prefer little endian */