Commit 571a1dc9 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Linus Torvalds

[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.
parent 14ccf179
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment