Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755874Ab3DLNcw (ORCPT ); Fri, 12 Apr 2013 09:32:52 -0400 Received: from mx3-phx2.redhat.com ([209.132.183.24]:45982 "EHLO mx3-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755149Ab3DLNcv convert rfc822-to-8bit (ORCPT ); Fri, 12 Apr 2013 09:32:51 -0400 Date: Fri, 12 Apr 2013 09:32:48 -0400 (EDT) From: Eric Paris To: yongjun wei Cc: Wei Yongjun , linux-kernel@vger.kernel.org Message-ID: <951128173.20228549.1365773568016.JavaMail.root@redhat.com> In-Reply-To: References: <170253117.11083340.1365614765343.JavaMail.root@redhat.com> Subject: Re: [PATCH -next] audit: remove duplicated include from audit.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.5.82.11] X-Mailer: Zimbra 8.0.3_GA_5664 (ZimbraWebClient - FF20 (Linux)/8.0.3_GA_5664) Thread-Topic: [PATCH -next] audit: remove duplicated include from audit.c Thread-Index: Ac43Lc94QGubB33dQHGvphSp1r0KFsUijZq7 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2687 Lines: 83 Came in via the net-next tree from commit 941912133025926307c7a65b203fa38403b1063a I'll ping dmiller and friends. ----- Original Message ----- > Hi Eric, > > Sorry reply on top. > > From the source code from linex-next.git tree, line 55~64: > > #include > #include ******* > #include > #ifdef CONFIG_SECURITY > #include > #endif > #include ******* > #include > #include > #include > > net/netlink.h is included twice, and linux/netlink.h is not included by this > file. > > -----Original Message----- > From: Eric Paris [mailto:eparis@redhat.com] > Sent: 2013年4月11日 1:26 > To: Wei Yongjun > Cc: viro@zeniv.linux.org.uk; Yongjun Wei (RD-CN); > linux-kernel@vger.kernel.org > Subject: Re: [PATCH -next] audit: remove duplicated include from audit.c > > 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 > > > > Remove duplicated include. > > > > Signed-off-by: Wei Yongjun > > --- > > 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 > > #endif > > -#include > > #include > > #include > > #include > > > > > >
> TREND MICRO EMAIL NOTICE
> The information contained in this email and any attachments is confidential
> and may be subject to copyright or other intellectual property protection.
> If you are not the intended recipient, you are not authorized to use or
> disclose this information, and we request that you notify us by reply mail or
> telephone and delete the original message from your mail system.
> 
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/