]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix misplaced const
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 25 Jan 2021 13:29:45 +0000 (14:29 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 25 Jan 2021 14:09:02 +0000 (15:09 +0100)
Constify __x86_cacheinfo_p and __x86_cpu_features_p, not their pointer
target types.

sysdeps/x86/cacheinfo.c
sysdeps/x86/dl-get-cpu-features.c

index 350cba5fda59aad06f2faa89276ee255e0eb4546..7b8df45e3bb6eaa1cd5d5d54501d7006c396ad8f 100644 (file)
@@ -77,7 +77,7 @@ __cache_sysconf (int name)
 # include <ifunc-init.h>
 
 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);
index 99e3aa7d04e8ac75f6f301c061650f02a9452f65..839803c746f408edffaadbe250a8f52abaccc7db 100644 (file)
@@ -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