summaryrefslogtreecommitdiffstats
path: root/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-and-2.0.0-ixgbe-fix-a-build-warning-being-treated-as-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-and-2.0.0-ixgbe-fix-a-build-warning-being-treated-as-error.patch')
-rw-r--r--meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-and-2.0.0-ixgbe-fix-a-build-warning-being-treated-as-error.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-and-2.0.0-ixgbe-fix-a-build-warning-being-treated-as-error.patch b/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-and-2.0.0-ixgbe-fix-a-build-warning-being-treated-as-error.patch
new file mode 100644
index 0000000..fef9108
--- /dev/null
+++ b/meta-isg/common/recipes-extended/dpdk/dpdk/dpdk-1.8.0-and-2.0.0-ixgbe-fix-a-build-warning-being-treated-as-error.patch
@@ -0,0 +1,49 @@
1From a635f49a5873a104c8867bd1f6375d7a5064be5e Mon Sep 17 00:00:00 2001
2From: Anuj Mittal <anujx.mittal@intel.com>
3Date: Thu, 8 Oct 2015 22:46:13 +0800
4Subject: [PATCH] ixgbe: fix a build warning being treated as error
5
6Upstream-Status: Inappropriate [other]
7
8The change is part of a feature commit upstream (e0ba4e77605ab500518247cb6fab98dd3d87ba97)
9that we don't want to backport.
10
11Initialize the data byte to avoid warnings like:
12
13 lib/librte_pmd_ixgbe/ixgbe/ixgbe_phy.c: In function 'ixgbe_read_i2c_combined_generic':
14 lib/librte_pmd_ixgbe/ixgbe/ixgbe_phy.c:2101:9: error: 'low_bits' may be used
15 uninitialized in this function [-Werror=maybe-uninitialized]
16 *data |= bit << i;
17 ^
18 dpdk/2.0.0-r0/dpdk-2.0.0/lib/librte_pmd_ixgbe/ixgbe/ixgbe_phy.c:120:5: note:
19 'low_bits' was declared here
20 u8 low_bits;
21 ^
22 lib/librte_pmd_ixgbe/ixgbe/ixgbe_phy.c:2101:9: error: 'high_bits' may be used
23 uninitialized in this function [-Werror=maybe-uninitialized]
24 *data |= bit << i;
25 ^
26 lib/librte_pmd_ixgbe/ixgbe/ixgbe_phy.c:119:5: note: 'high_bits' was declared here
27 u8 high_bits;
28
29Signed-off-by: Anuj Mittal <anujx.mittal@intel.com>
30---
31 lib/librte_pmd_ixgbe/ixgbe/ixgbe_phy.c | 2 +-
32 1 file changed, 1 insertion(+), 1 deletion(-)
33
34diff --git a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_phy.c b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_phy.c
35index 2305448..ec34753 100644
36--- a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_phy.c
37+++ b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_phy.c
38@@ -2095,7 +2095,7 @@ STATIC s32 ixgbe_clock_in_i2c_byte(struct ixgbe_hw *hw, u8 *data)
39 bool bit = 0;
40
41 DEBUGFUNC("ixgbe_clock_in_i2c_byte");
42-
43+ *data = 0;
44 for (i = 7; i >= 0; i--) {
45 ixgbe_clock_in_i2c_bit(hw, &bit);
46 *data |= bit << i;
47--
481.7.9.5
49