summaryrefslogtreecommitdiffstats
path: root/lib/crc32.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2018-07-17 18:05:36 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-07-27 19:04:33 +0800
commit1fb2e3f276ddafee81073d884f599cd2574c31e2 (patch)
tree8eb1549cfe89c18d68c888a54f3723217a0cf78b /lib/crc32.c
parentd96542ac1020ecd47d2a1668384694789b65cb91 (diff)
downloadlinux-1fb2e3f276ddafee81073d884f599cd2574c31e2.tar.bz2
lib/crc: Move polynomial definition to separate header
Allow other drivers and parts of kernel to use the same define for CRC32 polynomial, instead of duplicating it in many places. This code does not bring any functional changes, except moving existing code. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crc32.c')
-rw-r--r--lib/crc32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/crc32.c b/lib/crc32.c
index 2ef20fe84b69..341c54cb4edf 100644
--- a/lib/crc32.c
+++ b/lib/crc32.c
@@ -27,6 +27,7 @@
/* see: Documentation/crc32.txt for a description of algorithms */
#include <linux/crc32.h>
+#include <linux/crc32poly.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/sched.h>