summaryrefslogtreecommitdiffstats
path: root/recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch')
-rw-r--r--recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch14
1 files changed, 6 insertions, 8 deletions
diff --git a/recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch b/recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch
index cc8041e..2facd39 100644
--- a/recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch
+++ b/recipes-extended/dpdk/dpdk/0001-examples-Fix-maybe-uninitialized-warning.patch
@@ -1,4 +1,4 @@
1From 3924f5df5aca5ba23abbe9a84173280ede8be2dd Mon Sep 17 00:00:00 2001 1From 41ac64efa5050430b73e0f8813dffc7327083273 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 1 Aug 2017 20:18:46 -0700 3Date: Tue, 1 Aug 2017 20:18:46 -0700
4Subject: [PATCH] examples: Fix maybe-uninitialized warning 4Subject: [PATCH] examples: Fix maybe-uninitialized warning
@@ -8,16 +8,17 @@ Initialize arrays to 0, makes compiler happy about
8error: 'vals[0]' may be used uninitialized in this function [-Werror=maybe-uninitialized] 8error: 'vals[0]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
9 9
10Signed-off-by: Khem Raj <raj.khem@gmail.com> 10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
11--- 12---
12 examples/qos_sched/args.c | 2 +- 13 examples/qos_sched/args.c | 2 +-
13 examples/vhost/virtio_net.c | 2 +- 14 examples/vhost/virtio_net.c | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-) 15 2 files changed, 2 insertions(+), 2 deletions(-)
15 16
16diff --git a/examples/qos_sched/args.c b/examples/qos_sched/args.c 17diff --git a/examples/qos_sched/args.c b/examples/qos_sched/args.c
17index 476a0ee..fd601c3 100644 18index 83eee95cc28e..3d2c0fbd6d0a 100644
18--- a/examples/qos_sched/args.c 19--- a/examples/qos_sched/args.c
19+++ b/examples/qos_sched/args.c 20+++ b/examples/qos_sched/args.c
20@@ -241,7 +241,7 @@ static int 21@@ -212,7 +212,7 @@ static int
21 app_parse_flow_conf(const char *conf_str) 22 app_parse_flow_conf(const char *conf_str)
22 { 23 {
23 int ret; 24 int ret;
@@ -27,10 +28,10 @@ index 476a0ee..fd601c3 100644
27 uint64_t mask; 28 uint64_t mask;
28 29
29diff --git a/examples/vhost/virtio_net.c b/examples/vhost/virtio_net.c 30diff --git a/examples/vhost/virtio_net.c b/examples/vhost/virtio_net.c
30index cc2c3d8..16b5392 100644 31index f6e00674d9af..a4a90704d7b4 100644
31--- a/examples/vhost/virtio_net.c 32--- a/examples/vhost/virtio_net.c
32+++ b/examples/vhost/virtio_net.c 33+++ b/examples/vhost/virtio_net.c
33@@ -327,7 +327,7 @@ vs_dequeue_pkts(struct vhost_dev *dev, uint16_t queue_id, 34@@ -293,7 +293,7 @@ vs_dequeue_pkts(struct vhost_dev *dev, uint16_t queue_id,
34 { 35 {
35 struct vhost_queue *queue; 36 struct vhost_queue *queue;
36 struct rte_vhost_vring *vr; 37 struct rte_vhost_vring *vr;
@@ -39,6 +40,3 @@ index cc2c3d8..16b5392 100644
39 uint32_t used_idx; 40 uint32_t used_idx;
40 uint32_t i = 0; 41 uint32_t i = 0;
41 uint16_t free_entries; 42 uint16_t free_entries;
42--
432.13.3
44