diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/net.h | 2 | ||||
-rw-r--r-- | include/linux/netdevice.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index 6f0dfeba509a..f28d8a2e2c91 100644 --- a/include/linux/net.h +++ b/include/linux/net.h | |||
@@ -19,7 +19,6 @@ | |||
19 | #define _LINUX_NET_H | 19 | #define _LINUX_NET_H |
20 | 20 | ||
21 | #include <linux/wait.h> | 21 | #include <linux/wait.h> |
22 | #include <linux/random.h> | ||
23 | #include <asm/socket.h> | 22 | #include <asm/socket.h> |
24 | 23 | ||
25 | struct poll_table_struct; | 24 | struct poll_table_struct; |
@@ -57,6 +56,7 @@ typedef enum { | |||
57 | 56 | ||
58 | #ifdef __KERNEL__ | 57 | #ifdef __KERNEL__ |
59 | #include <linux/stringify.h> | 58 | #include <linux/stringify.h> |
59 | #include <linux/random.h> | ||
60 | 60 | ||
61 | #define SOCK_ASYNC_NOSPACE 0 | 61 | #define SOCK_ASYNC_NOSPACE 0 |
62 | #define SOCK_ASYNC_WAITDATA 1 | 62 | #define SOCK_ASYNC_WAITDATA 1 |
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 6be767c76b37..fea0d9db6846 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -906,6 +906,7 @@ static inline void netif_poll_disable(struct net_device *dev) | |||
906 | 906 | ||
907 | static inline void netif_poll_enable(struct net_device *dev) | 907 | static inline void netif_poll_enable(struct net_device *dev) |
908 | { | 908 | { |
909 | smp_mb__before_clear_bit(); | ||
909 | clear_bit(__LINK_STATE_RX_SCHED, &dev->state); | 910 | clear_bit(__LINK_STATE_RX_SCHED, &dev->state); |
910 | } | 911 | } |
911 | 912 | ||