public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/cpuid: Switch to 'static const' specifier
@ 2018-03-07 16:07 Ralf Ramsauer
  2018-03-08 11:27 ` [tip:x86/cpu] " tip-bot for Ralf Ramsauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ralf Ramsauer @ 2018-03-07 16:07 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Andi Kleen
  Cc: Ralf Ramsauer, x86, H . Peter Anvin, Gayatri Kammela,
	linux-kernel

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.

Signed-off-by: Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de>
---
 arch/x86/kernel/cpu/cpuid-deps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/cpuid-deps.c b/arch/x86/kernel/cpu/cpuid-deps.c
index 904b0a3c4e53..2c0bd38a44ab 100644
--- a/arch/x86/kernel/cpu/cpuid-deps.c
+++ b/arch/x86/kernel/cpu/cpuid-deps.c
@@ -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     },
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip:x86/cpu] x86/cpuid: Switch to 'static const' specifier
  2018-03-07 16:07 [PATCH] x86/cpuid: Switch to 'static const' specifier Ralf Ramsauer
@ 2018-03-08 11:27 ` tip-bot for Ralf Ramsauer
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Ralf Ramsauer @ 2018-03-08 11:27 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: mingo, ak, hpa, ralf.ramsauer, gayatri.kammela, tglx,
	linux-kernel

Commit-ID:  52586b089cc12d4878e56ee98a4d110fa801758a
Gitweb:     https://git.kernel.org/tip/52586b089cc12d4878e56ee98a4d110fa801758a
Author:     Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de>
AuthorDate: Wed, 7 Mar 2018 17:07:34 +0100
Committer:  Thomas Gleixner <tglx@linutronix.de>
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.

Signed-off-by: Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Gayatri Kammela <gayatri.kammela@intel.com>
Link: https://lkml.kernel.org/r/20180307160734.6691-1-ralf.ramsauer@oth-regensburg.de

---
 arch/x86/kernel/cpu/cpuid-deps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/cpuid-deps.c b/arch/x86/kernel/cpu/cpuid-deps.c
index 904b0a3c4e53..2c0bd38a44ab 100644
--- a/arch/x86/kernel/cpu/cpuid-deps.c
+++ b/arch/x86/kernel/cpu/cpuid-deps.c
@@ -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     },

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-08 11:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-07 16:07 [PATCH] x86/cpuid: Switch to 'static const' specifier Ralf Ramsauer
2018-03-08 11:27 ` [tip:x86/cpu] " tip-bot for Ralf Ramsauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox