[openib-general] [PATCH] IB/sdp: Fix warning on 32-bit architectures
Roland Dreier
rdreier at cisco.com
Wed May 10 11:38:38 PDT 2006
The current definition of SDP_OP_RECV leads to:
drivers/infiniband/ulp/sdp/sdp_bcopy.c:208: warning: integer constant is too large for "long" type
on 32-bit architectures. Fix this by making it explicitly u64.
Signed-off-by: Roland Dreier <rolandd at cisco.com>
--- infiniband/ulp/sdp/sdp.h (revision 7012)
+++ infiniband/ulp/sdp/sdp.h (working copy)
@@ -38,7 +38,7 @@ extern int sdp_debug_level;
#define SDP_NUM_WC 4
-#define SDP_OP_RECV 0x800000000L
+#define SDP_OP_RECV ((u64) 0x800000000LL)
enum sdp_mid {
SDP_MID_DATA = 0xFF,
More information about the general
mailing list