[openib-general] [PATCH] IB/sdp: Fix build on sparc64

Roland Dreier rdreier at cisco.com
Wed May 10 11:33:34 PDT 2006


At least sparc64 requires <linux/dma-mapping.h> to be included to pick
up the defines of DMA_TO_DEVICE et al.  Add this include to sdp_bcopy.c
so SDP will build on sparc64.

Signed-off-by: Roland Dreier <rolandd at cisco.com>

---

BTW, it would probably look nicer to include <rdma/xxx> after
<linux/yyy> files, but I guess it doesn't make much difference.

--- infiniband/ulp/sdp/sdp_bcopy.c	(revision 7012)
+++ infiniband/ulp/sdp/sdp_bcopy.c	(working copy)
@@ -34,6 +34,7 @@
 #include <rdma/ib_verbs.h>
 #include <rdma/rdma_cm.h>
 #include <linux/interrupt.h>
+#include <linux/dma-mapping.h>
 #include "sdp.h"
 
 /* Like tcp_fin */



More information about the general mailing list