From c03a6ffd5efc7511a864683498f129b0ba78309a Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 10 Mar 2019 05:18:41 +0000 Subject: [PATCH] scst, backport.h: Fix RHEL 7 build git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8037 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index ad993b748..19e4cd246 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -875,7 +875,7 @@ static inline struct ib_pd *ib_alloc_pd_backport(struct ib_device *device) #endif /* */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 11, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 11, 0) && RHEL_MAJOR -0 <= 6 struct percpu_ref; typedef void (percpu_ref_func_t)(struct percpu_ref *);