From 88a0262fdea8eadd620e0adf593332203465673d Mon Sep 17 00:00:00 2001 From: Dmitry Eremin Date: Wed, 11 Feb 2015 16:39:31 +0300 Subject: [PATCH] LU-5912 build: Fix XeonPhi build Need an extra check for old kernel style parameters. Signed-off-by: Dmitry Eremin Change-Id: I92b1b8579d2190bf526b3194cd83d0917fb3b4af Reviewed-on: http://review.whamcloud.com/13730 Tested-by: Jenkins Reviewed-by: Bob Glossman Tested-by: Maloo Reviewed-by: Oleg Drokin --- libcfs/include/libcfs/linux/linux-fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcfs/include/libcfs/linux/linux-fs.h b/libcfs/include/libcfs/linux/linux-fs.h index c0a44d2..9051491 100644 --- a/libcfs/include/libcfs/linux/linux-fs.h +++ b/libcfs/include/libcfs/linux/linux-fs.h @@ -66,7 +66,7 @@ #define filp_write(fp, buf, size, pos) \ ((fp)->f_op->write((fp), (buf), (size), pos)) -#ifdef HAVE_FILE_FSYNC_4ARGS +#if defined(HAVE_FILE_FSYNC_4ARGS) || defined(HAVE_FILE_FSYNC_2ARGS) #define ll_vfs_fsync_range(fp, start, end, datasync) \ vfs_fsync_range(fp, start, end, datasync) #else -- 1.8.3.1