Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jack Morgenstein and committed by
Roland Dreier
02daaf27 c4870eb8

+1 -1
+1 -1
include/rdma/ib_mad.h
··· 160 160 161 161 typedef u64 __bitwise ib_sa_comp_mask; 162 162 163 - #define IB_SA_COMP_MASK(n) ((__force ib_sa_comp_mask) cpu_to_be64(1ull << n)) 163 + #define IB_SA_COMP_MASK(n) ((__force ib_sa_comp_mask) cpu_to_be64(1ull << (n))) 164 164 165 165 /* 166 166 * ib_sa_hdr and ib_sa_mad structures must be packed because they have