Skip to content

Commit

Permalink
lib: don't depend on linux headers being installed.
Browse files Browse the repository at this point in the history
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: feba04f ("lib: add crc64 calculation routines")
Signed-off-by: NeilBrown <[email protected]>
Acked-by: Coly Li <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
neilbrown authored and torvalds committed Dec 29, 2018
1 parent 3868772 commit d8372ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/gen_crc64table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit d8372ba

Please sign in to comment.