From: Eric Paris <eparis@redhat.com>
To: Wei Yongjun <weiyj.lk@gmail.com>
Cc: viro@zeniv.linux.org.uk,
yongjun wei <yongjun_wei@trendmicro.com.cn>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] audit: remove duplicated include from audit.c
Date: Wed, 10 Apr 2013 13:26:05 -0400 (EDT) [thread overview]
Message-ID: <170253117.11083340.1365614765343.JavaMail.root@redhat.com> (raw)
In-Reply-To: <CAPgLHd-M-q-xf+mp3VTAabxXS3bOjZ4g8EWLeE2NdjC2O7qCSA@mail.gmail.com>
net/netlink.h includes linux/netlink.h but linux/netlink.h does not include net/netlink.h
since the audit code uses the nlmsg_* functions provided in net/netlink.h it seems we need this include.
since the audit code uses netlink_unicast provided in linux/netlink.h it seems we need that include.
I don't see duplication even if by chance one of them would have included the other...
----- Original Message -----
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Remove duplicated include.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> ---
> kernel/audit.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/kernel/audit.c b/kernel/audit.c
> index 488f85f..9377913 100644
> --- a/kernel/audit.c
> +++ b/kernel/audit.c
> @@ -58,7 +58,6 @@
> #ifdef CONFIG_SECURITY
> #include <linux/security.h>
> #endif
> -#include <net/netlink.h>
> #include <linux/freezer.h>
> #include <linux/tty.h>
> #include <linux/pid_namespace.h>
>
>
next prev parent reply other threads:[~2013-04-10 17:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-04 1:17 [PATCH -next] audit: remove duplicated include from audit.c Wei Yongjun
2013-04-10 17:26 ` Eric Paris [this message]
2013-04-12 3:28 ` yongjun_wei
2013-04-12 13:32 ` Eric Paris
-- strict thread matches above, loose matches on Subject: below --
2018-12-09 6:25 YueHaibing
2018-12-13 23:42 ` Paul Moore
2018-12-14 1:33 ` YueHaibing
2018-12-14 17:14 ` Paul Moore
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=170253117.11083340.1365614765343.JavaMail.root@redhat.com \
--to=eparis@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
--cc=weiyj.lk@gmail.com \
--cc=yongjun_wei@trendmicro.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox