From: Andreas Schwab Date: Mon, 25 Jan 2021 13:29:45 +0000 (+0100) Subject: Fix misplaced const X-Git-Tag: glibc-2.33~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31f64887222597bb15b7a814d8dadb7cb667bcb9;p=thirdparty%2Fglibc.git Fix misplaced const Constify __x86_cacheinfo_p and __x86_cpu_features_p, not their pointer target types. --- diff --git a/sysdeps/x86/cacheinfo.c b/sysdeps/x86/cacheinfo.c index 350cba5fda5..7b8df45e3bb 100644 --- a/sysdeps/x86/cacheinfo.c +++ b/sysdeps/x86/cacheinfo.c @@ -77,7 +77,7 @@ __cache_sysconf (int name) # include extern void __x86_cacheinfo (void) attribute_hidden; -const void (*__x86_cacheinfo_p) (void) attribute_hidden +void (*const __x86_cacheinfo_p) (void) attribute_hidden = __x86_cacheinfo; __ifunc (__x86_cacheinfo, __x86_cacheinfo, NULL, void, init_cacheinfo); diff --git a/sysdeps/x86/dl-get-cpu-features.c b/sysdeps/x86/dl-get-cpu-features.c index 99e3aa7d04e..839803c746f 100644 --- a/sysdeps/x86/dl-get-cpu-features.c +++ b/sysdeps/x86/dl-get-cpu-features.c @@ -28,7 +28,7 @@ once by IFUNC relocation. In dynamic executable, it is called twice by DL_PLATFORM_INIT and by IFUNC relocation. */ extern void __x86_cpu_features (void) attribute_hidden; -const void (*__x86_cpu_features_p) (void) attribute_hidden +void (*const __x86_cpu_features_p) (void) attribute_hidden = __x86_cpu_features; void