From: Adrian-Ken Rueegsegger Date: Tue, 11 Nov 2008 04:14:00 +0000 (+0800) Subject: libcrc32c: Fix "crc32c undefined" compilation error X-Git-Tag: v2.6.29-rc1~589^2~35 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=53b146ae598268edbe2bf7ea7dfec721d51adddd;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Herbert Xu --- diff --git a/lib/libcrc32c.c b/lib/libcrc32c.c index 38b17ab52ff..244f5480c89 100644 --- a/lib/libcrc32c.c +++ b/lib/libcrc32c.c @@ -57,6 +57,8 @@ u32 crc32c(u32 crc, const void *address, unsigned int length) return *(u32 *)desc.ctx; } +EXPORT_SYMBOL(crc32c); + static int __init libcrc32c_mod_init(void) { tfm = crypto_alloc_shash("crc32c", 0, 0);