Received: by 10.213.65.68 with SMTP id h4csp227312imn; Mon, 26 Mar 2018 20:03:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELsRtnQ+5csjrTAQNUEM8G41jQERRiqcDBqweIht3qg3idVFc2AUAoZcVgDG72DoyxV2cGlx X-Received: by 2002:a17:902:2006:: with SMTP id n6-v6mr43475785pla.150.1522119832342; Mon, 26 Mar 2018 20:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522119832; cv=none; d=google.com; s=arc-20160816; b=hK/sdFbRk7qhhZSA7I9O3Y26iEDl4CH7+2ha/FDD8HjAxVlDnjumt+Kcyufvg/ZzaV lu9X696fEMngUOLnsnqNAZRE63Iri/h0BcpKYarnIP8QgAPoAsNnsjiDuBmoXTdZX2tt 3pdO7YKJc74dTubamHWd6Sr7WDg1/BgoCVY839veBvu1uUdnkKTx1PoARhK3jtpmo6HL /M/vsH7Mix2/W+0a8sU7Wmf0av0Kn5gCcELnMy2f2bPEd0TtiZmktFhnFV0DWEmHZPCI HVyE2rCHOV/MaAEXFbSIFIOlDJJuMgeG1nuqJG5BOAEC97Rrvqgtpgs4yVEbViWwA5QI yZPg== 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:dkim-signature:arc-authentication-results; bh=yq2LypNTzcnhsWJHrVkxCwI9iaaZ/RxisnLQfWFM53M=; b=CBpgohlKWW7YlvQttdP4Xs6v47s5jjv2VKm/hzgVz/fYt1+NBgKl5m0qm59KyQNGo3 bDQBoVHQGPflPqqtjkzP7/q+SVheVYq55btN1LYxEajJnJ+cxgqjVOsHPJbfCs8peW9o wFUD46C1OSnDYukjf+wt3VkFWntYudFSD2psxvL7Y4gC8cje73aZYGBaKLmtrp7It7Gi fjnAOS7yWRTElYyU0hCd92ahsAXzPPJnNlpwpViC5/R+jNMQ87coLDEk4sYy9OO+M1if hmWghTYrOTjIYV7t81nlx5vfUJaKMIBsN+IAfuaAArBZXV3OjnkGoVKitaBYJNmU82kK Jq4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f6G0L+E7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4-v6si268841plc.59.2018.03.26.20.03.36; Mon, 26 Mar 2018 20:03:52 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f6G0L+E7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752613AbeC0DCg (ORCPT + 99 others); Mon, 26 Mar 2018 23:02:36 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:39960 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752571AbeC0DCe (ORCPT ); Mon, 26 Mar 2018 23:02:34 -0400 Received: by mail-pg0-f67.google.com with SMTP id g8so8058779pgv.7; Mon, 26 Mar 2018 20:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=yq2LypNTzcnhsWJHrVkxCwI9iaaZ/RxisnLQfWFM53M=; b=f6G0L+E7Kuu2iPKZ9lEpfHKbkFhYf6tWGaN8cRJVLSBlCNTQE8hf+V57Z838Kn9PQb 0B/h1lfY2yyVLTZk2SoQUbhKgHIew4R9tG2BSHFQsj7RyqYvU3Wz2UOhThoKuXljq+7C lcdUPNmw3czcXDAFNAXgNmjmLWhMZcdUT0ZETnvyUccqlgI5IQDJNePDO9+/cMcwPgzy 1hHXiNhZWsxV6eYRBo3r/OGaRTlkrZcfyHvoi8Ozrpwj5IJT0SyZfPTa73R7DEylbaZj gyf6aeS4UjcacBjmjF5KkOi2+NHCoBADGDSvIr1e68sA0DEBJsiBBv2pr4Tt46XkO0Mu gc8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=yq2LypNTzcnhsWJHrVkxCwI9iaaZ/RxisnLQfWFM53M=; b=Hr13Jh6jJYNAfVlJHdtkqE8vz6mDChdQbteAN3swaBL6BLPdTf+yb3Y4acve5wRcia i4FGGUX2iWaCf2vJDN59NdmZHqXDQL7sLVzf5AvbBQ4SjBvMCdpnNGvqMaHXiwAZqRwg fsvNwqdDVX1SdYrqjZOjRlH0ndWw4QuskicTmC5kOofYnauA6n1aDwCn3t+d80bpYa5o Jy3xWJVmVgz88ZlaaiD5Yjk7Pt8QQ1WKYwjQekiZDtHBu77o3A7sKXd0mefyylTts46s 6nj9p3KuRCvakJYAgmkomf2Lme1mIxV6RlY5QEj7QoFr/8mCo97DixOn47rDH8gKnpPp 7g0A== X-Gm-Message-State: AElRT7EZHeSOx1Nb2dob56Ev1/x+A+FWLn4yIT1zf18VUefuAcVJWYyY oetbqeCm9PXntyjjxYzClPk= X-Received: by 10.101.74.138 with SMTP id b10mr9108252pgu.148.1522119753750; Mon, 26 Mar 2018 20:02:33 -0700 (PDT) Received: from ast-mbp ([2620:10d:c090:180::1:bb35]) by smtp.gmail.com with ESMTPSA id b18sm304495pfi.34.2018.03.26.20.02.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Mar 2018 20:02:32 -0700 (PDT) Date: Mon, 26 Mar 2018 20:02:30 -0700 From: Alexei Starovoitov To: "Du, Changbin" Cc: 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: <20180327030229.txifuth2qmnjo3hy@ast-mbp> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180327022010.57u6rn73inbkrycn@intel.com> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Please test with in-source and out-of-source builds.