aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2014-02-14 23:38:42 +0000
committerDimitry Andric <dim@FreeBSD.org>2014-02-14 23:38:42 +0000
commite9e21b6e41292d3660e923d62546e5896bebdcce (patch)
tree0060b1d6708141eae072d3c72c964cec7692e081
parentf44e2a4c0febb2acb420cf9fb00aa29932beaadb (diff)
downloadsrc-e9e21b6e41292d3660e923d62546e5896bebdcce.tar.gz
src-e9e21b6e41292d3660e923d62546e5896bebdcce.zip
In cxgbe, conditionalize the t4_pgprot_wc() function, since it is only
used when DOT5 is defined. Reviewed by: np MFC after: 3 days
Notes
Notes: svn path=/head/; revision=261907
-rw-r--r--sys/dev/cxgbe/iw_cxgbe/provider.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/iw_cxgbe/provider.c b/sys/dev/cxgbe/iw_cxgbe/provider.c
index 2a25ad8e39df..6b1dfa188a1a 100644
--- a/sys/dev/cxgbe/iw_cxgbe/provider.c
+++ b/sys/dev/cxgbe/iw_cxgbe/provider.c
@@ -113,10 +113,12 @@ static struct ib_ucontext *c4iw_alloc_ucontext(struct ib_device *ibdev,
return &context->ibucontext;
}
+#ifdef DOT5
static inline pgprot_t t4_pgprot_wc(pgprot_t prot)
{
return pgprot_writecombine(prot);
}
+#endif
static int c4iw_mmap(struct ib_ucontext *context, struct vm_area_struct *vma)
{