summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeilBrown <neil@brown.name>2018-12-28 21:58:09 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2018-12-29 14:36:44 -0500
commitd8372ba8ce288acdfce67cb873b2a741785c2e88 (patch)
treee8801e5e3e338a59bcc98aec285f5e8aac12a7bc
parent3868772b99e3146d02cf47e739d79022eba1d77c (diff)
lib: don't depend on linux headers being installed.
gen_crc64table requires linux include files to be installed in /usr/include/linux. This is a new requrement so hosts that could previously build the kernel, now cannot. gen_crc64table makes this requirement by including <linux/swab.h>, but nothing from that header is actaully used. So remove the #include, so that the linux headers no longer need to be installed. Fixes: feba04fd2cf8 ("lib: add crc64 calculation routines") Signed-off-by: NeilBrown <neil@brown.name> Acked-by: Coly Li <colyli@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--lib/gen_crc64table.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/gen_crc64table.c b/lib/gen_crc64table.c
index 9011926e4162..094b43aef8db 100644
--- a/lib/gen_crc64table.c
+++ b/lib/gen_crc64table.c
@@ -16,8 +16,6 @@
16#include <inttypes.h> 16#include <inttypes.h>
17#include <stdio.h> 17#include <stdio.h>
18 18
19#include <linux/swab.h>
20
21#define CRC64_ECMA182_POLY 0x42F0E1EBA9EA3693ULL 19#define CRC64_ECMA182_POLY 0x42F0E1EBA9EA3693ULL
22 20
23static uint64_t crc64_table[256] = {0}; 21static uint64_t crc64_table[256] = {0};