]> err.no Git - linux-2.6/commitdiff
[NET]: Annotate net_srandom().
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 15 Nov 2006 05:12:29 +0000 (21:12 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:22:57 +0000 (21:22 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/net.h

index 15c733b816f0820afcef4d615ed11cfa7b43cd76..6f0dfeba509a40da8d0a724b52d0ac0c8c450219 100644 (file)
@@ -196,7 +196,7 @@ extern struct socket *sockfd_lookup(int fd, int *err);
 extern int          net_ratelimit(void);
 
 #define net_random()           random32()
-#define net_srandom(seed)      srandom32(seed)
+#define net_srandom(seed)      srandom32((__force u32)seed)
 
 extern int          kernel_sendmsg(struct socket *sock, struct msghdr *msg,
                                    struct kvec *vec, size_t num, size_t len);