summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-06-15 18:17:07 -0700
committerKhem Raj <raj.khem@gmail.com>2021-06-18 08:33:07 -0700
commit07f899735602502a59f875f83fb982fe3a95964a (patch)
tree8f1c3a78c8554fa21d5dcb53e33fdcc50be7db6d
parentb649d4cde487c1b7c0734214d2bb709a7aab9b71 (diff)
downloadmeta-openembedded-07f899735602502a59f875f83fb982fe3a95964a.tar.gz
ltrace: Remove unused static function
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/ltrace/ltrace/0001-ppc-Remove-unused-host_powerpc64-function.patch37
-rw-r--r--meta-oe/recipes-devtools/ltrace/ltrace_git.bb1
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-ppc-Remove-unused-host_powerpc64-function.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ppc-Remove-unused-host_powerpc64-function.patch
new file mode 100644
index 0000000000..39e1f77a0a
--- /dev/null
+++ b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ppc-Remove-unused-host_powerpc64-function.patch
@@ -0,0 +1,37 @@
1From 4517bf59838f40eb6e3f46e39adb5e5090c59df8 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 15 Jun 2021 18:14:36 -0700
4Subject: [PATCH] ppc: Remove unused host_powerpc64 function
5
6This function is dead code, remove it which avoids compiler warnings
7with clang
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 sysdeps/linux-gnu/ppc/plt.c | 10 ----------
12 1 file changed, 10 deletions(-)
13
14diff --git a/sysdeps/linux-gnu/ppc/plt.c b/sysdeps/linux-gnu/ppc/plt.c
15index 5f81889..9d1838b 100644
16--- a/sysdeps/linux-gnu/ppc/plt.c
17+++ b/sysdeps/linux-gnu/ppc/plt.c
18@@ -142,16 +142,6 @@
19 #define PPC64_PLT_STUB_SIZE 4
20 #endif
21
22-static inline int
23-host_powerpc64()
24-{
25-#ifdef __powerpc64__
26- return 1;
27-#else
28- return 0;
29-#endif
30-}
31-
32 static void
33 mark_as_resolved(struct library_symbol *libsym, GElf_Addr value)
34 {
35--
362.32.0
37
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
index 17264cef5e..b81093aa24 100644
--- a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
+++ b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb
@@ -29,6 +29,7 @@ SRC_URI = "git://github.com/sparkleholic/ltrace.git;branch=master;protocol=http
29 file://include_unistd_nr.patch \ 29 file://include_unistd_nr.patch \
30 file://0001-Bug-fix-for-data-type-length-judgment.patch \ 30 file://0001-Bug-fix-for-data-type-length-judgment.patch \
31 file://0001-ensure-the-struct-pointers-are-null-initilized.patch \ 31 file://0001-ensure-the-struct-pointers-are-null-initilized.patch \
32 file://0001-ppc-Remove-unused-host_powerpc64-function.patch \
32 " 33 "
33SRC_URI_append_libc-musl = " file://add_ppc64le.patch" 34SRC_URI_append_libc-musl = " file://add_ppc64le.patch"
34 35