* [PATCH] lib: random: make linux/hw_random.h header self-contained
@ 2023-09-11 12:17 Ahmad Fatoum
2023-09-12 9:27 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2023-09-11 12:17 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
struct hwrng defined in the file embeds a struct device, so inclusion
of the header defining it is in order.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
include/linux/hw_random.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h
index fad41b688063..9143ba1f8d4c 100644
--- a/include/linux/hw_random.h
+++ b/include/linux/hw_random.h
@@ -14,6 +14,7 @@
#define LINUX_HWRANDOM_H_
#include <linux/list.h>
+#include <driver.h>
/**
* struct hwrng - Hardware Random Number Generator driver
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] lib: random: make linux/hw_random.h header self-contained
2023-09-11 12:17 [PATCH] lib: random: make linux/hw_random.h header self-contained Ahmad Fatoum
@ 2023-09-12 9:27 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2023-09-12 9:27 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
On Mon, Sep 11, 2023 at 02:17:31PM +0200, Ahmad Fatoum wrote:
> struct hwrng defined in the file embeds a struct device, so inclusion
> of the header defining it is in order.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> include/linux/hw_random.h | 1 +
> 1 file changed, 1 insertion(+)
Applied, thanks
Sascha
>
> diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h
> index fad41b688063..9143ba1f8d4c 100644
> --- a/include/linux/hw_random.h
> +++ b/include/linux/hw_random.h
> @@ -14,6 +14,7 @@
> #define LINUX_HWRANDOM_H_
>
> #include <linux/list.h>
> +#include <driver.h>
>
> /**
> * struct hwrng - Hardware Random Number Generator driver
> --
> 2.39.2
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-12 9:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-11 12:17 [PATCH] lib: random: make linux/hw_random.h header self-contained Ahmad Fatoum
2023-09-12 9:27 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox