[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHC9VhSCnZ4HfqA5ZR3xEzrofGZobLhbHr_N2OftkzW=Z6Q_YQ@mail.gmail.com>
Date: Thu, 13 Dec 2018 18:42:10 -0500
From: Paul Moore <paul@...l-moore.com>
To: yuehaibing@...wei.com
Cc: Eric Paris <eparis@...hat.com>, linux-kernel@...r.kernel.org,
linux-audit@...hat.com
Subject: Re: [PATCH -next] audit: remove duplicated include from audit.c
On Sun, Dec 9, 2018 at 1:25 AM YueHaibing <yuehaibing@...wei.com> wrote:
> Remove duplicated include.
>
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
> ---
> kernel/audit.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/kernel/audit.c b/kernel/audit.c
> index a0a4544..632d360 100644
> --- a/kernel/audit.c
> +++ b/kernel/audit.c
> @@ -60,7 +60,6 @@
> #include <linux/mutex.h>
> #include <linux/gfp.h>
> #include <linux/pid.h>
> -#include <linux/slab.h>
As discussed previously, I don't want to remove header files whose
declarations are used in the source file. While it may be true that
slab.h is included in one of the previously included header files, I
like leaving it as an explicit include to help document the dependency
and protect us from changes in the other header files.
--
paul moore
www.paul-moore.com
Powered by blists - more mailing lists