Re: [2.6 patch] crypto/api.c: make crypto_alg_lookup static
On Sat, Apr 09, 2005 at 09:38:41PM +0200, Adrian Bunk wrote: > This patch makes a needlessly global function static. Thanks Adrian, patch applied. -- 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [2.6 patch] crypto/api.c: make crypto_alg_lookup static
On Sat, Apr 09, 2005 at 09:38:41PM +0200, Adrian Bunk wrote: This patch makes a needlessly global function static. Thanks Adrian, patch applied. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[2.6 patch] 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(-) --- linux-2.6.12-rc2-mm2-full/crypto/internal.h.old 2005-04-09 21:13:40.0 +0200 +++ linux-2.6.12-rc2-mm2-full/crypto/internal.h 2005-04-09 21:15:14.0 +0200 @@ -47,15 +47,6 @@ return (void *)[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); --- linux-2.6.12-rc2-mm2-full/crypto/api.c.old 2005-04-09 21:13:59.0 +0200 +++ linux-2.6.12-rc2-mm2-full/crypto/api.c 2005-04-09 21:15:07.0 +0200 @@ -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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[2.6 patch] 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(-) --- linux-2.6.12-rc2-mm2-full/crypto/internal.h.old 2005-04-09 21:13:40.0 +0200 +++ linux-2.6.12-rc2-mm2-full/crypto/internal.h 2005-04-09 21:15:14.0 +0200 @@ -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); --- linux-2.6.12-rc2-mm2-full/crypto/api.c.old 2005-04-09 21:13:59.0 +0200 +++ linux-2.6.12-rc2-mm2-full/crypto/api.c 2005-04-09 21:15:07.0 +0200 @@ -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; - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/