Skip to content

rename random32 to prandom

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

Status from this message: Applied this to git://oss.sgi.com/xfs/xfs.git, master branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest23 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/23raid6test: use prandom_bytes()crypto/async_tx/raid6test.c+2 -70 replies
2/23uuid: use prandom_bytes()lib/uuid.c+1 -70 replies
3/23x86: pageattr-test: remove srandom32 callarch/x86/mm/pageattr-test.c+0 -10 replies
4/23x86: rename random32() to prandom_u32()arch/x86/mm/pageattr-test.c+2 -20 replies
5/23lib/: rename random32() to prandom_u32()lib/fault-inject.c lib/list_sort.c+2 -20 replies
6/23mm/: rename random32() to prandom_u32()mm/swapfile.c+1 -10 replies
7/23kernel/: rename random32() to prandom_u32()kernel/rcutree.c kernel/test_kprobes.c+2 -20 replies
8/23drbd: rename random32() to prandom_u32()drivers/block/drbd/drbd_receiver.c+3 -20 replies
9/23infiniband: rename random32() to prandom_u32()drivers/infiniband/hw/cxgb3/cxio_resource.c drivers/infiniband/hw/cxgb4/id_table.c drivers/infiniband/hw/mlx4/mad.c +1 more+6 -61 reply
10/23mmc: rename random32() to prandom_u32()drivers/mmc/core/core.c+2 -20 replies
11/23video/uvesafb: rename random32() to prandom_u32()drivers/video/uvesafb.c+1 -10 replies
12/23xfs: rename random32() to prandom_u32()fs/xfs/xfs_alloc.c fs/xfs/xfs_error.c fs/xfs/xfs_ialloc.c +1 more+4 -41 reply
13/23uwb: rename random32() to prandom_u32()drivers/uwb/rsv.c+2 -20 replies
14/23lguest: rename random32() to prandom_u32()drivers/lguest/page_tables.c+1 -10 replies
15/23scsi: 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
16/23drivers/net: rename random32() to prandom_u32()drivers/net/ethernet/broadcom/cnic.c drivers/net/hamradio/baycom_epp.c drivers/net/hamradio/hdlcdrv.c +3 more+8 -82 replies
17/23net/sunrpc: rename random32() to prandom_u32()net/sunrpc/auth_gss/gss_krb5_wrap.c+2 -21 reply
18/23net/sched: rename random32() to prandom_u32()net/sched/sch_choke.c+1 -10 replies
19/23net/netfilter: rename random32() to prandom_u32()net/netfilter/nf_conntrack_core.c+2 -20 replies
20/23net/core: rename random32() to prandom_u32()net/core/pktgen.c+15 -140 replies
21/23net/core: remove duplicate statements by do-while loopnet/core/pktgen.c+6 -90 replies
22/23net: rename random32 to prandominclude/linux/net.h+2 -20 replies
23/23remove unused random32() and srandom32()include/linux/random.h+0 -70 replies

Reviews trailers per patch

6 of 23 patches have a Reviewed-by or Acked-by.

PatchSteve WiseThomas SailerBing ZhaoH. Peter Anvin[email protected]Trond Myklebust
1/23
2/23
3/23A-b
4/23A-b
5/23
6/23
7/23
8/23
9/23R-b R-b
10/23
11/23
12/23A-b
13/23
14/23
15/23
16/23A-b A-b
17/23A-b
18/23
19/23
20/23
21/23
22/23
23/23

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v1 thread

Cover letter [PATCH -v3 00/23] rename random32 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(). But this patch series also includes minor cleanup which was found while I was working on the substitution.

* Changes from v2
- ubifs, batman-adv, and mtd patches are merged upstream
- add Acked-by: and Reviewed-by: lines
- add rename for brcm80211

* Changes from v1
- leave all net_random() and net_srandom callers as-is and preserve the macro definisions. Because that is a useful indirection. Spotted by Neil Horman.
- remove batman-adv fix which has been applied to net
- collect Acked-by:

Akinobu Mita (23):
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() to prandom_u32()
mmc: rename random32() to prandom_u32() video/uvesafb: rename random32() to prandom_u32()
xfs: rename random32() to prandom_u32()
uwb: rename random32() to prandom_u32()
lguest: rename random32() to prandom_u32()
scsi: rename random32() to prandom_u32() drivers/net: rename random32() to prandom_u32() net/sunrpc: rename random32() to prandom_u32() net/sched: rename random32() to prandom_u32() net/netfilter: rename random32() to prandom_u32() net/core: rename random32() to prandom_u32() net/core: remove duplicate statements by do-while loop
net: rename random32 to prandom
remove unused 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/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/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/brcm80211/brcmfmac/p2p.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/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                           |  4 +--
 include/linux/random.h                        |  7 -----
 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/core/pktgen.c                             | 42 +++++++++++++--------------
 net/netfilter/nf_conntrack_core.c             |  4 +--
 net/sched/sch_choke.c                         |  2 +-
 net/sunrpc/auth_gss/gss_krb5_wrap.c           |  4 +--
 36 files changed, 74 insertions(+), 91 deletions(-)
Signature · 1 line
1.8.1.2