crypto/api.c: make crypto_alg_lookup static
PATCH 1/1 crypto/api.c: make crypto_alg_lookup static
This patch makes a needlessly global function static.
Signed-off-by Adrian Bunk <[email protected]>
---
crypto/api.c | 9 ++++++++- crypto/internal.h | 9 --------- 2 files changed, 8 insertions(+), 10 deletions(-)
crypto/internal.h renamed from crypto/internal.h.old +0 -9
@@ -47,15 +47,6 @@return (void *)&tfm[1 ]; } -struct crypto_alg *crypto_alg_lookup (const char *name); - -/* A far more intelligent version of this is planned. For now, just -* try an exact match on the name of the algorithm. */ -static inline struct crypto_alg *crypto_alg_mod_lookup (const char *name) -{ -return try_then_request_module (crypto_alg_lookup (name), name); -} -#ifdef CONFIG_CRYPTO_HMAC int crypto_alloc_hmac_block (struct crypto_tfm *tfm);void crypto_free_hmac_block (struct crypto_tfm *tfm);
crypto/api.c renamed from crypto/api.c.old +8 -1
@@ -33,7 +33,7 @@module_put (alg->cra_module); } -struct crypto_alg *crypto_alg_lookup (const char *name) +static struct crypto_alg *crypto_alg_lookup (const char *name) {struct crypto_alg *q, *alg =NULL ;
@@ -54,6 +54,13 @@return alg; } +/* A far more intelligent version of this is planned. For now, just +* try an exact match on the name of the algorithm. */ +static inline struct crypto_alg *crypto_alg_mod_lookup (const char *name) +{ +return try_then_request_module (crypto_alg_lookup (name), name); +} +static int crypto_init_flags (struct crypto_tfm *tfm,u32 flags) { tfm->crt_flags =0 ;
Herbert Xu
maintainerQuoted 1 line · Adrian Bunk
This patch makes a needlessly global function static.
Thanks Adrian, patch applied.
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt