diff options
Diffstat (limited to 'recipes-extended/dpdk-dev-libibverbs/files')
5 files changed, 0 insertions, 257 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 deleted file mode 100644 index 93d8aba..0000000 --- a/recipes-extended/dpdk-dev-libibverbs/files/0001-Fix-build-with-clang.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
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 | |||
diff --git a/recipes-extended/dpdk-dev-libibverbs/files/0002-typecast-enum-to-int-before-comparison.patch b/recipes-extended/dpdk-dev-libibverbs/files/0002-typecast-enum-to-int-before-comparison.patch deleted file mode 100644 index 00516eb..0000000 --- a/recipes-extended/dpdk-dev-libibverbs/files/0002-typecast-enum-to-int-before-comparison.patch +++ /dev/null | |||
@@ -1,115 +0,0 @@ | |||
1 | From 7edab012f2d28de7e6d3657ec698e1090d0112de Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 12 Aug 2017 09:25:49 -0700 | ||
4 | Subject: [PATCH 2/4] typecast enum to int before comparison | ||
5 | |||
6 | Fix | ||
7 | error: comparison of unsigned enum expression < 0 is always false [-Werror,-Wtautological-compare] | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | examples/cc_pingpong.c | 2 +- | ||
14 | examples/rc_pingpong.c | 2 +- | ||
15 | examples/srq_pingpong.c | 2 +- | ||
16 | examples/task_pingpong.c | 2 +- | ||
17 | examples/uc_pingpong.c | 2 +- | ||
18 | examples/umr_rc.c | 2 +- | ||
19 | examples/xsrq_pingpong.c | 2 +- | ||
20 | 7 files changed, 7 insertions(+), 7 deletions(-) | ||
21 | |||
22 | diff --git a/examples/cc_pingpong.c b/examples/cc_pingpong.c | ||
23 | index 7b3e397..567c503 100644 | ||
24 | --- a/examples/cc_pingpong.c | ||
25 | +++ b/examples/cc_pingpong.c | ||
26 | @@ -1408,7 +1408,7 @@ int main(int argc, char *argv[]) | ||
27 | |||
28 | case 'm': | ||
29 | mtu = pp_mtu_to_enum(strtol(optarg, NULL, 0)); | ||
30 | - if (mtu < 0) { | ||
31 | + if ((int)mtu < 0) { | ||
32 | usage(argv[0]); | ||
33 | return 1; | ||
34 | } | ||
35 | diff --git a/examples/rc_pingpong.c b/examples/rc_pingpong.c | ||
36 | index 786577e..e661368 100644 | ||
37 | --- a/examples/rc_pingpong.c | ||
38 | +++ b/examples/rc_pingpong.c | ||
39 | @@ -759,7 +759,7 @@ int main(int argc, char *argv[]) | ||
40 | |||
41 | case 'm': | ||
42 | mtu = pp_mtu_to_enum(strtol(optarg, NULL, 0)); | ||
43 | - if (mtu < 0) { | ||
44 | + if ((int)mtu < 0) { | ||
45 | usage(argv[0]); | ||
46 | return 1; | ||
47 | } | ||
48 | diff --git a/examples/srq_pingpong.c b/examples/srq_pingpong.c | ||
49 | index 9762866..f85a7cd 100644 | ||
50 | --- a/examples/srq_pingpong.c | ||
51 | +++ b/examples/srq_pingpong.c | ||
52 | @@ -697,7 +697,7 @@ int main(int argc, char *argv[]) | ||
53 | |||
54 | case 'm': | ||
55 | mtu = pp_mtu_to_enum(strtol(optarg, NULL, 0)); | ||
56 | - if (mtu < 0) { | ||
57 | + if ((int)mtu < 0) { | ||
58 | usage(argv[0]); | ||
59 | return 1; | ||
60 | } | ||
61 | diff --git a/examples/task_pingpong.c b/examples/task_pingpong.c | ||
62 | index 748f8bb..d03a8b2 100644 | ||
63 | --- a/examples/task_pingpong.c | ||
64 | +++ b/examples/task_pingpong.c | ||
65 | @@ -1005,7 +1005,7 @@ int main(int argc, char *argv[]) | ||
66 | |||
67 | case 'm': | ||
68 | mtu = pp_mtu_to_enum(strtol(optarg, NULL, 0)); | ||
69 | - if (mtu < 0) { | ||
70 | + if ((int)mtu < 0) { | ||
71 | usage(argv[0]); | ||
72 | return 1; | ||
73 | } | ||
74 | diff --git a/examples/uc_pingpong.c b/examples/uc_pingpong.c | ||
75 | index 879bd77..a38a054 100644 | ||
76 | --- a/examples/uc_pingpong.c | ||
77 | +++ b/examples/uc_pingpong.c | ||
78 | @@ -606,7 +606,7 @@ int main(int argc, char *argv[]) | ||
79 | |||
80 | case 'm': | ||
81 | mtu = pp_mtu_to_enum(strtol(optarg, NULL, 0)); | ||
82 | - if (mtu < 0) { | ||
83 | + if ((int)mtu < 0) { | ||
84 | usage(argv[0]); | ||
85 | return 1; | ||
86 | } | ||
87 | diff --git a/examples/umr_rc.c b/examples/umr_rc.c | ||
88 | index ab76d3c..0ec636a 100644 | ||
89 | --- a/examples/umr_rc.c | ||
90 | +++ b/examples/umr_rc.c | ||
91 | @@ -950,7 +950,7 @@ int main(int argc, char *argv[]) | ||
92 | |||
93 | case 'm': | ||
94 | mtu = pp_mtu_to_enum(strtol(optarg, NULL, 0)); | ||
95 | - if (mtu < 0) { | ||
96 | + if ((int)mtu < 0) { | ||
97 | usage(argv[0]); | ||
98 | return 1; | ||
99 | } | ||
100 | diff --git a/examples/xsrq_pingpong.c b/examples/xsrq_pingpong.c | ||
101 | index c4ae51d..cebae5d 100644 | ||
102 | --- a/examples/xsrq_pingpong.c | ||
103 | +++ b/examples/xsrq_pingpong.c | ||
104 | @@ -910,7 +910,7 @@ int main(int argc, char *argv[]) | ||
105 | break; | ||
106 | case 'm': | ||
107 | ctx.mtu = pp_mtu_to_enum(strtol(optarg, NULL, 0)); | ||
108 | - if (ctx.mtu < 0) { | ||
109 | + if ((int)ctx.mtu < 0) { | ||
110 | usage(argv[0]); | ||
111 | return 1; | ||
112 | } | ||
113 | -- | ||
114 | 2.14.1 | ||
115 | |||
diff --git a/recipes-extended/dpdk-dev-libibverbs/files/0003-initialize-use_config_mr.patch b/recipes-extended/dpdk-dev-libibverbs/files/0003-initialize-use_config_mr.patch deleted file mode 100644 index da4ef15..0000000 --- a/recipes-extended/dpdk-dev-libibverbs/files/0003-initialize-use_config_mr.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 936da7fcab06ff3bc7c1c1e1ab108a36797da039 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 12 Aug 2017 09:28:00 -0700 | ||
4 | Subject: [PATCH 3/4] initialize use_config_mr | ||
5 | |||
6 | Fixes | ||
7 | error: variable 'use_contig_mr' is uninitialized when used here [-Werror,-Wuninitialized] | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | examples/dcini.c | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/examples/dcini.c b/examples/dcini.c | ||
17 | index 001e905..08d75ec 100644 | ||
18 | --- a/examples/dcini.c | ||
19 | +++ b/examples/dcini.c | ||
20 | @@ -269,7 +269,7 @@ int main(int argc, char *argv[]) | ||
21 | int size = 4096; | ||
22 | int iters = 1000; | ||
23 | int use_event = 0; | ||
24 | - int use_contig_mr; | ||
25 | + int use_contig_mr = 0; | ||
26 | int err; | ||
27 | struct ibv_ah_attr ah_attr; | ||
28 | struct dc_ctx ctx = { | ||
29 | -- | ||
30 | 2.14.1 | ||
31 | |||
diff --git a/recipes-extended/dpdk-dev-libibverbs/files/0004-Fix-clang-warnings.patch b/recipes-extended/dpdk-dev-libibverbs/files/0004-Fix-clang-warnings.patch deleted file mode 100644 index 26f09e5..0000000 --- a/recipes-extended/dpdk-dev-libibverbs/files/0004-Fix-clang-warnings.patch +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | From 08944074f9d9525a57e88a4990dd833d0999b8df Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 12 Aug 2017 09:36:55 -0700 | ||
4 | Subject: [PATCH 4/4] Fix clang warnings | ||
5 | |||
6 | ../../../../../../../workspace/sources/dpdk-dev-libibverbs/examples/intf.c:1221:11: error: comparison of array 'ctx->dev_name' not equal to a null pointer is always true [-Werror,-Wtautological-pointer-compare] | ||
7 | if (ctx->dev_name != NULL) { | ||
8 | ~~~~~^~~~~~~~ ~~~~ | ||
9 | ../../../../../../../workspace/sources/dpdk-dev-libibverbs/examples/intf.c:1893:13: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare] | ||
10 | if (size < 0 || size > MAX_MSG_SIZE) | ||
11 | ~~~~ ^ ~ | ||
12 | ../../../../../../../workspace/sources/dpdk-dev-libibverbs/examples/intf.c:1901:12: error: comparison of unsigned enum expression < 0 is always false [-Werror,-Wtautological-compare] | ||
13 | if (mtu < 0) | ||
14 | ~~~ ^ ~ | ||
15 | |||
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
17 | --- | ||
18 | Upstream-Status: Pending | ||
19 | |||
20 | examples/intf.c | 6 +++--- | ||
21 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
22 | |||
23 | diff --git a/examples/intf.c b/examples/intf.c | ||
24 | index 8d158ee..1f1af50 100644 | ||
25 | --- a/examples/intf.c | ||
26 | +++ b/examples/intf.c | ||
27 | @@ -1218,7 +1218,7 @@ int create_resources(struct intf_context *ctx) | ||
28 | return 1; | ||
29 | } | ||
30 | |||
31 | - if (!ctx->dev_name) { | ||
32 | + if (!ctx->dev_name[0]) { | ||
33 | ctx->ib_dev = *dev_list; | ||
34 | if (!ctx->ib_dev) { | ||
35 | fprintf(stderr, "No IB devices found\n"); | ||
36 | @@ -1828,7 +1828,7 @@ int parse_input(struct intf_input *input, struct intf_input *default_input, int | ||
37 | char *ib_devname = NULL; | ||
38 | char *vrbs_intf = NULL; | ||
39 | char *cpus_str = NULL; | ||
40 | - unsigned long long size; | ||
41 | + long long size; | ||
42 | |||
43 | memcpy(input, default_input, sizeof(*input)); | ||
44 | |||
45 | @@ -1898,7 +1898,7 @@ int parse_input(struct intf_input *input, struct intf_input *default_input, int | ||
46 | |||
47 | case 'm': | ||
48 | mtu = mtu_to_enum(strtol(optarg, NULL, 0)); | ||
49 | - if (mtu < 0) | ||
50 | + if ((int)mtu < 0) | ||
51 | goto print_usage; | ||
52 | input->ib_data.mtu = mtu; | ||
53 | break; | ||
54 | -- | ||
55 | 2.14.1 | ||
56 | |||
diff --git a/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch b/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch deleted file mode 100644 index a7708d7..0000000 --- a/recipes-extended/dpdk-dev-libibverbs/files/init_c.patch +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | dpdk-dev-libibverbs: suppress gcc7 warnings | ||
2 | |||
3 | We know that format-truncation in init.c is okay. | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | ||
8 | |||
9 | |||
10 | --- a/src/init.c | ||
11 | +++ b/src/init.c | ||
12 | @@ -31,6 +31,11 @@ | ||
13 | * SOFTWARE. | ||
14 | */ | ||
15 | |||
16 | +/* For this file we know we can ignore this warning. */ | ||
17 | +#if __GNUC__ > 6 | ||
18 | +#pragma GCC diagnostic ignored "-Wformat-truncation" | ||
19 | +#endif | ||
20 | + | ||
21 | #if HAVE_CONFIG_H | ||
22 | # include <config.h> | ||
23 | #endif /* HAVE_CONFIG_H */ | ||