]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: define SDP_MAX_PAYLOAD as ulong instead of int, to comply with PAGE_SIZE
authorEldad Zinger <eldadz@mellanox.co.il>
Wed, 14 Jul 2010 04:50:43 +0000 (07:50 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:05:11 +0000 (05:05 -0700)
SDP_MAX_PAYLOAD is compared a lot to PAGE_SIZE by min(), and on some kernels a
compilation warning of "comparison of distinct pointer types lacks a cast"
appears.

Signed-off-by: Eldad Zinger <eldadz@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp.h

index 0e76f5b06df51474f3f6388efda01c2916023d84..70f67f1fce74e011a7d3d7d9d15ccae71742a682 100644 (file)
@@ -47,7 +47,7 @@
 /* limit tx payload len, if the sink supports bigger buffers than the source
  * can handle.
  * or rx fragment size (limited by sge->length size) */
-#define SDP_MAX_PAYLOAD ((1 << 16) - SDP_SKB_HEAD_SIZE)
+#define SDP_MAX_PAYLOAD ((1UL << 16) - SDP_SKB_HEAD_SIZE)
 
 #define SDP_NUM_WC 4