From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u0JGBaWu024296 for ; Tue, 19 Jan 2016 11:11:36 -0500 Message-ID: <1453219908.2521.118.camel@linux.intel.com> Subject: Re: [PATCH v1 1/1] selinux: use absolute path to include directory From: Andy Shevchenko To: Paul Moore Cc: selinux@tycho.nsa.gov, linux-security-module@vger.kernel.org, James Morris Date: Tue, 19 Jan 2016 18:11:48 +0200 In-Reply-To: References: <1449259655-84458-1-git-send-email-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: On Tue, 2016-01-19 at 10:53 -0500, Paul Moore wrote: > On Fri, Dec 4, 2015 at 3:07 PM, Andy Shevchenko > wrote: > > Compiler warns us a lot that it can't find include folder because > > it's provided > > in relative form. > > > >   CC      security/selinux/netlabel.o > > cc1: warning: security/selinux/include: No such file or directory > > [-Wmissing-include-dirs] > > cc1: warning: security/selinux/include: No such file or directory > > [-Wmissing-include-dirs] > > cc1: warning: security/selinux/include: No such file or directory > > [-Wmissing-include-dirs] > > cc1: warning: security/selinux/include: No such file or directory > > [-Wmissing-include-dirs] > > > > Add $(srctree) prefix to the path. > > > > Signed-off-by: Andy Shevchenko > > --- > >  security/selinux/Makefile | 2 +- > >  1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/security/selinux/Makefile b/security/selinux/Makefile > > index ad5cd76..90d1adb 100644 > > --- a/security/selinux/Makefile > > +++ b/security/selinux/Makefile > > @@ -13,7 +13,7 @@ selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o > > > >  selinux-$(CONFIG_NETLABEL) += netlabel.o > > > > -ccflags-y := -Isecurity/selinux -Isecurity/selinux/include > > +ccflags-y := -Isecurity/selinux > > -I$(srctree)/security/selinux/include > > Why not add the $(srctree) prefix to both paths? I don't care as long as it fixes the annoying messages. Though, I can re-do the patch if it looks better that way. -- Andy Shevchenko Intel Finland Oy