aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/internal.h
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2005-07-06 16:53:09 -0400
committerDavid S. Miller <davem@davemloft.net>2005-07-06 16:53:09 -0400
commit176c3652c544b6f8d4bb1984c58c10080f45dbf0 (patch)
treea9b29e6e341484df8a0040de7506807f82be3e66 /crypto/internal.h
parent28e8c3ad9464de54a632f00ab3df88fa5f4652d1 (diff)
[CRYPTO] Make crypto_alg_lookup static
This patch makes a needlessly global function static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r--crypto/internal.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/crypto/internal.h b/crypto/internal.h
index 5ed383f7dce6..83b1b6d6d92b 100644
--- a/crypto/internal.h
+++ b/crypto/internal.h
@@ -16,7 +16,6 @@
16#include <linux/highmem.h> 16#include <linux/highmem.h>
17#include <linux/interrupt.h> 17#include <linux/interrupt.h>
18#include <linux/init.h> 18#include <linux/init.h>
19#include <linux/kmod.h>
20#include <asm/kmap_types.h> 19#include <asm/kmap_types.h>
21 20
22extern enum km_type crypto_km_types[]; 21extern enum km_type crypto_km_types[];
@@ -42,15 +41,6 @@ static inline void crypto_yield(struct crypto_tfm *tfm)
42 cond_resched(); 41 cond_resched();
43} 42}
44 43
45struct crypto_alg *crypto_alg_lookup(const char *name);
46
47/* A far more intelligent version of this is planned. For now, just
48 * try an exact match on the name of the algorithm. */
49static inline struct crypto_alg *crypto_alg_mod_lookup(const char *name)
50{
51 return try_then_request_module(crypto_alg_lookup(name), name);
52}
53
54#ifdef CONFIG_CRYPTO_HMAC 44#ifdef CONFIG_CRYPTO_HMAC
55int crypto_alloc_hmac_block(struct crypto_tfm *tfm); 45int crypto_alloc_hmac_block(struct crypto_tfm *tfm);
56void crypto_free_hmac_block(struct crypto_tfm *tfm); 46void crypto_free_hmac_block(struct crypto_tfm *tfm);