aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/mm/kmmio.c4
-rw-r--r--arch/x86/mm/mmio-mod.c7
-rw-r--r--arch/x86/mm/testmmiotrace.c2
-rw-r--r--include/linux/mmiotrace.h6
4 files changed, 7 insertions, 12 deletions
diff --git a/arch/x86/mm/kmmio.c b/arch/x86/mm/kmmio.c
index 3ad27b8504a5..6a92d9111b64 100644
--- a/arch/x86/mm/kmmio.c
+++ b/arch/x86/mm/kmmio.c
@@ -17,10 +17,10 @@
17#include <linux/percpu.h> 17#include <linux/percpu.h>
18#include <linux/kdebug.h> 18#include <linux/kdebug.h>
19#include <linux/mutex.h> 19#include <linux/mutex.h>
20#include <asm/io.h> 20#include <linux/io.h>
21#include <asm/cacheflush.h> 21#include <asm/cacheflush.h>
22#include <asm/tlbflush.h> 22#include <asm/tlbflush.h>
23#include <asm/errno.h> 23#include <linux/errno.h>
24#include <asm/debugreg.h> 24#include <asm/debugreg.h>
25#include <linux/mmiotrace.h> 25#include <linux/mmiotrace.h>
26 26
diff --git a/arch/x86/mm/mmio-mod.c b/arch/x86/mm/mmio-mod.c
index 1f77d8532037..a8d2a0019da4 100644
--- a/arch/x86/mm/mmio-mod.c
+++ b/arch/x86/mm/mmio-mod.c
@@ -24,7 +24,7 @@
24#include <linux/module.h> 24#include <linux/module.h>
25#include <linux/debugfs.h> 25#include <linux/debugfs.h>
26#include <linux/uaccess.h> 26#include <linux/uaccess.h>
27#include <asm/io.h> 27#include <linux/io.h>
28#include <linux/version.h> 28#include <linux/version.h>
29#include <linux/kallsyms.h> 29#include <linux/kallsyms.h>
30#include <asm/pgtable.h> 30#include <asm/pgtable.h>
@@ -418,11 +418,10 @@ static void enter_uniprocessor(void)
418 418
419 for_each_cpu_mask(cpu, downed_cpus) { 419 for_each_cpu_mask(cpu, downed_cpus) {
420 err = cpu_down(cpu); 420 err = cpu_down(cpu);
421 if (!err) { 421 if (!err)
422 pr_info(NAME "CPU%d is down.\n", cpu); 422 pr_info(NAME "CPU%d is down.\n", cpu);
423 } else { 423 else
424 pr_err(NAME "Error taking CPU%d down: %d\n", cpu, err); 424 pr_err(NAME "Error taking CPU%d down: %d\n", cpu, err);
425 }
426 } 425 }
427 if (num_online_cpus() > 1) 426 if (num_online_cpus() > 1)
428 pr_warning(NAME "multiple CPUs still online, " 427 pr_warning(NAME "multiple CPUs still online, "
diff --git a/arch/x86/mm/testmmiotrace.c b/arch/x86/mm/testmmiotrace.c
index cfa60b227c8d..d877c5b423ef 100644
--- a/arch/x86/mm/testmmiotrace.c
+++ b/arch/x86/mm/testmmiotrace.c
@@ -2,7 +2,7 @@
2 * Written by Pekka Paalanen, 2008 <pq@iki.fi> 2 * Written by Pekka Paalanen, 2008 <pq@iki.fi>
3 */ 3 */
4#include <linux/module.h> 4#include <linux/module.h>
5#include <asm/io.h> 5#include <linux/io.h>
6 6
7#define MODULE_NAME "testmmiotrace" 7#define MODULE_NAME "testmmiotrace"
8 8
diff --git a/include/linux/mmiotrace.h b/include/linux/mmiotrace.h
index dd6b64b160fc..de8e91258da7 100644
--- a/include/linux/mmiotrace.h
+++ b/include/linux/mmiotrace.h
@@ -1,9 +1,7 @@
1#ifndef MMIOTRACE_H 1#ifndef MMIOTRACE_H
2#define MMIOTRACE_H 2#define MMIOTRACE_H
3 3
4#include <asm/types.h> 4#include <linux/types.h>
5
6#ifdef __KERNEL__
7 5
8#include <linux/list.h> 6#include <linux/list.h>
9 7
@@ -84,6 +82,4 @@ extern void disable_mmiotrace(void);
84extern void mmio_trace_rw(struct mmiotrace_rw *rw); 82extern void mmio_trace_rw(struct mmiotrace_rw *rw);
85extern void mmio_trace_mapping(struct mmiotrace_map *map); 83extern void mmio_trace_mapping(struct mmiotrace_map *map);
86 84
87#endif /* __KERNEL__ */
88
89#endif /* MMIOTRACE_H */ 85#endif /* MMIOTRACE_H */