1
0
Fork 0

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: feba04fd2c ("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>
hifive-unleashed-5.1
NeilBrown 2018-12-29 13:58:09 +11:00 committed by Linus Torvalds
parent 3868772b99
commit d8372ba8ce
1 changed files with 0 additions and 2 deletions

View File

@ -16,8 +16,6 @@
#include <inttypes.h>
#include <stdio.h>
#include <linux/swab.h>
#define CRC64_ECMA182_POLY 0x42F0E1EBA9EA3693ULL
static uint64_t crc64_table[256] = {0};