[lkml]   [2000]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] remove warning from drivers/char/random.c

The following patch makes a 'defined but not used' warning go away
when compiling drivers/char/random.c without sysctl support (240t12p3).
(but should apply cleanly). I am aware that there is a sysctl section
of this code, but the function seems to belong where it is. I would be
happy to move free_entropy_store to this section if you think this
is cleaner.

--- linux-240-t12-pre3-clean/drivers/char/random.c Wed Nov 22 22:41:39 2000
+++ linux/drivers/char/random.c Wed Nov 29 18:25:31 2000
@@ -527,12 +527,14 @@
memset(r->pool, 0, r->poolinfo.poolwords*4);

static void free_entropy_store(struct entropy_store *r)
if (r->pool)

* This function adds a byte into the entropy "pool". It does not

I have a very small mind and must live with it. -- E. Dijkstra
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:51    [W:0.046 / U:0.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site