Skip to contentSkip to conversation

x86/cpuid: Switch to 'static const' specifier

PATCH New Ralf Ramsauer 2 participants 2 messages Mar 7, 2018 – Mar 8, 2018 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/cpuid: Switch to 'static const' specifier

This is the only spot where the 'const static' specifier is used; everywhere else 'static const' is preferred, as static should be the first specifier.

This is just a cosmetic fix that aligns this, no functional change.

---
 arch/x86/kernel/cpu/cpuid-deps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/cpuid-deps.c +1 -1
index 904b0a3c4e53..2c0bd38a44ab 100644
@@ -19,7 +19,7 @@ struct cpuid_dep {
  * called from cpu hotplug. It shouldn't do anything in this case,
  * but it's difficult to tell that to the init reference checker.
  */
-const static struct cpuid_dep cpuid_deps[] = {
+static const struct cpuid_dep cpuid_deps[] = {
 	{ X86_FEATURE_XSAVEOPT,		X86_FEATURE_XSAVE     },
 	{ X86_FEATURE_XSAVEC,		X86_FEATURE_XSAVE     },
 	{ X86_FEATURE_XSAVES,		X86_FEATURE_XSAVE     },
Signature · 1 line
2.16.2
#1 lore raw
x86/cpuid: Switch to 'static const' specifier
Commit-ID:  52586b089cc12d4878e56ee98a4d110fa801758a
Gitweb:     https://git.kernel.org/tip/52586b089cc12d4878e56ee98a4d110fa801758a
Author:     Ralf Ramsauer <[email protected]>
AuthorDate: Wed, 7 Mar 2018 17:07:34 +0100
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Thu, 8 Mar 2018 12:23:42 +0100

x86/cpuid: Switch to 'static const' specifier

This is the only spot where the 'const static' specifier is used; everywhere else 'static const' is preferred, as static should be the first specifier.

This is just a cosmetic fix that aligns this, no functional change.

---
 arch/x86/kernel/cpu/cpuid-deps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/cpuid-deps.c +1 -1
index 904b0a3c4e53..2c0bd38a44ab 100644
@@ -19,7 +19,7 @@ struct cpuid_dep {
  * called from cpu hotplug. It shouldn't do anything in this case,
  * but it's difficult to tell that to the init reference checker.
  */
-const static struct cpuid_dep cpuid_deps[] = {
+static const struct cpuid_dep cpuid_deps[] = {
 	{ X86_FEATURE_XSAVEOPT,		X86_FEATURE_XSAVE     },
 	{ X86_FEATURE_XSAVEC,		X86_FEATURE_XSAVE     },
 	{ X86_FEATURE_XSAVES,		X86_FEATURE_XSAVE     },