Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7770570ybl; Thu, 16 Jan 2020 05:25:01 -0800 (PST) X-Google-Smtp-Source: APXvYqyhFiT9YrvquGkxvxBZwhT/zo5IF/ybv7yrQwOp3TxoZW9wjEa7rZbXeGh9QVFZ75CnhKTB X-Received: by 2002:a05:6830:1615:: with SMTP id g21mr2008691otr.49.1579181101120; Thu, 16 Jan 2020 05:25:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579181101; cv=none; d=google.com; s=arc-20160816; b=Wml65eOCovJu47kbf73pcfrOLwy6/6zwDoTK/qjfc0l+lp7mh5BjlhM5vAZ6tRs9I6 5WEXUSoNYCWZrp4nmqV+I+XtZI7hcOKJTI4QhKWut7NrcWg1YqQ/51IVd7WQiwH5PBpF DQ2X5ovMTbModJU8XAfr/Rm86itEq5ul5cR00FIcfUCt2elJNnZqnG9ojviLkrXKcXq/ KrHFdK4pMvIbc0XoZK1OS8yd0SZ66BRgDLL4ggULsYhgXW+djcr5PLzZATVF+0eYVGll C7YQW4uosmEv4rOQJywWsSilbNBvTWVrCU8JeqkcYyo/AOax4/4/kAVW5Tn1U/h4ixAD kAxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dkim-signature; bh=xYGxxZgSLFtlH8jcI3Nu4qoKg9CPPVXnWephfx6aPc4=; b=e2A26TDFHfmqNEzs0p2d+fga9J9he3+eSV+iB86V3F6WL40YGwi9Yyz0/lmgUEitVf ECYVCG//WlgzTq32oPVrE4tspIGCj0Nk5tk6rQK7PsE9fCWyWm5qs+iMfuRjh//JvlqL 9gLQjw7jUkxQIpd3XAjMz/IaP8m4lcEM0f0VMrxYUgMuyiz10nDbhBrxtjGK20SfcXz+ H5h9SFHLxKdF0xyyNsw0Ph9kNZVe+WF5148v5L9D9meda9TiV4zo2riAIkgtOeXxzP0C a/6moLt11bYgxfTdhw1lUSLkC3bJ5MF0v7smzkqEGCvGWiWPoYZVWlPcILtOeIxICY+V jPOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A5+wcdgj; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si13184584oti.273.2020.01.16.05.24.48; Thu, 16 Jan 2020 05:25:01 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=A5+wcdgj; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729099AbgAPNWk (ORCPT + 99 others); Thu, 16 Jan 2020 08:22:40 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:36109 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728897AbgAPNWd (ORCPT ); Thu, 16 Jan 2020 08:22:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579180951; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xYGxxZgSLFtlH8jcI3Nu4qoKg9CPPVXnWephfx6aPc4=; b=A5+wcdgja+B+2fGgSHlowJY9nG9BKOo3PYK8f7SwW2oMwo0oQ66KMgTEjpyC8AKhSjm8bV zzQu5KduGzLIfg8gFYEM1BAfhb9CvPG6T6sqTGMx+P6CqGDktegEprDIlhF0QLl80FSdDl cVFkgR9Fc2zVKcyuoDBmMHj0D96eJHU= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-341-CGdkK9APNeKnk41NZnWVPw-1; Thu, 16 Jan 2020 08:22:30 -0500 X-MC-Unique: CGdkK9APNeKnk41NZnWVPw-1 Received: by mail-lj1-f198.google.com with SMTP id r14so5126511ljc.18 for ; Thu, 16 Jan 2020 05:22:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=xYGxxZgSLFtlH8jcI3Nu4qoKg9CPPVXnWephfx6aPc4=; b=CpHx093mLS3Nn8DuNj4TVdPI9wcJs3LMcJgez2Uf3zrKdVCw71PXr8GOvOwAK6VXfw WavDnYQdi5iMSMdtwjhz4kFPYGmvJy4UuQbdwfUcVmFnR95K20eLMQUQpNAJaVfNqi+c d51d+/as5QeIed/tRPBmwqSJp0m8Xm25qwLq/klEXqL13A2jWnQ93Grzg81NIakPTsop Z72hnR+521ZVdNklQnjRyoDKWlQGQF1dmnzbScgLiHyjf+fiZAxJg+cUrTjDh5E0zDdN gybXlarpREAMWwCA8nC8NMhWXXJ5y6tgsVtz2pYEhNJO3kT/5SwZMCghwDHMRFT5Bdsu +S5w== X-Gm-Message-State: APjAAAXdYu6+BzJA+z0LCb0As22jHJkQDigwCp+96NkpmaBHnJSvFX4/ fnr1IY/PjWpFxU52LXK//e4cYIEZ/HaIq8FxPqY5UxUElHodzc97Tlc4xNvUs5YZ8p9YB0MZV8+ gV7rAi8JFgd5F4FzrDTg6dJ6r X-Received: by 2002:a2e:b52b:: with SMTP id z11mr2348630ljm.155.1579180947072; Thu, 16 Jan 2020 05:22:27 -0800 (PST) X-Received: by 2002:a2e:b52b:: with SMTP id z11mr2348613ljm.155.1579180946842; Thu, 16 Jan 2020 05:22:26 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id s22sm10945565ljm.41.2020.01.16.05.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2020 05:22:25 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 19EEE1808D8; Thu, 16 Jan 2020 14:22:24 +0100 (CET) Subject: [PATCH bpf-next v3 11/11] libbpf: Fix include of bpf_helpers.h when libbpf is installed on system From: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= To: Alexei Starovoitov Cc: Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Doug Ledford , Jason Gunthorpe , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Shuah Khan , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kselftest@vger.kernel.org, clang-built-linux@googlegroups.com Date: Thu, 16 Jan 2020 14:22:24 +0100 Message-ID: <157918094400.1357254.5646603555325507261.stgit@toke.dk> In-Reply-To: <157918093154.1357254.7616059374996162336.stgit@toke.dk> References: <157918093154.1357254.7616059374996162336.stgit@toke.dk> User-Agent: StGit/0.21 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Toke Høiland-Jørgensen The change to use angled includes for bpf_helper_defs.h breaks compilation against libbpf when it is installed in the include path, since the file is installed in the bpf/ subdirectory of $INCLUDE_PATH. Since we've now fixed the selftest Makefile to not require this anymore, revert back to double-quoted include so bpf_helpers.h works regardless of include path. Fixes: 6910d7d3867a ("selftests/bpf: Ensure bpf_helper_defs.h are taken from selftests dir") Signed-off-by: Toke Høiland-Jørgensen --- tools/lib/bpf/bpf_helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/bpf_helpers.h b/tools/lib/bpf/bpf_helpers.h index 050bb7bf5be6..f69cc208778a 100644 --- a/tools/lib/bpf/bpf_helpers.h +++ b/tools/lib/bpf/bpf_helpers.h @@ -2,7 +2,7 @@ #ifndef __BPF_HELPERS__ #define __BPF_HELPERS__ -#include +#include "bpf_helper_defs.h" #define __uint(name, val) int (*name)[val] #define __type(name, val) typeof(val) *name