aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2002-11-13 00:56:06 -0800
committerDavid S. Miller <davem@nuts.ninka.net>2002-11-13 00:56:06 -0800
commitc2ef76af633e063a5dfec5e7f84a55bc6e22f97b (patch)
tree271f3b450f3ddf5c53fe4ed83450f385a639799e /crypto
parent6ad349cdb426acb578b5d158361c8171f8da05e2 (diff)
downloadhistory-c2ef76af633e063a5dfec5e7f84a55bc6e22f97b.tar.gz
[PATCH] module_name macro
Fixes crypto so it compiles with !CONFIG_MODULES, and cleans up two other cases which did #ifdef CONFIG_MODULES.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/api.c b/crypto/api.c
index ebe234b0100fdd..833481f4e2c810 100644
--- a/crypto/api.c
+++ b/crypto/api.c
@@ -263,8 +263,7 @@ static int c_show(struct seq_file *m, void *p)
struct crypto_alg *alg = (struct crypto_alg *)p;
seq_printf(m, "name : %s\n", alg->cra_name);
- seq_printf(m, "module : %s\n", alg->cra_module ?
- alg->cra_module->name : "[static]");
+ seq_printf(m, "module : %s\n", module_name(alg->cra_module));
seq_printf(m, "blocksize : %u\n", alg->cra_blocksize);
switch (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) {