summaryrefslogtreecommitdiff
path: root/crypto/internal.h
diff options
context:
space:
mode:
authorJames Morris <jmorris@intercode.com.au>2002-12-05 19:04:03 -0800
committerJames Morris <jmorris@intercode.com.au>2002-12-05 19:04:03 -0800
commitf1853422bfddde6e25868ef280f96752e71e5dec (patch)
tree7a746bf19fc25c5346e57ed6b38be81da3ed30ae /crypto/internal.h
parent7ac20748d507220d1e737382d0e9727c65c16ec1 (diff)
[CRYPTO]: Dont compile procfs stuff if procfs is not enabled.
Diffstat (limited to 'crypto/internal.h')
-rw-r--r--crypto/internal.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/internal.h b/crypto/internal.h
index 408bc1bb5b0c..35bd91128aeb 100644
--- a/crypto/internal.h
+++ b/crypto/internal.h
@@ -11,7 +11,6 @@
*/
#ifndef _CRYPTO_INTERNAL_H
#define _CRYPTO_INTERNAL_H
-
#include <linux/mm.h>
#include <linux/highmem.h>
#include <asm/hardirq.h>
@@ -65,6 +64,13 @@ static inline void crypto_free_hmac_block(struct crypto_tfm *tfm)
{ }
#endif
+#ifdef CONFIG_PROC_FS
+void __init crypto_init_proc(void);
+#else
+static inline void crypto_init_proc(void)
+{ }
+#endif
+
int crypto_init_digest_flags(struct crypto_tfm *tfm, u32 flags);
int crypto_init_cipher_flags(struct crypto_tfm *tfm, u32 flags);
int crypto_init_compress_flags(struct crypto_tfm *tfm, u32 flags);