public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Andreas Schwab <schwab@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] Fix misplaced const Date: Mon, 25 Jan 2021 14:17:26 +0000 (GMT) [thread overview] Message-ID: <20210125141726.90543385780E@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=31f64887222597bb15b7a814d8dadb7cb667bcb9 commit 31f64887222597bb15b7a814d8dadb7cb667bcb9 Author: Andreas Schwab <schwab@linux-m68k.org> Date: Mon Jan 25 14:29:45 2021 +0100 Fix misplaced const Constify __x86_cacheinfo_p and __x86_cpu_features_p, not their pointer target types. Diff: --- sysdeps/x86/cacheinfo.c | 2 +- sysdeps/x86/dl-get-cpu-features.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/x86/cacheinfo.c b/sysdeps/x86/cacheinfo.c index 350cba5fda..7b8df45e3b 100644 --- a/sysdeps/x86/cacheinfo.c +++ b/sysdeps/x86/cacheinfo.c @@ -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); diff --git a/sysdeps/x86/dl-get-cpu-features.c b/sysdeps/x86/dl-get-cpu-features.c index 99e3aa7d04..839803c746 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
reply other threads:[~2021-01-25 14:17 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210125141726.90543385780E@sourceware.org \ --to=schwab@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).