BIGTOP-3076: QFS build failed on ppc64le
authorJun He <jun.he@linaro.org>
Mon, 10 Sep 2018 03:19:14 +0000 (11:19 +0800)
committerJun He <junhe@apache.org>
Tue, 11 Sep 2018 02:43:10 +0000 (02:43 +0000)
QFS build failed on ppc64le, this is caused by conflict definition of
gf_cpu_identify.

This closes #392

Change-Id: Ibc52b426a27c6ed27c71a0e8fabeaaa91577d000
Signed-off-by: Jun He <junhe@apache.org>
bigtop-packages/src/common/qfs/patch0-gf_cpu.diff [new file with mode: 0644]

diff --git a/bigtop-packages/src/common/qfs/patch0-gf_cpu.diff b/bigtop-packages/src/common/qfs/patch0-gf_cpu.diff
new file mode 100644 (file)
index 0000000..8dcc9c2
--- /dev/null
@@ -0,0 +1,16 @@
+diff --git a/ext/gf-complete/src/gf_cpu.c b/ext/gf-complete/src/gf_cpu.c
+index f1afa2b..a0c9b10 100644
+--- a/ext/gf-complete/src/gf_cpu.c
++++ b/ext/gf-complete/src/gf_cpu.c
+@@ -206,10 +206,9 @@ void gf_cpu_identify(void)
+ #else // defined(__arm__) || defined(__aarch64__)
+-int gf_cpu_identify(void)
++void gf_cpu_identify(void)
+ {
+     gf_cpu_identified = 1;
+-    return 0;
+ }
+ #endif