diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2012-05-10 22:28:07 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-05-19 02:16:11 +0200 |
commit | 02daaf2741e74758a119768ca80cdf71c994ebd3 (patch) | |
tree | cebe32331cf5b6187dcab98b7269c11802299088 /include/rdma | |
parent | IB/core: Fix mismatch between locked and pinned pages (diff) | |
download | linux-02daaf2741e74758a119768ca80cdf71c994ebd3.tar.xz linux-02daaf2741e74758a119768ca80cdf71c994ebd3.zip |
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 <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_mad.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h index b513f57e1725..3d81b90cc315 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 |