summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-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
3 files changed, 6 insertions, 7 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 @@
#include <linux/percpu.h>
#include <linux/kdebug.h>
#include <linux/mutex.h>
-#include <asm/io.h>
+#include <linux/io.h>
#include <asm/cacheflush.h>
#include <asm/tlbflush.h>
-#include <asm/errno.h>
+#include <linux/errno.h>
#include <asm/debugreg.h>
#include <linux/mmiotrace.h>
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 @@
#include <linux/module.h>
#include <linux/debugfs.h>
#include <linux/uaccess.h>
-#include <asm/io.h>
+#include <linux/io.h>
#include <linux/version.h>
#include <linux/kallsyms.h>
#include <asm/pgtable.h>
@@ -418,11 +418,10 @@ static void enter_uniprocessor(void)
for_each_cpu_mask(cpu, downed_cpus) {
err = cpu_down(cpu);
- if (!err) {
+ if (!err)
pr_info(NAME "CPU%d is down.\n", cpu);
- } else {
+ else
pr_err(NAME "Error taking CPU%d down: %d\n", cpu, err);
- }
}
if (num_online_cpus() > 1)
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 @@
* Written by Pekka Paalanen, 2008 <pq@iki.fi>
*/
#include <linux/module.h>
-#include <asm/io.h>
+#include <linux/io.h>
#define MODULE_NAME "testmmiotrace"