Skip to content

Commit 3ccabd6

Browse files
committed
Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 cleanups from Ingo Molnar: "Misc cleanups" * 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86: Remove unused IOMMU_STRESS Kconfig x86/extable: Mark exception handler functions visible x86/timer: Don't inline __const_udelay x86/headers: Remove duplicate #includes
2 parents 5289d30 + 782bf20 commit 3ccabd6

File tree

9 files changed

+18
-33
lines changed

9 files changed

+18
-33
lines changed

arch/x86/Kconfig.debug

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,6 @@ config IOMMU_DEBUG
169169
options. See Documentation/x86/x86_64/boot-options.txt for more
170170
details.
171171

172-
config IOMMU_STRESS
173-
bool "Enable IOMMU stress-test mode"
174-
---help---
175-
This option disables various optimizations in IOMMU related
176-
code to do real stress testing of the IOMMU code. This option
177-
will cause a performance drop and should only be enabled for
178-
testing.
179-
180172
config IOMMU_LEAK
181173
bool "IOMMU leak tracing"
182174
depends on IOMMU_DEBUG && DMA_API_DEBUG

arch/x86/kernel/itmt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <linux/cpumask.h>
2525
#include <linux/cpuset.h>
2626
#include <linux/mutex.h>
27-
#include <linux/sched.h>
2827
#include <linux/sysctl.h>
2928
#include <linux/nodemask.h>
3029

arch/x86/kernel/process.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <linux/dmi.h>
2222
#include <linux/utsname.h>
2323
#include <linux/stackprotector.h>
24-
#include <linux/tick.h>
2524
#include <linux/cpuidle.h>
2625
#include <trace/events/power.h>
2726
#include <linux/hw_breakpoint.h>

arch/x86/kernel/setup.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
#include <asm/alternative.h>
115115
#include <asm/prom.h>
116116
#include <asm/microcode.h>
117-
#include <asm/mmu_context.h>
118117
#include <asm/kaslr.h>
119118
#include <asm/unwind.h>
120119

arch/x86/kernel/smpboot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
#include <asm/uv/uv.h>
7676
#include <linux/mc146818rtc.h>
7777
#include <asm/i8259.h>
78-
#include <asm/realmode.h>
7978
#include <asm/misc.h>
8079
#include <asm/qspinlock.h>
8180

arch/x86/lib/delay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void __delay(unsigned long loops)
162162
}
163163
EXPORT_SYMBOL(__delay);
164164

165-
inline void __const_udelay(unsigned long xloops)
165+
void __const_udelay(unsigned long xloops)
166166
{
167167
unsigned long lpj = this_cpu_read(cpu_info.loops_per_jiffy) ? : loops_per_jiffy;
168168
int d0;

arch/x86/mm/extable.c

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ ex_fixup_handler(const struct exception_table_entry *x)
2121
return (ex_handler_t)((unsigned long)&x->handler + x->handler);
2222
}
2323

24-
bool ex_handler_default(const struct exception_table_entry *fixup,
25-
struct pt_regs *regs, int trapnr)
24+
__visible bool ex_handler_default(const struct exception_table_entry *fixup,
25+
struct pt_regs *regs, int trapnr)
2626
{
2727
regs->ip = ex_fixup_addr(fixup);
2828
return true;
2929
}
3030
EXPORT_SYMBOL(ex_handler_default);
3131

32-
bool ex_handler_fault(const struct exception_table_entry *fixup,
33-
struct pt_regs *regs, int trapnr)
32+
__visible bool ex_handler_fault(const struct exception_table_entry *fixup,
33+
struct pt_regs *regs, int trapnr)
3434
{
3535
regs->ip = ex_fixup_addr(fixup);
3636
regs->ax = trapnr;
@@ -42,8 +42,8 @@ EXPORT_SYMBOL_GPL(ex_handler_fault);
4242
* Handler for UD0 exception following a failed test against the
4343
* result of a refcount inc/dec/add/sub.
4444
*/
45-
bool ex_handler_refcount(const struct exception_table_entry *fixup,
46-
struct pt_regs *regs, int trapnr)
45+
__visible bool ex_handler_refcount(const struct exception_table_entry *fixup,
46+
struct pt_regs *regs, int trapnr)
4747
{
4848
/* First unconditionally saturate the refcount. */
4949
*(int *)regs->cx = INT_MIN / 2;
@@ -95,8 +95,8 @@ EXPORT_SYMBOL(ex_handler_refcount);
9595
* of vulnerability by restoring from the initial state (essentially, zeroing
9696
* out all the FPU registers) if we can't restore from the task's FPU state.
9797
*/
98-
bool ex_handler_fprestore(const struct exception_table_entry *fixup,
99-
struct pt_regs *regs, int trapnr)
98+
__visible bool ex_handler_fprestore(const struct exception_table_entry *fixup,
99+
struct pt_regs *regs, int trapnr)
100100
{
101101
regs->ip = ex_fixup_addr(fixup);
102102

@@ -108,8 +108,8 @@ bool ex_handler_fprestore(const struct exception_table_entry *fixup,
108108
}
109109
EXPORT_SYMBOL_GPL(ex_handler_fprestore);
110110

111-
bool ex_handler_ext(const struct exception_table_entry *fixup,
112-
struct pt_regs *regs, int trapnr)
111+
__visible bool ex_handler_ext(const struct exception_table_entry *fixup,
112+
struct pt_regs *regs, int trapnr)
113113
{
114114
/* Special hack for uaccess_err */
115115
current->thread.uaccess_err = 1;
@@ -118,8 +118,8 @@ bool ex_handler_ext(const struct exception_table_entry *fixup,
118118
}
119119
EXPORT_SYMBOL(ex_handler_ext);
120120

121-
bool ex_handler_rdmsr_unsafe(const struct exception_table_entry *fixup,
122-
struct pt_regs *regs, int trapnr)
121+
__visible bool ex_handler_rdmsr_unsafe(const struct exception_table_entry *fixup,
122+
struct pt_regs *regs, int trapnr)
123123
{
124124
if (pr_warn_once("unchecked MSR access error: RDMSR from 0x%x at rIP: 0x%lx (%pF)\n",
125125
(unsigned int)regs->cx, regs->ip, (void *)regs->ip))
@@ -133,8 +133,8 @@ bool ex_handler_rdmsr_unsafe(const struct exception_table_entry *fixup,
133133
}
134134
EXPORT_SYMBOL(ex_handler_rdmsr_unsafe);
135135

136-
bool ex_handler_wrmsr_unsafe(const struct exception_table_entry *fixup,
137-
struct pt_regs *regs, int trapnr)
136+
__visible bool ex_handler_wrmsr_unsafe(const struct exception_table_entry *fixup,
137+
struct pt_regs *regs, int trapnr)
138138
{
139139
if (pr_warn_once("unchecked MSR access error: WRMSR to 0x%x (tried to write 0x%08x%08x) at rIP: 0x%lx (%pF)\n",
140140
(unsigned int)regs->cx, (unsigned int)regs->dx,
@@ -147,8 +147,8 @@ bool ex_handler_wrmsr_unsafe(const struct exception_table_entry *fixup,
147147
}
148148
EXPORT_SYMBOL(ex_handler_wrmsr_unsafe);
149149

150-
bool ex_handler_clear_fs(const struct exception_table_entry *fixup,
151-
struct pt_regs *regs, int trapnr)
150+
__visible bool ex_handler_clear_fs(const struct exception_table_entry *fixup,
151+
struct pt_regs *regs, int trapnr)
152152
{
153153
if (static_cpu_has(X86_BUG_NULL_SEG))
154154
asm volatile ("mov %0, %%fs" : : "rm" (__USER_DS));
@@ -157,7 +157,7 @@ bool ex_handler_clear_fs(const struct exception_table_entry *fixup,
157157
}
158158
EXPORT_SYMBOL(ex_handler_clear_fs);
159159

160-
bool ex_has_fault_handler(unsigned long ip)
160+
__visible bool ex_has_fault_handler(unsigned long ip)
161161
{
162162
const struct exception_table_entry *e;
163163
ex_handler_t handler;

arch/x86/platform/efi/efi_64.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <linux/spinlock.h>
2626
#include <linux/bootmem.h>
2727
#include <linux/ioport.h>
28-
#include <linux/init.h>
2928
#include <linux/mc146818rtc.h>
3029
#include <linux/efi.h>
3130
#include <linux/uaccess.h>

arch/x86/xen/spinlock.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ static DEFINE_PER_CPU(int, lock_kicker_irq) = -1;
2323
static DEFINE_PER_CPU(char *, irq_name);
2424
static bool xen_pvspin = true;
2525

26-
#include <asm/qspinlock.h>
27-
2826
static void xen_qlock_kick(int cpu)
2927
{
3028
int irq = per_cpu(lock_kicker_irq, cpu);

0 commit comments

Comments
 (0)