From 8faada830227aeb1a17117cbf8b94d9be0f5ffe1 Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Fri, 7 Jun 2024 13:42:38 +0200 Subject: elf: Remove _dl_string_platform Despite of powerpc where the returned integer is stored in tcb, and the diagnostics output, there is no user anymore. Thus this patch removes the diagnostics output and _dl_string_platform for all other platforms. Reviewed-by: Adhemerval Zanella --- sysdeps/x86/dl-procinfo.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'sysdeps/x86') diff --git a/sysdeps/x86/dl-procinfo.h b/sysdeps/x86/dl-procinfo.h index 3902925be4..b2184b8f5d 100644 --- a/sysdeps/x86/dl-procinfo.h +++ b/sysdeps/x86/dl-procinfo.h @@ -30,19 +30,4 @@ #define _DL_HWCAP_PLATFORM (((1ULL << _DL_PLATFORMS_COUNT) - 1) \ << _DL_FIRST_PLATFORM) -static inline int -__attribute__ ((unused, always_inline)) -_dl_string_platform (const char *str) -{ - int i; - - if (str != NULL) - for (i = HWCAP_PLATFORMS_START; i < HWCAP_PLATFORMS_COUNT; ++i) - { - if (strcmp (str, GLRO(dl_x86_platforms)[i]) == 0) - return _DL_FIRST_PLATFORM + i; - } - return -1; -}; - #endif /* dl-procinfo.h */ -- cgit 1.4.1