diff mbox series

[-next] hwrng: Remove duplicated include

Message ID 20230810115858.24735-1-guozihua@huawei.com (mailing list archive)
State Superseded
Delegated to: Herbert Xu
Headers show
Series [-next] hwrng: Remove duplicated include | expand

Commit Message

Guozihua (Scott) Aug. 10, 2023, 11:58 a.m. UTC
Remove duplicated include of linux/random.h. Resolves checkincludes
message.

Signed-off-by: GUO Zihua <guozihua@huawei.com>
---
 drivers/char/hw_random/core.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Herbert Xu Aug. 10, 2023, 12:14 p.m. UTC | #1
On Thu, Aug 10, 2023 at 07:58:58PM +0800, GUO Zihua wrote:
> Remove duplicated include of linux/random.h. Resolves checkincludes
> message.
> 
> Signed-off-by: GUO Zihua <guozihua@huawei.com>
> ---
>  drivers/char/hw_random/core.c | 1 -
>  1 file changed, 1 deletion(-)

Please sort the header files alphabetically.

Thanks,
Guozihua (Scott) Aug. 10, 2023, 1:02 p.m. UTC | #2
On 2023/8/10 20:14, Herbert Xu wrote:
> On Thu, Aug 10, 2023 at 07:58:58PM +0800, GUO Zihua wrote:
>> Remove duplicated include of linux/random.h. Resolves checkincludes
>> message.
>>
>> Signed-off-by: GUO Zihua <guozihua@huawei.com>
>> ---
>>  drivers/char/hw_random/core.c | 1 -
>>  1 file changed, 1 deletion(-)
> 
> Please sort the header files alphabetically.
> 
> Thanks,
Hi Herbert,

Thanks for the incredibly timely reply! A v2 has been sent.
diff mbox series

Patch

diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c
index f34d356fe2c0..ead998ca0c40 100644
--- a/drivers/char/hw_random/core.c
+++ b/drivers/char/hw_random/core.c
@@ -21,7 +21,6 @@ 
 #include <linux/sched/signal.h>
 #include <linux/miscdevice.h>
 #include <linux/module.h>
-#include <linux/random.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
 #include <linux/uaccess.h>