summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,
};