From: Jack Morgenstein Date: Thu, 10 May 2012 20:28:07 +0000 (+0300) Subject: IB/core: Fix IB_SA_COMP_MASK macro X-Git-Tag: upstream/snapshot3+hdmi~7465^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02daaf2741e74758a119768ca80cdf71c994ebd3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git IB/core: Fix IB_SA_COMP_MASK macro It needs parentheses around the argument, so that it can be used with complex arguments (e.g., "n+5"). Signed-off-by: Jack Morgenstein Signed-off-by: Roland Dreier --- diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h index b513f57..3d81b90 100644 --- a/include/rdma/ib_mad.h +++ b/include/rdma/ib_mad.h @@ -160,7 +160,7 @@ struct ib_rmpp_hdr { typedef u64 __bitwise ib_sa_comp_mask; -#define IB_SA_COMP_MASK(n) ((__force ib_sa_comp_mask) cpu_to_be64(1ull << n)) +#define IB_SA_COMP_MASK(n) ((__force ib_sa_comp_mask) cpu_to_be64(1ull << (n))) /* * ib_sa_hdr and ib_sa_mad structures must be packed because they have