Skip to content

Commit d8372ba

Browse files
neilbrowntorvalds
authored andcommitted
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: feba04f ("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>
1 parent 3868772 commit d8372ba

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎lib/gen_crc64table.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#include <inttypes.h>
1717
#include <stdio.h>
1818

19-
#include <linux/swab.h>
20-
2119
#define CRC64_ECMA182_POLY 0x42F0E1EBA9EA3693ULL
2220

2321
static uint64_t crc64_table[256] = {0};

0 commit comments

Comments
 (0)