diff options
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_memory.c | 1 | ||||
-rw-r--r-- | drivers/net/sun3lance.c | 1 | ||||
-rw-r--r-- | fs/compat.c | 1 | ||||
-rw-r--r-- | include/linux/skbuff.h | 19 | ||||
-rw-r--r-- | kernel/auditsc.c | 1 | ||||
-rw-r--r-- | net/appletalk/ddp.c | 1 | ||||
-rw-r--r-- | net/core/kmap_skb.h | 19 | ||||
-rw-r--r-- | net/core/skbuff.c | 3 | ||||
-rw-r--r-- | net/core/sock.c | 1 | ||||
-rw-r--r-- | net/ipv4/ip_output.c | 1 | ||||
-rw-r--r-- | net/packet/af_packet.c | 1 |
11 files changed, 29 insertions, 20 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_memory.c b/drivers/infiniband/ulp/iser/iser_memory.c index 0606744c3f84..5e122501fd80 100644 --- a/drivers/infiniband/ulp/iser/iser_memory.c +++ b/drivers/infiniband/ulp/iser/iser_memory.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/kernel.h> | 35 | #include <linux/kernel.h> |
36 | #include <linux/slab.h> | 36 | #include <linux/slab.h> |
37 | #include <linux/mm.h> | 37 | #include <linux/mm.h> |
38 | #include <linux/highmem.h> | ||
38 | #include <asm/io.h> | 39 | #include <asm/io.h> |
39 | #include <asm/scatterlist.h> | 40 | #include <asm/scatterlist.h> |
40 | #include <linux/scatterlist.h> | 41 | #include <linux/scatterlist.h> |
diff --git a/drivers/net/sun3lance.c b/drivers/net/sun3lance.c index b865db363ba0..47a1c09d19ac 100644 --- a/drivers/net/sun3lance.c +++ b/drivers/net/sun3lance.c | |||
@@ -38,6 +38,7 @@ static char *version = "sun3lance.c: v1.2 1/12/2001 Sam Creasey (sammy@sammy.ne | |||
38 | #include <linux/skbuff.h> | 38 | #include <linux/skbuff.h> |
39 | #include <linux/bitops.h> | 39 | #include <linux/bitops.h> |
40 | 40 | ||
41 | #include <asm/cacheflush.h> | ||
41 | #include <asm/setup.h> | 42 | #include <asm/setup.h> |
42 | #include <asm/irq.h> | 43 | #include <asm/irq.h> |
43 | #include <asm/io.h> | 44 | #include <asm/io.h> |
diff --git a/fs/compat.c b/fs/compat.c index 8d0a0018a7d2..fde52d40c0b6 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <linux/personality.h> | 45 | #include <linux/personality.h> |
46 | #include <linux/rwsem.h> | 46 | #include <linux/rwsem.h> |
47 | #include <linux/tsacct_kern.h> | 47 | #include <linux/tsacct_kern.h> |
48 | #include <linux/highmem.h> | ||
48 | #include <linux/mm.h> | 49 | #include <linux/mm.h> |
49 | 50 | ||
50 | #include <net/sock.h> /* siocdevprivate_ioctl */ | 51 | #include <net/sock.h> /* siocdevprivate_ioctl */ |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 14ec16d2d9ba..24ce0add6c54 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <asm/types.h> | 23 | #include <asm/types.h> |
24 | #include <linux/spinlock.h> | 24 | #include <linux/spinlock.h> |
25 | #include <linux/mm.h> | 25 | #include <linux/mm.h> |
26 | #include <linux/highmem.h> | ||
27 | #include <linux/poll.h> | 26 | #include <linux/poll.h> |
28 | #include <linux/net.h> | 27 | #include <linux/net.h> |
29 | #include <linux/textsearch.h> | 28 | #include <linux/textsearch.h> |
@@ -1295,24 +1294,6 @@ static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len) | |||
1295 | return __pskb_trim(skb, len); | 1294 | return __pskb_trim(skb, len); |
1296 | } | 1295 | } |
1297 | 1296 | ||
1298 | static inline void *kmap_skb_frag(const skb_frag_t *frag) | ||
1299 | { | ||
1300 | #ifdef CONFIG_HIGHMEM | ||
1301 | BUG_ON(in_irq()); | ||
1302 | |||
1303 | local_bh_disable(); | ||
1304 | #endif | ||
1305 | return kmap_atomic(frag->page, KM_SKB_DATA_SOFTIRQ); | ||
1306 | } | ||
1307 | |||
1308 | static inline void kunmap_skb_frag(void *vaddr) | ||
1309 | { | ||
1310 | kunmap_atomic(vaddr, KM_SKB_DATA_SOFTIRQ); | ||
1311 | #ifdef CONFIG_HIGHMEM | ||
1312 | local_bh_enable(); | ||
1313 | #endif | ||
1314 | } | ||
1315 | |||
1316 | #define skb_queue_walk(queue, skb) \ | 1297 | #define skb_queue_walk(queue, skb) \ |
1317 | for (skb = (queue)->next; \ | 1298 | for (skb = (queue)->next; \ |
1318 | prefetch(skb->next), (skb != (struct sk_buff *)(queue)); \ | 1299 | prefetch(skb->next), (skb != (struct sk_buff *)(queue)); \ |
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 42f2f1179711..ab97e5101232 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -64,6 +64,7 @@ | |||
64 | #include <linux/tty.h> | 64 | #include <linux/tty.h> |
65 | #include <linux/selinux.h> | 65 | #include <linux/selinux.h> |
66 | #include <linux/binfmts.h> | 66 | #include <linux/binfmts.h> |
67 | #include <linux/highmem.h> | ||
67 | #include <linux/syscalls.h> | 68 | #include <linux/syscalls.h> |
68 | 69 | ||
69 | #include "audit.h" | 70 | #include "audit.h" |
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index 485e35c3b28b..3a7052207708 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c | |||
@@ -61,6 +61,7 @@ | |||
61 | #include <net/tcp_states.h> | 61 | #include <net/tcp_states.h> |
62 | #include <net/route.h> | 62 | #include <net/route.h> |
63 | #include <linux/atalk.h> | 63 | #include <linux/atalk.h> |
64 | #include "../core/kmap_skb.h" | ||
64 | 65 | ||
65 | struct datalink_proto *ddp_dl, *aarp_dl; | 66 | struct datalink_proto *ddp_dl, *aarp_dl; |
66 | static const struct proto_ops atalk_dgram_ops; | 67 | static const struct proto_ops atalk_dgram_ops; |
diff --git a/net/core/kmap_skb.h b/net/core/kmap_skb.h new file mode 100644 index 000000000000..283c2b993fb8 --- /dev/null +++ b/net/core/kmap_skb.h | |||
@@ -0,0 +1,19 @@ | |||
1 | #include <linux/highmem.h> | ||
2 | |||
3 | static inline void *kmap_skb_frag(const skb_frag_t *frag) | ||
4 | { | ||
5 | #ifdef CONFIG_HIGHMEM | ||
6 | BUG_ON(in_irq()); | ||
7 | |||
8 | local_bh_disable(); | ||
9 | #endif | ||
10 | return kmap_atomic(frag->page, KM_SKB_DATA_SOFTIRQ); | ||
11 | } | ||
12 | |||
13 | static inline void kunmap_skb_frag(void *vaddr) | ||
14 | { | ||
15 | kunmap_atomic(vaddr, KM_SKB_DATA_SOFTIRQ); | ||
16 | #ifdef CONFIG_HIGHMEM | ||
17 | local_bh_enable(); | ||
18 | #endif | ||
19 | } | ||
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index a90bc439488e..8e1c385e5ba9 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -56,7 +56,6 @@ | |||
56 | #include <linux/cache.h> | 56 | #include <linux/cache.h> |
57 | #include <linux/rtnetlink.h> | 57 | #include <linux/rtnetlink.h> |
58 | #include <linux/init.h> | 58 | #include <linux/init.h> |
59 | #include <linux/highmem.h> | ||
60 | 59 | ||
61 | #include <net/protocol.h> | 60 | #include <net/protocol.h> |
62 | #include <net/dst.h> | 61 | #include <net/dst.h> |
@@ -67,6 +66,8 @@ | |||
67 | #include <asm/uaccess.h> | 66 | #include <asm/uaccess.h> |
68 | #include <asm/system.h> | 67 | #include <asm/system.h> |
69 | 68 | ||
69 | #include "kmap_skb.h" | ||
70 | |||
70 | static kmem_cache_t *skbuff_head_cache __read_mostly; | 71 | static kmem_cache_t *skbuff_head_cache __read_mostly; |
71 | static kmem_cache_t *skbuff_fclone_cache __read_mostly; | 72 | static kmem_cache_t *skbuff_fclone_cache __read_mostly; |
72 | 73 | ||
diff --git a/net/core/sock.c b/net/core/sock.c index ab8fafadb4ba..419c7d3289c7 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -111,6 +111,7 @@ | |||
111 | #include <linux/poll.h> | 111 | #include <linux/poll.h> |
112 | #include <linux/tcp.h> | 112 | #include <linux/tcp.h> |
113 | #include <linux/init.h> | 113 | #include <linux/init.h> |
114 | #include <linux/highmem.h> | ||
114 | 115 | ||
115 | #include <asm/uaccess.h> | 116 | #include <asm/uaccess.h> |
116 | #include <asm/system.h> | 117 | #include <asm/system.h> |
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 1da3d32f8289..a35209d517ad 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c | |||
@@ -53,6 +53,7 @@ | |||
53 | #include <linux/mm.h> | 53 | #include <linux/mm.h> |
54 | #include <linux/string.h> | 54 | #include <linux/string.h> |
55 | #include <linux/errno.h> | 55 | #include <linux/errno.h> |
56 | #include <linux/highmem.h> | ||
56 | 57 | ||
57 | #include <linux/socket.h> | 58 | #include <linux/socket.h> |
58 | #include <linux/sockios.h> | 59 | #include <linux/sockios.h> |
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 271d2eed0699..08e68b67bbf6 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -71,6 +71,7 @@ | |||
71 | #include <asm/uaccess.h> | 71 | #include <asm/uaccess.h> |
72 | #include <asm/ioctls.h> | 72 | #include <asm/ioctls.h> |
73 | #include <asm/page.h> | 73 | #include <asm/page.h> |
74 | #include <asm/cacheflush.h> | ||
74 | #include <asm/io.h> | 75 | #include <asm/io.h> |
75 | #include <linux/proc_fs.h> | 76 | #include <linux/proc_fs.h> |
76 | #include <linux/seq_file.h> | 77 | #include <linux/seq_file.h> |