diff options
author | dim <dim@FreeBSD.org> | 2014-02-14 23:38:42 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-02-14 23:38:42 +0000 |
commit | 9a614d1229e589e53599567c4d742e60ecf6d637 (patch) | |
tree | 0060b1d6708141eae072d3c72c964cec7692e081 /sys/dev | |
parent | 6558baa4b2b7392369a46caef1ff8146ec654be2 (diff) | |
download | FreeBSD-src-9a614d1229e589e53599567c4d742e60ecf6d637.zip FreeBSD-src-9a614d1229e589e53599567c4d742e60ecf6d637.tar.gz |
In cxgbe, conditionalize the t4_pgprot_wc() function, since it is only
used when DOT5 is defined.
Reviewed by: np
MFC after: 3 days
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cxgbe/iw_cxgbe/provider.c | 2 |
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 2a25ad8..6b1dfa1 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) { |