2019-04-30 05:35:46

by Timmy Li

[permalink] [raw]
Subject: [PATCH] pid: Remove unneeded hash header file

Hash functions are not needed since idr is used now.
Let's remove hash header file for cleanup.

Signed-off-by: Timmy Li <[email protected]>
---
kernel/pid.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/kernel/pid.c b/kernel/pid.c
index 20881598bdfa..89548d35eefb 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -32,7 +32,6 @@
#include <linux/init.h>
#include <linux/rculist.h>
#include <linux/memblock.h>
-#include <linux/hash.h>
#include <linux/pid_namespace.h>
#include <linux/init_task.h>
#include <linux/syscalls.h>
--
2.17.1


2019-05-11 22:56:12

by Andrew Morton

[permalink] [raw]
Subject: Re: [PATCH] pid: Remove unneeded hash header file

On Mon, 29 Apr 2019 22:33:19 -0700 Timmy Li <[email protected]> wrote:

> Hash functions are not needed since idr is used now.
> Let's remove hash header file for cleanup.
>

OK.

And the nice block comment at the start of kernel/pid.c is rather out
of date...