From: Eldad Zinger Date: Wed, 14 Jul 2010 04:50:43 +0000 (+0300) Subject: sdp: define SDP_MAX_PAYLOAD as ulong instead of int, to comply with PAGE_SIZE X-Git-Tag: v4.1.12-92~264^2~5^2~141 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=89d89b6e75e9106fd3a12aae586b57bb85e2e154;p=users%2Fjedix%2Flinux-maple.git sdp: define SDP_MAX_PAYLOAD as ulong instead of int, to comply with PAGE_SIZE 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 --- diff --git a/drivers/infiniband/ulp/sdp/sdp.h b/drivers/infiniband/ulp/sdp/sdp.h index 0e76f5b06df51..70f67f1fce74e 100644 --- a/drivers/infiniband/ulp/sdp/sdp.h +++ b/drivers/infiniband/ulp/sdp/sdp.h @@ -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