net: replace macros net_random and net_srandom with direct calls to prandom
This patch removes the net_random and net_srandom macros and replaces them with direct calls to the prandom ones. As new commits only seem to use prandom_u32 there is no use to keep them around. This change makes it easier to grep for users of prandom_u32. Signed-off-by:Aruna-Hewapathirane <aruna.hewapathirane@gmail.com> Suggested-by:
Hannes Frederic Sowa <hannes@stressinduktion.org> Acked-by:
Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/infiniband/core/cma.c 1 addition, 1 deletiondrivers/infiniband/core/cma.c
- include/linux/net.h 0 additions, 3 deletionsinclude/linux/net.h
- include/net/red.h 1 addition, 1 deletioninclude/net/red.h
- net/802/garp.c 1 addition, 1 deletionnet/802/garp.c
- net/802/mrp.c 1 addition, 1 deletionnet/802/mrp.c
- net/core/neighbour.c 3 additions, 2 deletionsnet/core/neighbour.c
- net/core/stream.c 1 addition, 1 deletionnet/core/stream.c
- net/ipv4/devinet.c 1 addition, 1 deletionnet/ipv4/devinet.c
- net/ipv4/igmp.c 3 additions, 3 deletionsnet/ipv4/igmp.c
- net/ipv4/inet_connection_sock.c 1 addition, 1 deletionnet/ipv4/inet_connection_sock.c
- net/ipv4/udp.c 1 addition, 1 deletionnet/ipv4/udp.c
- net/ipv6/addrconf.c 2 additions, 2 deletionsnet/ipv6/addrconf.c
- net/ipv6/ip6_flowlabel.c 1 addition, 1 deletionnet/ipv6/ip6_flowlabel.c
- net/ipv6/mcast.c 5 additions, 5 deletionsnet/ipv6/mcast.c
- net/netfilter/ipvs/ip_vs_conn.c 1 addition, 1 deletionnet/netfilter/ipvs/ip_vs_conn.c
- net/netfilter/xt_statistic.c 1 addition, 1 deletionnet/netfilter/xt_statistic.c
- net/openvswitch/actions.c 1 addition, 1 deletionnet/openvswitch/actions.c
- net/rds/bind.c 1 addition, 1 deletionnet/rds/bind.c
- net/sched/act_gact.c 1 addition, 1 deletionnet/sched/act_gact.c
- net/sched/sch_fq_codel.c 1 addition, 1 deletionnet/sched/sch_fq_codel.c
Loading
Please register or sign in to comment