Skip to contentSkip to conversation

hw_random: Remove list.h from the hw_random.h

PATCH In review Andy Shevchenko 2 participants 2 messages Jun 5, 2024 – Jun 16, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw_random: Remove list.h from the hw_random.h

The 'struct list' type is defined in types.h, no need to include list.h for that.

---
 include/linux/hw_random.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/hw_random.h +1 -2
index 136e9842120e..b424555753b1 100644
@@ -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
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
maintainer
#1 lore raw
Quoted 7 lines · Andy Shevchenko

The 'struct list' type is defined in types.h, no need to include list.h for that.

---
 include/linux/hw_random.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt