summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-09 11:10:29 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-19 09:27:09 +0200
commit7d3e97fd97133419ed9cbc3cee857c638519501f (patch)
tree2e4bfa35016d8bf9560b8a0d5e06d50026a7cf8f
parentb52bc8426ca68d29e7ef36ecc947f8eaa4053bd7 (diff)
downloadcryptodev-linux-7d3e97fd97133419ed9cbc3cee857c638519501f.tar.gz
cryptodev-linux-7d3e97fd97133419ed9cbc3cee857c638519501f.tar.xz
cryptodev-linux-7d3e97fd97133419ed9cbc3cee857c638519501f.zip
sparse: add missing 'static'
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-rw-r--r--cryptodev_main.c8
-rw-r--r--libtomcrypt/hashes/hash_get_oid.c12
-rw-r--r--ncr-limits.c4
3 files changed, 12 insertions, 12 deletions
diff --git a/cryptodev_main.c b/cryptodev_main.c
index 957a570..0a23f94 100644
--- a/cryptodev_main.c
+++ b/cryptodev_main.c
@@ -779,7 +779,7 @@ cryptodev_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg_)
#endif /* CONFIG_COMPAT */
-struct file_operations cryptodev_fops = {
+static struct file_operations cryptodev_fops = {
.owner = THIS_MODULE,
.open = cryptodev_open,
.release = cryptodev_release,
@@ -789,7 +789,7 @@ struct file_operations cryptodev_fops = {
#endif /* CONFIG_COMPAT */
};
-struct miscdevice cryptodev = {
+static struct miscdevice cryptodev = {
.minor = MISC_DYNAMIC_MINOR,
.name = "crypto",
.fops = &cryptodev_fops,
@@ -830,7 +830,7 @@ cryptodev_deregister(void)
}
/* ====== Module init/exit ====== */
-int __init init_cryptodev(void)
+static int __init init_cryptodev(void)
{
int rc;
@@ -843,7 +843,7 @@ int __init init_cryptodev(void)
return 0;
}
-void __exit exit_cryptodev(void)
+static void __exit exit_cryptodev(void)
{
cryptodev_deregister();
printk(KERN_INFO PFX "driver unloaded.\n");
diff --git a/libtomcrypt/hashes/hash_get_oid.c b/libtomcrypt/hashes/hash_get_oid.c
index 0a761b1..32e4390 100644
--- a/libtomcrypt/hashes/hash_get_oid.c
+++ b/libtomcrypt/hashes/hash_get_oid.c
@@ -16,32 +16,32 @@
@return CRYPT_OK if valid
*/
-const oid_st sha1_oid = {
+static const oid_st sha1_oid = {
.OIDlen = 6,
.OID = { 1, 3, 14, 3, 2, 26 },
};
-const oid_st md5_oid = {
+static const oid_st md5_oid = {
.OIDlen = 6,
.OID = { 1, 2, 840, 113549, 2, 5, },
};
-const oid_st sha224_oid = {
+static const oid_st sha224_oid = {
.OIDlen = 9,
.OID = { 2, 16, 840, 1, 101, 3, 4, 2, 4, },
};
-const oid_st sha256_oid = {
+static const oid_st sha256_oid = {
.OIDlen = 9,
.OID = { 2, 16, 840, 1, 101, 3, 4, 2, 1, },
};
-const oid_st sha384_oid = {
+static const oid_st sha384_oid = {
.OIDlen = 9,
.OID = { 2, 16, 840, 1, 101, 3, 4, 2, 2, },
};
-const oid_st sha512_oid = {
+static const oid_st sha512_oid = {
.OIDlen = 9,
.OID = { 2, 16, 840, 1, 101, 3, 4, 2, 3, },
};
diff --git a/ncr-limits.c b/ncr-limits.c
index d029440..746434c 100644
--- a/ncr-limits.c
+++ b/ncr-limits.c
@@ -32,12 +32,12 @@
#include "ncr_int.h"
/* arbitrary now */
-unsigned int max_per_user[] = {
+static unsigned int max_per_user[] = {
[LIMIT_TYPE_KEY] = 128,
[LIMIT_TYPE_DATA] = 128,
};
-unsigned int max_per_process[] = {
+static unsigned int max_per_process[] = {
[LIMIT_TYPE_KEY] = 64,
[LIMIT_TYPE_DATA] = 64,
};