* [PATCH] drivers/char/random.c: Make add_hwgenerator_randomness static
@ 2019-04-26 18:29 Bharath Vedartham
2019-04-26 19:22 ` Bharath Veda
0 siblings, 1 reply; 3+ messages in thread
From: Bharath Vedartham @ 2019-04-26 18:29 UTC (permalink / raw)
To: tytso, arnd, gregkh; +Cc: linux-kernel
Make add_hwgenerator_randomness static as it is only declared on
drivers/char/random.c
Signed-off-by: Bharath Vedartham <linux.bhar@gmail.com>
---
drivers/char/random.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 38c6d1a..08fd00a 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -2342,7 +2342,7 @@ randomize_page(unsigned long start, unsigned long range)
* Those devices may produce endless random bits and will be throttled
* when our pool is full.
*/
-void add_hwgenerator_randomness(const char *buffer, size_t count,
+static void add_hwgenerator_randomness(const char *buffer, size_t count,
size_t entropy)
{
struct entropy_store *poolp = &input_pool;
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drivers/char/random.c: Make add_hwgenerator_randomness static
2019-04-26 18:29 [PATCH] drivers/char/random.c: Make add_hwgenerator_randomness static Bharath Vedartham
@ 2019-04-26 19:22 ` Bharath Veda
2019-04-26 20:06 ` Theodore Ts'o
0 siblings, 1 reply; 3+ messages in thread
From: Bharath Veda @ 2019-04-26 19:22 UTC (permalink / raw)
To: tytso, arnd, Greg KH; +Cc: LKML
Hi,
Please ignore this patch. It breaks the build.
Thank you
On Fri, Apr 26, 2019 at 11:59 PM Bharath Vedartham <linux.bhar@gmail.com> wrote:
>
> Make add_hwgenerator_randomness static as it is only declared on
> drivers/char/random.c
>
> Signed-off-by: Bharath Vedartham <linux.bhar@gmail.com>
> ---
> drivers/char/random.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/char/random.c b/drivers/char/random.c
> index 38c6d1a..08fd00a 100644
> --- a/drivers/char/random.c
> +++ b/drivers/char/random.c
> @@ -2342,7 +2342,7 @@ randomize_page(unsigned long start, unsigned long range)
> * Those devices may produce endless random bits and will be throttled
> * when our pool is full.
> */
> -void add_hwgenerator_randomness(const char *buffer, size_t count,
> +static void add_hwgenerator_randomness(const char *buffer, size_t count,
> size_t entropy)
> {
> struct entropy_store *poolp = &input_pool;
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drivers/char/random.c: Make add_hwgenerator_randomness static
2019-04-26 19:22 ` Bharath Veda
@ 2019-04-26 20:06 ` Theodore Ts'o
0 siblings, 0 replies; 3+ messages in thread
From: Theodore Ts'o @ 2019-04-26 20:06 UTC (permalink / raw)
To: Bharath Veda; +Cc: arnd, Greg KH, LKML
On Sat, Apr 27, 2019 at 12:52:25AM +0530, Bharath Veda wrote:
> Hi,
>
> Please ignore this patch. It breaks the build.
>
> On Fri, Apr 26, 2019 at 11:59 PM Bharath Vedartham <linux.bhar@gmail.com> wrote:
> >
> > Make add_hwgenerator_randomness static as it is only declared on
> > drivers/char/random.c
If one were to run the handy-dandy command "git grep
add_hwgenerator_randomness", one would find:
drivers/char/hw_random/core.c: add_hwgenerator_randomness((void *)rng_fillbuf, rc,
drivers/char/random.c:void add_hwgenerator_randomness(const char *buffer, size_t count,
drivers/char/random.c:EXPORT_SYMBOL_GPL(add_hwgenerator_randomness);
drivers/net/wireless/ath/ath9k/rng.c: add_hwgenerator_randomness((void *)rng_buf, bytes_read,
include/linux/hw_random.h:extern void add_hwgenerator_randomness(const char *buffer, size_t count, size_t entropy);
So the claim that it is only declared in drivers/char/random.c is not
true.
And of course, build-testing patches before sending them out for
review is a really good idea.
Cheers,
- Ted
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-04-26 20:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-26 18:29 [PATCH] drivers/char/random.c: Make add_hwgenerator_randomness static Bharath Vedartham
2019-04-26 19:22 ` Bharath Veda
2019-04-26 20:06 ` Theodore Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox