Skip to content

rename random32 and net_random to prandom

Akinobu Mita batman drbd-dev linux-fbdev linux-hams linux-mm linux-mmc linux-mtd linux-nfs linux-rdma linux-scsi linux-sctp linux-wireless lkml netdev netfilter netfilter-devel 1 version Applied

Status from this message: Applied in revision 02c5591.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest29 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/29raid6test: use prandom_bytes()crypto/async_tx/raid6test.c+2 -70 replies
2/29uuid: use prandom_bytes()lib/uuid.c+1 -70 replies
3/29x86: pageattr-test: remove srandom32 callarch/x86/mm/pageattr-test.c+0 -10 replies
4/29x86: rename random32() to prandom_u32()arch/x86/mm/pageattr-test.c+2 -20 replies
5/29lib/: rename random32() to prandom_u32()lib/fault-inject.c lib/list_sort.c+2 -20 replies
6/29mm/: rename random32() to prandom_u32()mm/swapfile.c+1 -10 replies
7/29kernel/: rename random32() to prandom_u32()kernel/rcutree.c kernel/test_kprobes.c+2 -20 replies
8/29drbd: rename random32() to prandom_u32()drivers/block/drbd/drbd_receiver.c+3 -20 replies
9/29infiniband: rename random32() and net_random() to prandom_u32()drivers/infiniband/core/cma.c drivers/infiniband/hw/cxgb3/cxio_resource.c drivers/infiniband/hw/cxgb4/id_table.c +2 more+7 -70 replies
10/29mmc: rename random32() to prandom_u32()drivers/mmc/core/core.c+2 -20 replies
11/29video/uvesafb: rename random32() to prandom_u32()drivers/video/uvesafb.c+1 -10 replies
12/29xfs: rename random32() to prandom_u32()fs/xfs/xfs_alloc.c fs/xfs/xfs_error.c fs/xfs/xfs_ialloc.c +1 more+4 -40 replies
13/29ubifs: rename random32() to prandom_u32()fs/ubifs/debug.c fs/ubifs/lpt_commit.c fs/ubifs/tnc_commit.c+12 -120 replies
14/29uwb: rename random32() to prandom_u32()drivers/uwb/rsv.c+2 -20 replies
15/29lguest: rename random32() to prandom_u32()drivers/lguest/page_tables.c+1 -10 replies
16/29scsi: rename random32() to prandom_u32()drivers/scsi/fcoe/fcoe_ctlr.c drivers/scsi/lpfc/lpfc_hbadisc.c drivers/scsi/qla2xxx/qla_attr.c+10 -70 replies
17/29mtd: rename random32() to prandom_u32()drivers/mtd/nand/nandsim.c drivers/mtd/tests/mtd_nandecctest.c drivers/mtd/tests/mtd_stresstest.c +1 more+15 -150 replies
18/29drivers/net: rename random32() to prandom_u32()drivers/net/ethernet/broadcom/cnic.c drivers/net/hamradio/baycom_epp.c drivers/net/hamradio/hdlcdrv.c +2 more+7 -70 replies
19/29batman-adv: fix random jitter calculationnet/batman-adv/bat_iv_ogm.c+1 -13 replies
20/29batman-adv: rename random32() to prandom_u32()net/batman-adv/bat_iv_ogm.c+2 -22 replies
21/29net/sunrpc: rename random32() and net_random() to prandom_u32()net/sunrpc/auth_gss/gss_krb5_wrap.c net/sunrpc/cache.c net/sunrpc/xprt.c +1 more+5 -50 replies
22/29net/sched: rename random32() and net_random() to prandom_u32()net/sched/act_gact.c net/sched/sch_choke.c net/sched/sch_fq_codel.c +3 more+18 -170 replies
23/29net/ipv4: rename net_random() to prandom_u32()net/ipv4/devinet.c net/ipv4/igmp.c net/ipv4/inet_connection_sock.c +1 more+6 -60 replies
24/29net/ipv6: rename net_random() to prandom_u32()net/ipv6/addrconf.c net/ipv6/ip6_flowlabel.c net/ipv6/mcast.c+7 -70 replies
25/29net/netfilter: rename random32() and net_random() to prandom_u32()net/netfilter/ipvs/ip_vs_conn.c net/netfilter/nf_conntrack_core.c net/netfilter/xt_statistic.c+4 -40 replies
26/29net/core: rename random32() and net_random() to prandom_u32()net/core/neighbour.c net/core/pktgen.c net/core/stream.c+18 -170 replies
27/29net/core: remove duplicate statements by do-while loopnet/core/pktgen.c+6 -90 replies
28/29net/: rename net_random() to prandom_u32()include/net/red.h net/802/garp.c net/openvswitch/actions.c +3 more+6 -63 replies
29/29remove unused net_random(), net_srandom(), random32(), and srandom32()include/linux/net.h include/linux/random.h+0 -100 replies

Reviews trailers per patch

2 of 29 patches have a Reviewed-by or Acked-by.

PatchAntonio Quartulli
1/29
2/29
3/29
4/29
5/29
6/29
7/29
8/29
9/29
10/29
11/29
12/29
13/29
14/29
15/29
16/29
17/29
18/29
19/29A-b
20/29A-b
21/29
22/29
23/29
24/29
25/29
26/29
27/29
28/29
29/29

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/29] rename random32 and net_random to prandom

Commit 496f2f93b1cc286f5a4f4f9acdc1e5314978683f ("random32: rename random32 to prandom") renamed random32() and srandom32() to prandom_u32() and prandom_seed() respectively. Due to the volume of existing random32() callers, they were preserved as backword compatibility wrapper macros.

This patch series aims for finishing the naming transition and removing the backword compatibility wrapper macros.

The naming transition is mainly simple substitution work for random32() and srandom32(). Furthermore, net_random() and net_srandom() are another wrapper macros for random32() and srandom32(). They also should be renamed to prandom_* while I'm at it.

This patch series also includes minor cleanup and bugfix which were found while I was working on the substitution.

Akinobu Mita (29):
raid6test: use prandom_bytes()
uuid: use prandom_bytes()
x86: pageattr-test: remove srandom32 call
x86: rename random32() to prandom_u32()
lib/: rename random32() to prandom_u32()
mm/: rename random32() to prandom_u32()
kernel/: rename random32() to prandom_u32()
drbd: rename random32() to prandom_u32()
infiniband: rename random32() and net_random() to prandom_u32()
mmc: rename random32() to prandom_u32()
video/uvesafb: rename random32() to prandom_u32()
xfs: rename random32() to prandom_u32()
ubifs: rename random32() to prandom_u32()
uwb: rename random32() to prandom_u32()
lguest: rename random32() to prandom_u32()
scsi: rename random32() to prandom_u32()
mtd: rename random32() to prandom_u32()
drivers/net: rename random32() to prandom_u32()
batman-adv: fix random jitter calculation
batman-adv: rename random32() to prandom_u32() net/sunrpc: rename random32() and net_random() to prandom_u32() net/sched: rename random32() and net_random() to prandom_u32() net/ipv4: rename net_random() to prandom_u32() net/ipv6: rename net_random() to prandom_u32() net/netfilter: rename random32() and net_random() to prandom_u32() net/core: rename random32() and net_random() to prandom_u32() net/core: remove duplicate statements by do-while loop net/: rename net_random() to prandom_u32()
remove unused net_random(), net_srandom(), random32(), and

    srandom32()
 arch/x86/mm/pageattr-test.c                 |  5 ++--
 crypto/async_tx/raid6test.c                 |  9 ++-----
 drivers/block/drbd/drbd_receiver.c          |  5 ++--
 drivers/infiniband/core/cma.c               |  2 +-
 drivers/infiniband/hw/cxgb3/cxio_resource.c |  4 +--
 drivers/infiniband/hw/cxgb4/id_table.c      |  4 +--
 drivers/infiniband/hw/mlx4/mad.c            |  2 +-
 drivers/infiniband/ulp/ipoib/ipoib_cm.c     |  2 +-
 drivers/lguest/page_tables.c                |  2 +-
 drivers/mmc/core/core.c                     |  4 +--
 drivers/mtd/nand/nandsim.c                  |  6 ++---
 drivers/mtd/tests/mtd_nandecctest.c         | 10 +++----
 drivers/mtd/tests/mtd_stresstest.c          |  8 +++---
 drivers/mtd/ubi/debug.h                     |  6 ++---
 drivers/net/ethernet/broadcom/cnic.c        |  4 +--
 drivers/net/hamradio/baycom_epp.c           |  2 +-
 drivers/net/hamradio/hdlcdrv.c              |  2 +-
 drivers/net/hamradio/yam.c                  |  2 +-
 drivers/net/wireless/mwifiex/cfg80211.c     |  4 +--
 drivers/scsi/fcoe/fcoe_ctlr.c               |  4 +--
 drivers/scsi/lpfc/lpfc_hbadisc.c            |  6 ++---
 drivers/scsi/qla2xxx/qla_attr.c             |  7 +++--
 drivers/uwb/rsv.c                           |  4 +--
 drivers/video/uvesafb.c                     |  2 +-
 fs/ubifs/debug.c                            |  8 +++---
 fs/ubifs/lpt_commit.c                       | 14 +++++-----
 fs/ubifs/tnc_commit.c                       |  2 +-
 fs/xfs/xfs_alloc.c                          |  2 +-
 fs/xfs/xfs_error.c                          |  2 +-
 fs/xfs/xfs_ialloc.c                         |  2 +-
 fs/xfs/xfs_log.c                            |  2 +-
 include/linux/net.h                         |  3 ---
 include/linux/random.h                      |  7 -----
 include/net/red.h                           |  2 +-
 kernel/rcutree.c                            |  2 +-
 kernel/test_kprobes.c                       |  2 +-
 lib/fault-inject.c                          |  2 +-
 lib/list_sort.c                             |  2 +-
 lib/uuid.c                                  |  8 +-----
 mm/swapfile.c                               |  2 +-
 net/802/garp.c                              |  2 +-
 net/batman-adv/bat_iv_ogm.c                 |  4 +--
 net/core/neighbour.c                        |  4 +--
 net/core/pktgen.c                           | 42 ++++++++++++++---------------
 net/core/stream.c                           |  2 +-
 net/ipv4/devinet.c                          |  2 +-
 net/ipv4/igmp.c                             |  6 ++---
 net/ipv4/inet_connection_sock.c             |  2 +-
 net/ipv4/udp.c                              |  2 +-
 net/ipv6/addrconf.c                         |  4 +--
 net/ipv6/ip6_flowlabel.c                    |  2 +-
 net/ipv6/mcast.c                            |  8 +++---
 net/netfilter/ipvs/ip_vs_conn.c             |  2 +-
 net/netfilter/nf_conntrack_core.c           |  4 +--
 net/netfilter/xt_statistic.c                |  2 +-
 net/openvswitch/actions.c                   |  2 +-
 net/rds/bind.c                              |  2 +-
 net/sched/act_gact.c                        |  2 +-
 net/sched/sch_choke.c                       |  2 +-
 net/sched/sch_fq_codel.c                    |  2 +-
 net/sched/sch_netem.c                       | 19 ++++++-------
 net/sched/sch_sfb.c                         |  4 +--
 net/sched/sch_sfq.c                         |  6 ++---
 net/sctp/socket.c                           |  2 +-
 net/sunrpc/auth_gss/gss_krb5_wrap.c         |  4 +--
 net/sunrpc/cache.c                          |  2 +-
 net/sunrpc/xprt.c                           |  2 +-
 net/sunrpc/xprtsock.c                       |  2 +-
 net/xfrm/xfrm_state.c                       |  2 +-
 69 files changed, 145 insertions(+), 164 deletions(-)
Cc "Theodore Ts'o" <[email protected]>
Cc "David S. Miller" <[email protected]>
Signature · 1 line
1.7.11.7