diff options
author | Saul Wold <sgw@linux.intel.com> | 2017-09-26 08:35:13 -0700 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2017-09-26 08:35:13 -0700 |
commit | 67149d869eddad4b1e487fbc4368974c153f358d (patch) | |
tree | be9db2eae71f09e50e2fa6fbc6cacb95082eacd0 /meta-dpdk/recipes-extended/dpdk-dev-libibverbs/files/0004-Fix-clang-warnings.patch | |
parent | a98b71ccadc1458bf3a959e328d5ae814eb7e9b3 (diff) | |
download | meta-dpdk-67149d869eddad4b1e487fbc4368974c153f358d.tar.gz |
Removal of meta-intel content to make meta-dpdk standalone
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta-dpdk/recipes-extended/dpdk-dev-libibverbs/files/0004-Fix-clang-warnings.patch')
-rw-r--r-- | meta-dpdk/recipes-extended/dpdk-dev-libibverbs/files/0004-Fix-clang-warnings.patch | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/meta-dpdk/recipes-extended/dpdk-dev-libibverbs/files/0004-Fix-clang-warnings.patch b/meta-dpdk/recipes-extended/dpdk-dev-libibverbs/files/0004-Fix-clang-warnings.patch deleted file mode 100644 index 26f09e5..0000000 --- a/meta-dpdk/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 | |||