diff mbox series

[v1,1/1] hw_random: Remove list.h from the hw_random.h

Message ID 20240605185133.2535780-1-andriy.shevchenko@linux.intel.com (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show
Series [v1,1/1] hw_random: Remove list.h from the hw_random.h | expand

Commit Message

Andy Shevchenko June 5, 2024, 6:51 p.m. UTC
The 'struct list' type is defined in types.h, no need to include list.h
for that.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 include/linux/hw_random.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Herbert Xu June 16, 2024, 5:57 a.m. UTC | #1
On Wed, Jun 05, 2024 at 09:51:33PM +0300, Andy Shevchenko wrote:
> The 'struct list' type is defined in types.h, no need to include list.h
> for that.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  include/linux/hw_random.h | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Patch applied.  Thanks.
diff mbox series

Patch

diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h
index 136e9842120e..b424555753b1 100644
--- a/include/linux/hw_random.h
+++ b/include/linux/hw_random.h
@@ -13,9 +13,8 @@ 
 #define LINUX_HWRANDOM_H_
 
 #include <linux/completion.h>
-#include <linux/types.h>
-#include <linux/list.h>
 #include <linux/kref.h>
+#include <linux/types.h>
 
 /**
  * struct hwrng - Hardware Random Number Generator driver