Skip to content

Commit 53b146a

Browse files
Adrian-Ken Rueegseggerherbertx
Adrian-Ken Rueegsegger
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 69c35ef commit 53b146a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/libcrc32c.c

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ u32 crc32c(u32 crc, const void *address, unsigned int length)
5757
return *(u32 *)desc.ctx;
5858
}
5959

60+
EXPORT_SYMBOL(crc32c);
61+
6062
static int __init libcrc32c_mod_init(void)
6163
{
6264
tfm = crypto_alloc_shash("crc32c", 0, 0);

0 commit comments

Comments
 (0)