Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Adrian-Ken Rueegsegger and committed by
Herbert Xu
53b146ae 69c35efc

+2
+2
lib/libcrc32c.c
··· 57 57 return *(u32 *)desc.ctx; 58 58 } 59 59 60 + EXPORT_SYMBOL(crc32c); 61 + 60 62 static int __init libcrc32c_mod_init(void) 61 63 { 62 64 tfm = crypto_alloc_shash("crc32c", 0, 0);