diff options
Diffstat (limited to 'recipes-extended/dpdk-dev-libibverbs/files/0001-Fix-build-with-clang.patch')
-rw-r--r-- | recipes-extended/dpdk-dev-libibverbs/files/0001-Fix-build-with-clang.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-extended/dpdk-dev-libibverbs/files/0001-Fix-build-with-clang.patch b/recipes-extended/dpdk-dev-libibverbs/files/0001-Fix-build-with-clang.patch new file mode 100644 index 0000000..93d8aba --- /dev/null +++ b/recipes-extended/dpdk-dev-libibverbs/files/0001-Fix-build-with-clang.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From b705caef6c717adc80585843b7fcc68700ced4b6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 12 Aug 2017 09:25:24 -0700 | ||
4 | Subject: [PATCH 1/4] Fix build with clang | ||
5 | |||
6 | Fix | ||
7 | error: logical not is only applied to the left hand side of this bitwise operator [-Werror,-Wlogical-not-parentheses] | ||
8 | if ((!port_attr->comp_mask & IBV_EXP_QUERY_PORT_ATTR_MASK1) || | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | Upstream-Status: Pending | ||
13 | |||
14 | include/infiniband/verbs_exp.h | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/include/infiniband/verbs_exp.h b/include/infiniband/verbs_exp.h | ||
18 | index ae94deb..42ed83d 100644 | ||
19 | --- a/include/infiniband/verbs_exp.h | ||
20 | +++ b/include/infiniband/verbs_exp.h | ||
21 | @@ -2955,7 +2955,7 @@ static inline int ibv_exp_query_port(struct ibv_context *context, | ||
22 | &port_attr->port_attr); | ||
23 | |||
24 | /* Check that only valid flags were given */ | ||
25 | - if ((!port_attr->comp_mask & IBV_EXP_QUERY_PORT_ATTR_MASK1) || | ||
26 | + if (!(port_attr->comp_mask & IBV_EXP_QUERY_PORT_ATTR_MASK1) || | ||
27 | (port_attr->comp_mask & ~IBV_EXP_QUERY_PORT_ATTR_MASKS) || | ||
28 | (port_attr->mask1 & ~IBV_EXP_QUERY_PORT_MASK)) { | ||
29 | errno = EINVAL; | ||
30 | -- | ||
31 | 2.14.1 | ||
32 | |||