Skip to content

Commit

Permalink
libcrc32c: Fix "crc32c undefined" compilation error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian-Ken Rueegsegger authored and herbertx committed Dec 25, 2008
1 parent 69c35ef commit 53b146a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/libcrc32c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 53b146a

Please sign in to comment.