Received: by 10.213.65.68 with SMTP id h4csp234905imn; Mon, 26 Mar 2018 20:17:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/YPJU6i/J5NAXP+8i/SJK9ohxKoIzshsR+OvC/bcsLDlo7ZrBPoy9lUKY62EW34+pGnBCP X-Received: by 2002:a17:902:6597:: with SMTP id c23-v6mr7080146plk.321.1522120647655; Mon, 26 Mar 2018 20:17:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522120647; cv=none; d=google.com; s=arc-20160816; b=PhIm7St07NwDGbTe+ikS55FWBCS0XLfjkpavilu8XqCUY93zoxmSELGC77bK+x45VO aHpjmItvxqB24THf69jMhR0SLdotMvLYJEm1Q9wMrCdqybWs4Hili54dKJC4pHOjpD3Y m5oFYgnrHQDHa3JmhtRfESKKa4AI8fPZjR242LiAHWq8kJMW9u0F2p3/FNLWPLQVlUTK 9+NTmwpBdQ0pFJv6HDtwNpiAbXkXsQfspwlptvmZLbeFU2I0+PwNy8X/JFPaQ5/J2oWP 6QzZOGJSJYNEEoTdhGbVxqJ+nnEAPiVec6GGaOr6ANBSv7sqVomjBSDrTYbix9cCL0yH kkdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=HyUdbIqXABHBBZGdIWKxyAs+YtArH8Gdsg/RtJ2kliY=; b=KLgNybGWWdVRJ6uft3tnGRFafbXvsV3i3IC6PiD1i24fVvfcZQm9+spb/UpW9yHJ8U Lyn77p3i51Q9MrAC5il/ocYRIViuCf7s7HHSFPE5GC7roujAgx7EJKhH0mdBv5sNFEGJ JswLNCcP0gzo8P0fYYIdbeX8R5/0+GGBY1S9gSC2yAuyH6d00Hexipo1X1x/7b1xZgxD YFFLbbp3XL+kqD+8DHKQzyq+2LbnLSKnGcVyIpudr45e+o31virQECd5bgHdwY5UQhb4 01lyjemWcv7A25RKXYX//siDHXkYBFlhrYckgVC+xVIDi4Srsmx7Lc14EG0A3w4gH+hG KU+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16si182311pgc.832.2018.03.26.20.16.59; Mon, 26 Mar 2018 20:17:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752161AbeC0DPg (ORCPT + 99 others); Mon, 26 Mar 2018 23:15:36 -0400 Received: from mga17.intel.com ([192.55.52.151]:32001 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751765AbeC0DPf (ORCPT ); Mon, 26 Mar 2018 23:15:35 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Mar 2018 20:15:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,366,1517904000"; d="scan'208";a="38377473" Received: from gvt-dell.bj.intel.com (HELO intel.com) ([10.238.154.59]) by orsmga003.jf.intel.com with SMTP; 26 Mar 2018 20:15:32 -0700 Date: Tue, 27 Mar 2018 11:06:13 +0800 From: "Du, Changbin" To: Alexei Starovoitov Cc: "Du, Changbin" , shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Borkmann , netdev@vger.kernel.org Subject: Re: [PATCH 4/4] selftests/bpf: fix compiling errors Message-ID: <20180327030613.hkp7hox3g4prnbsg@intel.com> References: <1522056208-4004-1-git-send-email-changbin.du@intel.com> <1522056208-4004-5-git-send-email-changbin.du@intel.com> <20180326145511.lzoi6wja6iht5lvq@ast-mbp.dhcp.thefacebook.com> <20180327022010.57u6rn73inbkrycn@intel.com> <20180327030229.txifuth2qmnjo3hy@ast-mbp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180327030229.txifuth2qmnjo3hy@ast-mbp> User-Agent: NeoMutt/20171027-42-ad8712 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 26, 2018 at 08:02:30PM -0700, Alexei Starovoitov wrote: > On Tue, Mar 27, 2018 at 10:20:10AM +0800, Du, Changbin wrote: > > On Mon, Mar 26, 2018 at 07:55:13AM -0700, Alexei Starovoitov wrote: > > > On Mon, Mar 26, 2018 at 05:23:28PM +0800, changbin.du@intel.com wrote: > > > > Signed-off-by: Changbin Du > > > > --- > > > > tools/testing/selftests/bpf/Makefile | 5 +++-- > > > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > > > > > diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile > > > > index 5c43c18..dc0fdc8 100644 > > > > --- a/tools/testing/selftests/bpf/Makefile > > > > +++ b/tools/testing/selftests/bpf/Makefile > > > > @@ -10,7 +10,8 @@ ifneq ($(wildcard $(GENHDR)),) > > > > GENFLAGS := -DHAVE_GENHDR > > > > endif > > > > > > > > -CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(GENDIR) $(GENFLAGS) -I../../../include > > > > +CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(GENDIR) $(GENFLAGS) \ > > > > + -I../../../include -I../../../../usr/include > > > > LDLIBS += -lcap -lelf -lrt -lpthread > > > > > > > > # Order correspond to 'make run_tests' order > > > > @@ -62,7 +63,7 @@ else > > > > CPU ?= generic > > > > endif > > > > > > > > -CLANG_FLAGS = -I. -I./include/uapi -I../../../include/uapi \ > > > > +CLANG_FLAGS = -I. -I./include/uapi -I../../../include/uapi -I../../../../usr/include \ > > > > -Wno-compare-distinct-pointer-types > > > > > > Nack. > > > I suspect that will break the build for everyone else who's doing it in the directory > > > itself instead of the outer one. > > > > > > > This one? But I didn't see any problem. > > because the build was lucky and additional path ../../../../usr/include didn't point > to a valid dir? I am sorry but I don't understand why you mean *lucky*. Of cause, the path is valid. > Please test with in-source and out-of-source builds. > agree. -- Thanks, Changbin Du