Commit 02daaf27 authored by Jack Morgenstein's avatar Jack Morgenstein Committed by Roland Dreier
Browse files

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: default avatarJack Morgenstein <>
Signed-off-by: default avatarRoland Dreier <>
parent c4870eb8
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment