Re: [PATCH] pid: remove unused include

From: Alexey Dobriyan
Date: Tue Oct 05 2010 - 13:19:22 EST


On Tue, Oct 05, 2010 at 07:20:26PM +0800, jovi zhang wrote:
> remove unused include of pid.c

> --- a/kernel/pid.c
> +++ b/kernel/pid.c
> @@ -27,15 +27,12 @@
>  */
>
> #include <linux/mm.h>
> -#include <linux/module.h>

This one is needed for EXPORT_SYMBOL_GPL.

> -#include <linux/slab.h>


This one is for kzalloc()

> #include <linux/init.h>
> #include <linux/rculist.h>
> #include <linux/bootmem.h>
> #include <linux/hash.h>
> #include <linux/pid_namespace.h>
> #include <linux/init_task.h>
> -#include <linux/syscalls.h>

This one can go, sys_wait4() usage was removed.
Have you checked compilation?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/