Home Home > GIT Browse > SLE15
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2003-02-16 22:15:45 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-02-16 22:15:45 -0800
commit571a1dc94166f8a1c404b1143ce2dc59bc0e0eef (patch)
tree48fce5014b4ffe20e64ea7ec7d1b46b80e0cfc13
parent14ccf17926c1cd97ffaa5e89146e415d447b9bad (diff)
[PATCH] char/drivers/random.c - fix warning
When compiling random.c without SYSCTL defined a warning is issued about free_entropy_store being defined but not used. Put ifdef's around the functions. I could have moved the whole function, but it logically belongs to this part of the file.
-rw-r--r--drivers/char/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 48f0b8202da5..ab129078ec94 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -535,14 +535,14 @@ static void clear_entropy_store(struct entropy_store *r)
r->extract_count = 0;
memset(r->pool, 0, r->poolinfo.POOLBYTES);
}
-
+#ifdef CONFIG_SYSCTL
static void free_entropy_store(struct entropy_store *r)
{
if (r->pool)
kfree(r->pool);
kfree(r);
}
-
+#endif
/*
* This function adds a byte into the entropy "pool". It does not
* update the entropy estimate. The caller should call