Commit d5121163 authored by NeilBrown's avatar NeilBrown Committed by Xie XiuQi
Browse files

lib: don't depend on linux headers being installed.



mainline inclusion
from mainline-5.0
commit d8372ba8
category: bugfix
bugzilla: 5792
CVE: NA

-------------------------------------------------

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: feba04fd ("lib: add crc64 calculation routines")
Signed-off-by: default avatarNeilBrown <neil@brown.name>
Acked-by: default avatarColy Li <colyli@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent f497e9ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment