aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian-Ken Rueegsegger <rueegsegger@swiss-it.ch>2008-11-10 23:14:00 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2008-12-24 19:01:42 -0500
commit53b146ae598268edbe2bf7ea7dfec721d51adddd (patch)
treec605309ecee7320e3419e426c8b54638441cef35
parent69c35efcf1576ab5f00cba83e8ca740923afb6c9 (diff)
libcrc32c: Fix "crc32c undefined" compilation error
The latest shash changes leave crc32c undefined: [...] Building modules, stage 2. MODPOST 1381 modules ERROR: "crc32c" [net/sctp/sctp.ko] undefined! ERROR: "crc32c" [net/ipv4/netfilter/nf_nat_proto_sctp.ko] undefined! Adding EXPORT_SYMBOL(crc32c) to lib/libcrc32c.c fixes the compile error. This patch has been compile-tested only. Signed-off-by: Adrian-Ken Rueegsegger <rueegsegger@swiss-it.ch> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--lib/libcrc32c.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libcrc32c.c b/lib/libcrc32c.c
index 38b17ab52ff9..244f5480c898 100644
--- a/lib/libcrc32c.c
+++ b/lib/libcrc32c.c
@@ -57,6 +57,8 @@ u32 crc32c(u32 crc, const void *address, unsigned int length)
57 return *(u32 *)desc.ctx; 57 return *(u32 *)desc.ctx;
58} 58}
59 59
60EXPORT_SYMBOL(crc32c);
61
60static int __init libcrc32c_mod_init(void) 62static int __init libcrc32c_mod_init(void)
61{ 63{
62 tfm = crypto_alloc_shash("crc32c", 0, 0); 64 tfm = crypto_alloc_shash("crc32c", 0, 0);