projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7732ba
)
x86/process: Define cpu_tss_rw in same section as declaration
author
Nick Desaulniers
<
[email protected]
>
Wed, 3 Jan 2018 20:39:52 +0000
(12:39 -0800)
committer
Thomas Gleixner
<
[email protected]
>
Wed, 3 Jan 2018 22:19:33 +0000
(23:19 +0100)
cpu_tss_rw is declared with DECLARE_PER_CPU_PAGE_ALIGNED
but then defined with DEFINE_PER_CPU_SHARED_ALIGNED
leading to section mismatch warnings.
Use DEFINE_PER_CPU_PAGE_ALIGNED consistently. This is necessary because
it's mapped to the cpu entry area and must be page aligned.
[ tglx: Massaged changelog a bit ]
Fixes: 1a935bc3d4ea ("x86/entry: Move SYSENTER_stack to the beginning of struct tss_struct")
Suggested-by: Thomas Gleixner <
[email protected]
>
Signed-off-by: Nick Desaulniers <
[email protected]
>
Signed-off-by: Thomas Gleixner <
[email protected]
>
Cc:
[email protected]
Cc: Borislav Petkov <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Link:
https://lkml.kernel.org/r/
[email protected]
arch/x86/kernel/process.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/process.c
b/arch/x86/kernel/process.c
index 5174159784093625f1813b4785773bade59b8d18..3cb2486c47e48a16e5daf9335f912ecda0324ac9 100644
(file)
--- a/
arch/x86/kernel/process.c
+++ b/
arch/x86/kernel/process.c
@@
-47,7
+47,7
@@
* section. Since TSS's are completely CPU-local, we want them
* on exact cacheline boundaries, to eliminate cacheline ping-pong.
*/
-__visible DEFINE_PER_CPU_
SHARED
_ALIGNED(struct tss_struct, cpu_tss_rw) = {
+__visible DEFINE_PER_CPU_
PAGE
_ALIGNED(struct tss_struct, cpu_tss_rw) = {
.x86_tss = {
/*
* .sp0 is only used when entering ring 0 from a lower