From: Rasmus Andersen <rasmus@jaquet.dk>
To: tytso@mit.edu
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] remove warning from drivers/char/random.c
Date: Fri, 8 Dec 2000 21:41:24 +0100 [thread overview]
Message-ID: <20001208214124.H599@jaquet.dk> (raw)
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.
--- 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);
}
+#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
--
Regards,
Rasmus(rasmus@jaquet.dk)
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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
reply other threads:[~2000-12-08 21:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20001208214124.H599@jaquet.dk \
--to=rasmus@jaquet.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).