diff mbox series

[RFC,6/9] elf: Remove _DL_FIRST_PLATFORM

Message ID 20240607114543.659306-7-stli@linux.ibm.com
State New
Headers show
Series Remove legacy platform bits and cleanups | expand

Commit Message

Stefan Liebler June 7, 2024, 11:42 a.m. UTC
Remove the definitions of _DL_FIRST_PLATFORM as those were only used
in the _DL_HWCAP_PLATFORM definitions and in _dl_string_platform().
Both were removed.

Note: Removed on every architecture despite of powerpc, where
_dl_string_platform() is still used.
---
 sysdeps/s390/dl-procinfo.h | 3 ---
 sysdeps/x86/dl-procinfo.h  | 3 ---
 2 files changed, 6 deletions(-)

Comments

Adhemerval Zanella June 11, 2024, 7:29 p.m. UTC | #1
On 07/06/24 08:42, Stefan Liebler wrote:
> Remove the definitions of _DL_FIRST_PLATFORM as those were only used
> in the _DL_HWCAP_PLATFORM definitions and in _dl_string_platform().
> Both were removed.
> 
> Note: Removed on every architecture despite of powerpc, where
> _dl_string_platform() is still used.

LGTM, thanks

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> ---
>  sysdeps/s390/dl-procinfo.h | 3 ---
>  sysdeps/x86/dl-procinfo.h  | 3 ---
>  2 files changed, 6 deletions(-)
> 
> diff --git a/sysdeps/s390/dl-procinfo.h b/sysdeps/s390/dl-procinfo.h
> index bb5f9c7863..ef2a084ce7 100644
> --- a/sysdeps/s390/dl-procinfo.h
> +++ b/sysdeps/s390/dl-procinfo.h
> @@ -25,9 +25,6 @@ extern const char _dl_s390_cap_flags[_DL_HWCAP_COUNT][9] attribute_hidden;
>  
>  #define _DL_PLATFORMS_COUNT	11
>  
> -/* The kernel provides up to 32 capability bits with elf_hwcap.  */
> -#define _DL_FIRST_PLATFORM	32
> -
>  /* Hardware capability bit numbers are derived directly from the
>     facility indications as stored by the "store facility list" (STFL)
>     instruction.
> diff --git a/sysdeps/x86/dl-procinfo.h b/sysdeps/x86/dl-procinfo.h
> index 1aa6bad67a..a8d7d4ed32 100644
> --- a/sysdeps/x86/dl-procinfo.h
> +++ b/sysdeps/x86/dl-procinfo.h
> @@ -24,7 +24,4 @@
>  #define _DL_HWCAP_COUNT		HWCAP_COUNT
>  #define _DL_PLATFORMS_COUNT	HWCAP_PLATFORMS_COUNT
>  
> -/* Start at 48 to reserve spaces for hardware capabilities.  */
> -#define _DL_FIRST_PLATFORM	48
> -
>  #endif /* dl-procinfo.h */
diff mbox series

Patch

diff --git a/sysdeps/s390/dl-procinfo.h b/sysdeps/s390/dl-procinfo.h
index bb5f9c7863..ef2a084ce7 100644
--- a/sysdeps/s390/dl-procinfo.h
+++ b/sysdeps/s390/dl-procinfo.h
@@ -25,9 +25,6 @@  extern const char _dl_s390_cap_flags[_DL_HWCAP_COUNT][9] attribute_hidden;
 
 #define _DL_PLATFORMS_COUNT	11
 
-/* The kernel provides up to 32 capability bits with elf_hwcap.  */
-#define _DL_FIRST_PLATFORM	32
-
 /* Hardware capability bit numbers are derived directly from the
    facility indications as stored by the "store facility list" (STFL)
    instruction.
diff --git a/sysdeps/x86/dl-procinfo.h b/sysdeps/x86/dl-procinfo.h
index 1aa6bad67a..a8d7d4ed32 100644
--- a/sysdeps/x86/dl-procinfo.h
+++ b/sysdeps/x86/dl-procinfo.h
@@ -24,7 +24,4 @@ 
 #define _DL_HWCAP_COUNT		HWCAP_COUNT
 #define _DL_PLATFORMS_COUNT	HWCAP_PLATFORMS_COUNT
 
-/* Start at 48 to reserve spaces for hardware capabilities.  */
-#define _DL_FIRST_PLATFORM	48
-
 #endif /* dl-procinfo.h */