Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[NET]: Don't export linux/random.h outside __KERNEL__.

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>

authored by

David Woodhouse and committed by
David S. Miller
cb4db4c2 e44c39bd

+1 -1
+1 -1
include/linux/net.h
··· 19 19 #define _LINUX_NET_H 20 20 21 21 #include <linux/wait.h> 22 - #include <linux/random.h> 23 22 #include <asm/socket.h> 24 23 25 24 struct poll_table_struct; ··· 56 57 57 58 #ifdef __KERNEL__ 58 59 #include <linux/stringify.h> 60 + #include <linux/random.h> 59 61 60 62 #define SOCK_ASYNC_NOSPACE 0 61 63 #define SOCK_ASYNC_WAITDATA 1