lib: don't depend on linux headers being installed.
authorNeilBrown <neil@brown.name>
Sat, 29 Dec 2018 02:58:09 +0000 (13:58 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 29 Dec 2018 19:36:44 +0000 (11:36 -0800)
commitd8372ba8ce288acdfce67cb873b2a741785c2e88
treee8801e5e3e338a59bcc98aec285f5e8aac12a7bc
parent3868772b99e3146d02cf47e739d79022eba1d77c
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>
lib/gen_crc64table.c