mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/idt: Make idt_descr static
@ 2020-06-19 20:51 Jason Andryuk
  2020-06-20  9:56 ` [tip: x86/cleanups] " tip-bot2 for Jason Andryuk
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Andryuk @ 2020-06-19 20:51 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: Jason Andryuk, Ingo Molnar, Borislav Petkov, x86, H. Peter Anvin,
	linux-kernel

Commit 3e77abda65b1 ("x86/idt: Consolidate idt functionality")'s commit
message stated idt_descr could be made static, but it did not actually
make the change.  Make it static now.

Fixes: 3e77abda65b1 ("x86/idt: Consolidate idt functionality")
Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
---
 arch/x86/kernel/idt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/idt.c b/arch/x86/kernel/idt.c
index 0db21206f2f3..7ecf9babf0cb 100644
--- a/arch/x86/kernel/idt.c
+++ b/arch/x86/kernel/idt.c
@@ -160,7 +160,7 @@ static const __initconst struct idt_data apic_idts[] = {
 /* Must be page-aligned because the real IDT is used in the cpu entry area */
 static gate_desc idt_table[IDT_ENTRIES] __page_aligned_bss;
 
-struct desc_ptr idt_descr __ro_after_init = {
+static struct desc_ptr idt_descr __ro_after_init = {
 	.size		= IDT_TABLE_SIZE - 1,
 	.address	= (unsigned long) idt_table,
 };
-- 
2.25.1


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

* [tip: x86/cleanups] x86/idt: Make idt_descr static
  2020-06-19 20:51 [PATCH] x86/idt: Make idt_descr static Jason Andryuk
@ 2020-06-20  9:56 ` tip-bot2 for Jason Andryuk
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Jason Andryuk @ 2020-06-20  9:56 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Jason Andryuk, Borislav Petkov, x86, LKML

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     286d966b21587b6303081b902f5c5e30b691baf5
Gitweb:        https://git.kernel.org/tip/286d966b21587b6303081b902f5c5e30b691baf5
Author:        Jason Andryuk <jandryuk@gmail.com>
AuthorDate:    Fri, 19 Jun 2020 16:51:02 -04:00
Committer:     Borislav Petkov <bp@suse.de>
CommitterDate: Sat, 20 Jun 2020 11:47:35 +02:00

x86/idt: Make idt_descr static

Commit

  3e77abda65b1 ("x86/idt: Consolidate idt functionality")

states that idt_descr could be made static, but it did not actually make
the change. Make it static now.

Fixes: 3e77abda65b1 ("x86/idt: Consolidate idt functionality")
Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200619205103.30873-1-jandryuk@gmail.com
---
 arch/x86/kernel/idt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/idt.c b/arch/x86/kernel/idt.c
index 0db2120..7ecf9ba 100644
--- a/arch/x86/kernel/idt.c
+++ b/arch/x86/kernel/idt.c
@@ -160,7 +160,7 @@ static const __initconst struct idt_data apic_idts[] = {
 /* Must be page-aligned because the real IDT is used in the cpu entry area */
 static gate_desc idt_table[IDT_ENTRIES] __page_aligned_bss;
 
-struct desc_ptr idt_descr __ro_after_init = {
+static struct desc_ptr idt_descr __ro_after_init = {
 	.size		= IDT_TABLE_SIZE - 1,
 	.address	= (unsigned long) idt_table,
 };

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

end of thread, other threads:[~2020-06-20  9:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-19 20:51 [PATCH] x86/idt: Make idt_descr static Jason Andryuk
2020-06-20  9:56 ` [tip: x86/cleanups] " tip-bot2 for Jason Andryuk

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

Powered by JetHome