Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56dba8cd authored by Dmitry Eremin's avatar Dmitry Eremin Committed by Greg Kroah-Hartman
Browse files

staging/lustre/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.

Lustre-change: http://review.whamcloud.com/7118
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2800


Signed-off-by: default avatarDmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: default avatarJames Simmons <uja.ornl@gmail.com>
Reviewed-by: default avatarBob Glossman <bob.glossman@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarPeng Tao <bergwolf@gmail.com>
Signed-off-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1e8a576e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -651,7 +651,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
}