ltrace: Remove unused static function

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2021-06-15 18:17:07 -07:00
parent b649d4cde4
commit 07f8997356
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,37 @@
From 4517bf59838f40eb6e3f46e39adb5e5090c59df8 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 15 Jun 2021 18:14:36 -0700
Subject: [PATCH] ppc: Remove unused host_powerpc64 function
This function is dead code, remove it which avoids compiler warnings
with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
sysdeps/linux-gnu/ppc/plt.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/sysdeps/linux-gnu/ppc/plt.c b/sysdeps/linux-gnu/ppc/plt.c
index 5f81889..9d1838b 100644
--- a/sysdeps/linux-gnu/ppc/plt.c
+++ b/sysdeps/linux-gnu/ppc/plt.c
@@ -142,16 +142,6 @@
#define PPC64_PLT_STUB_SIZE 4
#endif
-static inline int
-host_powerpc64()
-{
-#ifdef __powerpc64__
- return 1;
-#else
- return 0;
-#endif
-}
-
static void
mark_as_resolved(struct library_symbol *libsym, GElf_Addr value)
{
--
2.32.0

View File

@ -29,6 +29,7 @@ SRC_URI = "git://github.com/sparkleholic/ltrace.git;branch=master;protocol=http
file://include_unistd_nr.patch \
file://0001-Bug-fix-for-data-type-length-judgment.patch \
file://0001-ensure-the-struct-pointers-are-null-initilized.patch \
file://0001-ppc-Remove-unused-host_powerpc64-function.patch \
"
SRC_URI_append_libc-musl = " file://add_ppc64le.patch"