From 9ec520b7e8a1858266c747f8501b347385914d3f Mon Sep 17 00:00:00 2001 From: Dmitry Eremin Date: Thu, 25 Jul 2013 20:47:44 +0400 Subject: [PATCH] LU-2800 build: fix compilation issue with is_compat_task After removing LIBCFS_HAVE_IS_COMPAT_TASK test we have a compilation issue with kernels configured without CONFIG_COMPAT. The fix for Change-Id: Ieffc3b32611e00f2a19aa2645205ec6e1cf57a20 Signed-off-by: Dmitry Eremin Change-Id: I2725e892aea1a86bd43fe19ab099f6f116d1fdd8 Reviewed-on: http://review.whamcloud.com/7118 Reviewed-by: James Simmons Tested-by: Hudson Reviewed-by: Bob Glossman Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/llite/llite_internal.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index d72fe69..912b04d 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -657,7 +657,12 @@ static inline int ll_need_32bit_api(struct ll_sb_info *sbi) #if BITS_PER_LONG == 32 return 1; #else - return unlikely(is_compat_task() || (sbi->ll_flags & LL_SBI_32BIT_API)); + return unlikely( +#ifdef CONFIG_COMPAT + is_compat_task() || +#endif + (sbi->ll_flags & LL_SBI_32BIT_API) + ); #endif } -- 1.8.3.1