Skip to contentSkip to conversation

libcrc32c: Fix build warning

PATCH New Jean Delvare 1 participant 1 message Jan 18, 2016 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libcrc32c: Fix build warning

Fix the following build warning:

lib/libcrc32c.c:42:5: warning: no previous prototype for "crc32c" [-Wmissing-prototypes]
u32 crc32c(u32 crc, const void *address, unsigned int length)

     ^
---
 lib/libcrc32c.c |    1 +
 1 file changed, 1 insertion(+)
lib/libcrc32c.c +1 -0
@@ -36,6 +36,7 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/crc32c.h>
 
 static struct crypto_shash *tfm;
 
Signature · 2 lines
Jean Delvare
SUSE L3 Support