remove warning from drivers/char/random.c
PATCH 1/1 remove warning from drivers/char/random.c
Hi.
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.
drivers/char/random.c +2 -0
@@ -527,12 +527,14 @@memset (r->pool,0 , r->poolinfo.poolwords*4 ); } +#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
Signature · 8 lines
Regards,
Rasmus([email protected])
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 [email protected]
Please read the FAQ at http://www.tux.org/lkml/