diff options
author | Arun Sharma <asharma@fb.com> | 2011-07-26 19:09:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 19:49:47 -0400 |
commit | 60063497a95e716c9a689af3be2687d261f115b4 (patch) | |
tree | 6ce0d68db76982c53df46aee5f29f944ebf2c320 /include/net | |
parent | 148817ba092f9f6edd35bad3c6c6b8e8f90fe2ed (diff) |
atomic: use <linux/atomic.h>
This allows us to move duplicated code in <asm/atomic.h>
(atomic_inc_not_zero() for now) to <linux/atomic.h>
Signed-off-by: Arun Sharma <asharma@fb.com>
Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: David Miller <davem@davemloft.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ax25.h | 2 | ||||
-rw-r--r-- | include/net/cipso_ipv4.h | 2 | ||||
-rw-r--r-- | include/net/flow.h | 2 | ||||
-rw-r--r-- | include/net/inet_hashtables.h | 2 | ||||
-rw-r--r-- | include/net/inet_timewait_sock.h | 2 | ||||
-rw-r--r-- | include/net/inetpeer.h | 2 | ||||
-rw-r--r-- | include/net/ip_vs.h | 2 | ||||
-rw-r--r-- | include/net/lib80211.h | 2 | ||||
-rw-r--r-- | include/net/llc.h | 2 | ||||
-rw-r--r-- | include/net/neighbour.h | 2 | ||||
-rw-r--r-- | include/net/net_namespace.h | 2 | ||||
-rw-r--r-- | include/net/netfilter/nf_conntrack.h | 2 | ||||
-rw-r--r-- | include/net/netlabel.h | 2 | ||||
-rw-r--r-- | include/net/netns/conntrack.h | 2 | ||||
-rw-r--r-- | include/net/sctp/structs.h | 2 |
15 files changed, 15 insertions, 15 deletions
diff --git a/include/net/ax25.h b/include/net/ax25.h index 206d22297ac3..94e09d361bb1 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <linux/timer.h> | 11 | #include <linux/timer.h> |
12 | #include <linux/list.h> | 12 | #include <linux/list.h> |
13 | #include <linux/slab.h> | 13 | #include <linux/slab.h> |
14 | #include <asm/atomic.h> | 14 | #include <linux/atomic.h> |
15 | 15 | ||
16 | #define AX25_T1CLAMPLO 1 | 16 | #define AX25_T1CLAMPLO 1 |
17 | #define AX25_T1CLAMPHI (30 * HZ) | 17 | #define AX25_T1CLAMPHI (30 * HZ) |
diff --git a/include/net/cipso_ipv4.h b/include/net/cipso_ipv4.h index abd443604c9f..3b938743514b 100644 --- a/include/net/cipso_ipv4.h +++ b/include/net/cipso_ipv4.h | |||
@@ -41,7 +41,7 @@ | |||
41 | #include <linux/skbuff.h> | 41 | #include <linux/skbuff.h> |
42 | #include <net/netlabel.h> | 42 | #include <net/netlabel.h> |
43 | #include <net/request_sock.h> | 43 | #include <net/request_sock.h> |
44 | #include <asm/atomic.h> | 44 | #include <linux/atomic.h> |
45 | 45 | ||
46 | /* known doi values */ | 46 | /* known doi values */ |
47 | #define CIPSO_V4_DOI_UNKNOWN 0x00000000 | 47 | #define CIPSO_V4_DOI_UNKNOWN 0x00000000 |
diff --git a/include/net/flow.h b/include/net/flow.h index c6d5fe5ec1bf..78113daadd63 100644 --- a/include/net/flow.h +++ b/include/net/flow.h | |||
@@ -8,7 +8,7 @@ | |||
8 | #define _NET_FLOW_H | 8 | #define _NET_FLOW_H |
9 | 9 | ||
10 | #include <linux/in6.h> | 10 | #include <linux/in6.h> |
11 | #include <asm/atomic.h> | 11 | #include <linux/atomic.h> |
12 | 12 | ||
13 | struct flowi_common { | 13 | struct flowi_common { |
14 | int flowic_oif; | 14 | int flowic_oif; |
diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h index e9c2ed8af864..808fc5f76b03 100644 --- a/include/net/inet_hashtables.h +++ b/include/net/inet_hashtables.h | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <net/tcp_states.h> | 33 | #include <net/tcp_states.h> |
34 | #include <net/netns/hash.h> | 34 | #include <net/netns/hash.h> |
35 | 35 | ||
36 | #include <asm/atomic.h> | 36 | #include <linux/atomic.h> |
37 | #include <asm/byteorder.h> | 37 | #include <asm/byteorder.h> |
38 | 38 | ||
39 | /* This is for all connections with a full identity, no wildcards. | 39 | /* This is for all connections with a full identity, no wildcards. |
diff --git a/include/net/inet_timewait_sock.h b/include/net/inet_timewait_sock.h index 17404b5388a7..f1a770977c4f 100644 --- a/include/net/inet_timewait_sock.h +++ b/include/net/inet_timewait_sock.h | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <net/tcp_states.h> | 28 | #include <net/tcp_states.h> |
29 | #include <net/timewait_sock.h> | 29 | #include <net/timewait_sock.h> |
30 | 30 | ||
31 | #include <asm/atomic.h> | 31 | #include <linux/atomic.h> |
32 | 32 | ||
33 | struct inet_hashinfo; | 33 | struct inet_hashinfo; |
34 | 34 | ||
diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h index 4233e6f9841d..78c83e62218f 100644 --- a/include/net/inetpeer.h +++ b/include/net/inetpeer.h | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/spinlock.h> | 13 | #include <linux/spinlock.h> |
14 | #include <linux/rtnetlink.h> | 14 | #include <linux/rtnetlink.h> |
15 | #include <net/ipv6.h> | 15 | #include <net/ipv6.h> |
16 | #include <asm/atomic.h> | 16 | #include <linux/atomic.h> |
17 | 17 | ||
18 | struct inetpeer_addr_base { | 18 | struct inetpeer_addr_base { |
19 | union { | 19 | union { |
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index b1370c4015b6..1aaf915656f3 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <linux/sysctl.h> /* for ctl_path */ | 13 | #include <linux/sysctl.h> /* for ctl_path */ |
14 | #include <linux/list.h> /* for struct list_head */ | 14 | #include <linux/list.h> /* for struct list_head */ |
15 | #include <linux/spinlock.h> /* for struct rwlock_t */ | 15 | #include <linux/spinlock.h> /* for struct rwlock_t */ |
16 | #include <asm/atomic.h> /* for struct atomic_t */ | 16 | #include <linux/atomic.h> /* for struct atomic_t */ |
17 | #include <linux/compiler.h> | 17 | #include <linux/compiler.h> |
18 | #include <linux/timer.h> | 18 | #include <linux/timer.h> |
19 | 19 | ||
diff --git a/include/net/lib80211.h b/include/net/lib80211.h index 848cce1bb7a5..b95bbb083ee8 100644 --- a/include/net/lib80211.h +++ b/include/net/lib80211.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #include <linux/types.h> | 26 | #include <linux/types.h> |
27 | #include <linux/list.h> | 27 | #include <linux/list.h> |
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | #include <asm/atomic.h> | 29 | #include <linux/atomic.h> |
30 | #include <linux/if.h> | 30 | #include <linux/if.h> |
31 | #include <linux/skbuff.h> | 31 | #include <linux/skbuff.h> |
32 | #include <linux/ieee80211.h> | 32 | #include <linux/ieee80211.h> |
diff --git a/include/net/llc.h b/include/net/llc.h index 5503b74ab170..226c846cab08 100644 --- a/include/net/llc.h +++ b/include/net/llc.h | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/hash.h> | 20 | #include <linux/hash.h> |
21 | #include <linux/jhash.h> | 21 | #include <linux/jhash.h> |
22 | 22 | ||
23 | #include <asm/atomic.h> | 23 | #include <linux/atomic.h> |
24 | 24 | ||
25 | struct net_device; | 25 | struct net_device; |
26 | struct packet_type; | 26 | struct packet_type; |
diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 4ba8521490ba..2720884287c3 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h | |||
@@ -16,7 +16,7 @@ | |||
16 | * - Add neighbour cache statistics like rtstat | 16 | * - Add neighbour cache statistics like rtstat |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <asm/atomic.h> | 19 | #include <linux/atomic.h> |
20 | #include <linux/netdevice.h> | 20 | #include <linux/netdevice.h> |
21 | #include <linux/skbuff.h> | 21 | #include <linux/skbuff.h> |
22 | #include <linux/rcupdate.h> | 22 | #include <linux/rcupdate.h> |
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 1ab1aec209ac..3bb6fa0eace0 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #ifndef __NET_NET_NAMESPACE_H | 4 | #ifndef __NET_NET_NAMESPACE_H |
5 | #define __NET_NET_NAMESPACE_H | 5 | #define __NET_NET_NAMESPACE_H |
6 | 6 | ||
7 | #include <asm/atomic.h> | 7 | #include <linux/atomic.h> |
8 | #include <linux/workqueue.h> | 8 | #include <linux/workqueue.h> |
9 | #include <linux/list.h> | 9 | #include <linux/list.h> |
10 | #include <linux/sysctl.h> | 10 | #include <linux/sysctl.h> |
diff --git a/include/net/netfilter/nf_conntrack.h b/include/net/netfilter/nf_conntrack.h index 5d4f8e586e32..0b7f05e4a927 100644 --- a/include/net/netfilter/nf_conntrack.h +++ b/include/net/netfilter/nf_conntrack.h | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include <linux/bitops.h> | 17 | #include <linux/bitops.h> |
18 | #include <linux/compiler.h> | 18 | #include <linux/compiler.h> |
19 | #include <asm/atomic.h> | 19 | #include <linux/atomic.h> |
20 | 20 | ||
21 | #include <linux/netfilter/nf_conntrack_tcp.h> | 21 | #include <linux/netfilter/nf_conntrack_tcp.h> |
22 | #include <linux/netfilter/nf_conntrack_dccp.h> | 22 | #include <linux/netfilter/nf_conntrack_dccp.h> |
diff --git a/include/net/netlabel.h b/include/net/netlabel.h index 9db401a8b4d9..f21a16ee3705 100644 --- a/include/net/netlabel.h +++ b/include/net/netlabel.h | |||
@@ -38,7 +38,7 @@ | |||
38 | #include <linux/in6.h> | 38 | #include <linux/in6.h> |
39 | #include <net/netlink.h> | 39 | #include <net/netlink.h> |
40 | #include <net/request_sock.h> | 40 | #include <net/request_sock.h> |
41 | #include <asm/atomic.h> | 41 | #include <linux/atomic.h> |
42 | 42 | ||
43 | struct cipso_v4_doi; | 43 | struct cipso_v4_doi; |
44 | 44 | ||
diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h index 341eb089349e..0249399e51a7 100644 --- a/include/net/netns/conntrack.h +++ b/include/net/netns/conntrack.h | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | #include <linux/list.h> | 4 | #include <linux/list.h> |
5 | #include <linux/list_nulls.h> | 5 | #include <linux/list_nulls.h> |
6 | #include <asm/atomic.h> | 6 | #include <linux/atomic.h> |
7 | 7 | ||
8 | struct ctl_table_header; | 8 | struct ctl_table_header; |
9 | struct nf_conntrack_ecache; | 9 | struct nf_conntrack_ecache; |
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 31d7ea2e1d2a..f7d9c3fc06fd 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -60,7 +60,7 @@ | |||
60 | #include <linux/in6.h> /* We get struct in6_addr */ | 60 | #include <linux/in6.h> /* We get struct in6_addr */ |
61 | #include <linux/ipv6.h> | 61 | #include <linux/ipv6.h> |
62 | #include <asm/param.h> /* We get MAXHOSTNAMELEN. */ | 62 | #include <asm/param.h> /* We get MAXHOSTNAMELEN. */ |
63 | #include <asm/atomic.h> /* This gets us atomic counters. */ | 63 | #include <linux/atomic.h> /* This gets us atomic counters. */ |
64 | #include <linux/skbuff.h> /* We need sk_buff_head. */ | 64 | #include <linux/skbuff.h> /* We need sk_buff_head. */ |
65 | #include <linux/workqueue.h> /* We need tq_struct. */ | 65 | #include <linux/workqueue.h> /* We need tq_struct. */ |
66 | #include <linux/sctp.h> /* We need sctp* header structs. */ | 66 | #include <linux/sctp.h> /* We need sctp* header structs. */ |