xref: /OK3568_Linux_fs/buildroot/package/ti-utils/0001-plt.h-fix-build-with-gcc-10.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 9ed1946cef876acd5346ae806eecd7fc2e1e5341 Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Sat, 3 Oct 2020 10:32:48 +0200
4Subject: [PATCH] plt.h: fix build with gcc 10
5
6Drop EFUSE_PARAMETER_TYPE_ENM to avoid the following build failure with
7gcc 10 (which defaults to -fno-common):
8
9/home/naourr/work/instance-1/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: misc_cmds.o:(.bss+0x0): multiple definition of `EFUSE_PARAMETER_TYPE_ENM'; nvs.o:(.bss+0x0): first defined here
10
11Fixes:
12 - http://autobuild.buildroot.org/results/e96c70910544085dc5299fa59f80ab9c5922fde2
13
14Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
15[Upstream status: https://github.com/gxk/ti-utils/pull/2]
16---
17 plt.h | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/plt.h b/plt.h
21index 523fded..8ba01c9 100644
22--- a/plt.h
23+++ b/plt.h
24@@ -363,7 +363,7 @@ enum EFUSE_PARAMETER_TYPE_ENMT {
25 	TX_BIP_PD_BUFFER_VBIAS_ERROR_E,
26 	EFUSE_NUMBER_OF_PARAMETERS_E,
27 	EFUSE_LAST_PARAMETER_E = (EFUSE_NUMBER_OF_PARAMETERS_E - 1)
28-} EFUSE_PARAMETER_TYPE_ENM;
29+};
30
31 int get_mac_addr(int ifc_num, unsigned char *mac_addr);
32
33--
342.28.0
35
36