summaryrefslogtreecommitdiff
blob: 276ca7fa19c5aa94a5ca37f319a9c015eb846354 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- ./include/asm-i386/io.h.imm1	2006-04-07 16:27:10.000000000 +0400
+++ ./include/asm-i386/io.h	2006-04-07 16:28:23.000000000 +0400
@@ -2,6 +2,8 @@
 #define _ASM_IO_H
 
 #include <linux/config.h>
+#include <linux/string.h>
+#include <linux/compiler.h>
 
 /*
  * This file contains the definitions for the x86 IO instructions
--- ./include/linux/compiler.h.imm1	2006-04-07 16:12:12.000000000 +0400
+++ ./include/linux/compiler.h	2006-04-07 16:26:47.000000000 +0400
@@ -6,13 +6,17 @@
 # define __kernel	/* default address space */
 # define __safe		__attribute__((safe))
 # define __force	__attribute__((force))
+# define __iomem	__attribute__((noderef, address_space(2)))
 extern void __chk_user_ptr(void __user *);
+extern void __chk_io_ptr(void __iomem *);
 #else
 # define __user
 # define __kernel
 # define __safe
 # define __force
+# define __iomem
 # define __chk_user_ptr(x) (void)0
+# define __chk_io_ptr(x) (void)0
 #endif
 
 #ifdef __KERNEL__