diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2017-09-25 12:38:20 -0500 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2017-09-25 15:53:57 -0700 |
commit | a20d06d7e4b07c8ba12364a5262eeab8455235af (patch) | |
tree | 6e44e0b398476a5bf1662426864d9400c3ba7ca2 /meta-dpdk/recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch | |
parent | 9bf043497c48c45c425081989d142c68968a1385 (diff) | |
download | meta-intel-a20d06d7e4b07c8ba12364a5262eeab8455235af.tar.gz |
Move dpdk and qat components to meta-dpdk and meta-qat
meta-dpdk / meta-qat:
* Move content from meta-intel/common
* Create new basic README/LICENSE files from meta-intel
* Create new layer.conf files
* Fill out the maintainers files
meta-intel:
* update the maintainers files
* bump the meta-intel layer version
* add layer recommend
No other content changes made in this commit.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta-dpdk/recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch')
-rw-r--r-- | meta-dpdk/recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta-dpdk/recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch b/meta-dpdk/recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch new file mode 100644 index 00000000..cc8041e7 --- /dev/null +++ b/meta-dpdk/recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From 3924f5df5aca5ba23abbe9a84173280ede8be2dd Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 1 Aug 2017 20:18:46 -0700 | ||
4 | Subject: [PATCH] examples: Fix maybe-uninitialized warning | ||
5 | |||
6 | Initialize arrays to 0, makes compiler happy about | ||
7 | |||
8 | error: 'vals[0]' may be used uninitialized in this function [-Werror=maybe-uninitialized] | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | examples/qos_sched/args.c | 2 +- | ||
13 | examples/vhost/virtio_net.c | 2 +- | ||
14 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/examples/qos_sched/args.c b/examples/qos_sched/args.c | ||
17 | index 476a0ee..fd601c3 100644 | ||
18 | --- a/examples/qos_sched/args.c | ||
19 | +++ b/examples/qos_sched/args.c | ||
20 | @@ -241,7 +241,7 @@ static int | ||
21 | app_parse_flow_conf(const char *conf_str) | ||
22 | { | ||
23 | int ret; | ||
24 | - uint32_t vals[5]; | ||
25 | + uint32_t vals[5] = {0}; | ||
26 | struct flow_conf *pconf; | ||
27 | uint64_t mask; | ||
28 | |||
29 | diff --git a/examples/vhost/virtio_net.c b/examples/vhost/virtio_net.c | ||
30 | index cc2c3d8..16b5392 100644 | ||
31 | --- a/examples/vhost/virtio_net.c | ||
32 | +++ b/examples/vhost/virtio_net.c | ||
33 | @@ -327,7 +327,7 @@ vs_dequeue_pkts(struct vhost_dev *dev, uint16_t queue_id, | ||
34 | { | ||
35 | struct vhost_queue *queue; | ||
36 | struct rte_vhost_vring *vr; | ||
37 | - uint32_t desc_indexes[MAX_PKT_BURST]; | ||
38 | + uint32_t desc_indexes[MAX_PKT_BURST] = {0}; | ||
39 | uint32_t used_idx; | ||
40 | uint32_t i = 0; | ||
41 | uint16_t free_entries; | ||
42 | -- | ||
43 | 2.13.3 | ||
44 | |||