]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] NET: Don't export linux/random.h outside __KERNEL__
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 2 Jan 2007 08:07:50 +0000 (00:07 -0800)
committerChris Wright <chrisw@sous-sol.org>
Wed, 10 Jan 2007 19:05:21 +0000 (11:05 -0800)
Don't add it there please; add it lower down inside the existing #ifdef
__KERNEL__. You just made the _userspace_ net.h include random.h, which
then fails to compile unless <asm/types.h> was already included.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
include/linux/net.h

index 15c733b816f0820afcef4d615ed11cfa7b43cd76..b701d339f8c0e8cbebb92587dc5adb105a39dc7d 100644 (file)
@@ -19,7 +19,6 @@
 #define _LINUX_NET_H
 
 #include <linux/wait.h>
-#include <linux/random.h>
 #include <asm/socket.h>
 
 struct poll_table_struct;
@@ -57,6 +56,7 @@ typedef enum {
 
 #ifdef __KERNEL__
 #include <linux/stringify.h>
+#include <linux/random.h>
 
 #define SOCK_ASYNC_NOSPACE     0
 #define SOCK_ASYNC_WAITDATA    1