From: Vladimir Saveliev Date: Thu, 12 Jul 2018 19:45:11 +0000 (+0300) Subject: LU-11132 compile: fix LC_BI_BDEV for old kernels X-Git-Tag: 2.11.53~1 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=63ac7eecf5ad61e311c3c963a2cb12b1045f72e2;ds=inline LU-11132 compile: fix LC_BI_BDEV for old kernels struct bio is located in linux/bio.h in 2.6 kernel serie. LC_BI_BDEV uses linux/blk_types.h. That makes the configuration check to fail for those kernels and breaks compiling. Use linux/bio.h in LC_BI_BDEV so that it worked for both new and all kernels. Signed-off-by: Vladimir Saveliev Change-Id: Iaeefea9ba96ebe4dad30acedb5fa7551c4516241 Reviewed-on: https://review.whamcloud.com/32799 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Minh Diep --- diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 2dd5327..ce53272 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -2887,7 +2887,7 @@ pagevec_init, [ AC_DEFUN([LC_BI_BDEV], [ LB_CHECK_COMPILE([if 'bi_bdev' exist], bi_bdev, [ - #include + #include ],[ ((struct bio *)0)->bi_bdev = NULL; ],[