Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Cull some unused rndpool routines.



details:   https://anonhg.NetBSD.org/src/rev/7c12ee648c0d
branches:  trunk
changeset: 337408:7c12ee648c0d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Apr 13 23:21:03 2015 +0000

description:
Cull some unused rndpool routines.

diffstat:

 sys/kern/kern_rndpool.c |  22 ++++------------------
 sys/sys/rndpool.h       |   6 +-----
 2 files changed, 5 insertions(+), 23 deletions(-)

diffs (73 lines):

diff -r 4252e1b6950d -r 7c12ee648c0d sys/kern/kern_rndpool.c
--- a/sys/kern/kern_rndpool.c   Mon Apr 13 22:52:52 2015 +0000
+++ b/sys/kern/kern_rndpool.c   Mon Apr 13 23:21:03 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: kern_rndpool.c,v 1.9 2015/04/13 22:43:41 riastradh Exp $        */
+/*      $NetBSD: kern_rndpool.c,v 1.10 2015/04/13 23:21:03 riastradh Exp $        */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_rndpool.c,v 1.9 2015/04/13 22:43:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndpool.c,v 1.10 2015/04/13 23:21:03 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -97,8 +97,8 @@
        memcpy(rsp, &rp->stats, size);
 }
 
-void
-rndpool_increment_entropy_count(rndpool_t *rp, u_int32_t  entropy)
+static void __used             /* XXX soon */
+rndpool_increment_entropy_count(rndpool_t *rp, u_int32_t entropy)
 {
 
        rp->stats.curentropy += entropy;
@@ -109,20 +109,6 @@
        }
 }
 
-u_int32_t *
-rndpool_get_pool(rndpool_t *rp)
-{
-
-       return (rp->pool);
-}
-
-u_int32_t
-rndpool_get_poolsize(void)
-{
-
-       return (RND_POOLWORDS);
-}
-
 /*
  * The input function treats the contents of the pool as an array of
  * 32 LFSR's of length RND_POOLWORDS, one per bit-plane.  The LFSR's
diff -r 4252e1b6950d -r 7c12ee648c0d sys/sys/rndpool.h
--- a/sys/sys/rndpool.h Mon Apr 13 22:52:52 2015 +0000
+++ b/sys/sys/rndpool.h Mon Apr 13 23:21:03 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rndpool.h,v 1.1 2015/04/13 15:39:19 riastradh Exp $    */
+/*     $NetBSD: rndpool.h,v 1.2 2015/04/13 23:21:03 riastradh Exp $    */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -57,13 +57,9 @@
 } rndpool_t;
 
 void           rndpool_init(rndpool_t *);
-void           rndpool_init_global(void);
 uint32_t       rndpool_get_entropy_count(rndpool_t *);
 void           rndpool_set_entropy_count(rndpool_t *, uint32_t);
 void           rndpool_get_stats(rndpool_t *, void *, int);
-void           rndpool_increment_entropy_count(rndpool_t *, uint32_t);
-uint32_t       *rndpool_get_pool(rndpool_t *);
-uint32_t       rndpool_get_poolsize(void);
 void           rndpool_add_data(rndpool_t *,
                                 const void *const , uint32_t, uint32_t);
 uint32_t       rndpool_extract_data(rndpool_t *, void *, uint32_t, uint32_t);



Home | Main Index | Thread Index | Old Index