projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4870eb
)
IB/core: Fix IB_SA_COMP_MASK macro
author
Jack Morgenstein
<jackm@dev.mellanox.co.il>
Thu, 10 May 2012 20:28:07 +0000
(23:28 +0300)
committer
Roland Dreier
<roland@purestorage.com>
Sat, 19 May 2012 00:16:11 +0000
(17:16 -0700)
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>
include/rdma/ib_mad.h
patch
|
blob
|
blame
|
history
diff --git
a/include/rdma/ib_mad.h
b/include/rdma/ib_mad.h
index b513f57e172544d29edf6acec9479f4e7af679dc..3d81b90cc31588b815167c109fec65cf50865538 100644
(file)
--- 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