Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6535986ybl; Wed, 15 Jan 2020 06:18:17 -0800 (PST) X-Google-Smtp-Source: APXvYqw3gyKbe2cZZ5S1sVhXHVjANhJTaLiJWdqQNVL7l25V4Hhdt2BBqKxYklG9iF8DaPUH9Ru6 X-Received: by 2002:aca:4183:: with SMTP id o125mr20049355oia.125.1579097897092; Wed, 15 Jan 2020 06:18:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579097897; cv=none; d=google.com; s=arc-20160816; b=xuCqhsvo5m6DI98LnNJrB7XdYMuHmfh3QJLMfPfzDmiN67ZN5HMK9NMgKbrRf74Agg NFbRQGQeyr8J3Xm7XKp85469fY/196Ax5GYorLKh4fYCBBRUAMKayb4Avng0TYbk+OFL SjSOIIvS0f7MUOJtpsMSBLjEfPNn6BVOOolZ3HCMFrTOxT911Rsylx3rk7RgWhlsoheU BjC7HoWhcjrRe38h4MF9YYN8wonQAJZkQBI5/lec/aWj5RA16Qa4Q7jYzNk8SfkCKT4E 1ZX89jJciA4ybrKK/RqnLEvIRLum1Pj0mboMmr+CpxsFfx8tMgKH4WV8zEBuYnnoqzgY 2pvw== 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=IbqVpRR/8QBodrEx/nm52YtktIoV5thrDtYdJd8vMNo=; b=rbUg1usA9PAIXsWOVEyi7GtbSPAFjk3+A1lrvjT5LLzJ0Qd3fH7sw9KrOLXWkvKBFX FPcMb0gbsIdGpPudyvubzHtIP1N/FpyHBg0+Wkv9CcqFmfydCWWqG6jaDXq12WFWJjJ9 WmN+6mbdPKXmiAxXATjpbKzROWLeWy4iIp64uqMIpqKSrtPyKg21bajiQdWrh0MJbi+m LAE9T7JKLFQcpJfYFePb3VwIFpGuxX1GwNLxuAQuRhe5OzRmOd0SeA76ccH1tf0p54cA 3sptxKkVsrDvrZ82TzSBSCujU2LPbfqE7oxCxe5J7nm45KD0NuML8haXOscoGBBSKkm8 MFUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="WWzRj/zE"; 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 n8si10865353otr.102.2020.01.15.06.18.03; Wed, 15 Jan 2020 06:18:17 -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="WWzRj/zE"; 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 S1728978AbgAOOPO (ORCPT + 99 others); Wed, 15 Jan 2020 09:15:14 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:52927 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729600AbgAOONI (ORCPT ); Wed, 15 Jan 2020 09:13:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579097586; 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=IbqVpRR/8QBodrEx/nm52YtktIoV5thrDtYdJd8vMNo=; b=WWzRj/zEPVwOypGkvCxC4dQg0XFEetKYzoVJ3JV7USf78+OP/h+IAwEhdq5FMzEdcguQS1 uiUJbRvHFroLk7gLNgzB3Eh5wil5O0KCNsdSprGINWipQxXrD5mW7IDVN4pe/3nD/UrscU mElp71l8J8YKIBMDnPEST7oNRSjC83c= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-81-CutnM5AHOti9VjdCEP31fA-1; Wed, 15 Jan 2020 09:13:05 -0500 X-MC-Unique: CutnM5AHOti9VjdCEP31fA-1 Received: by mail-lj1-f199.google.com with SMTP id k21so4202726ljg.3 for ; Wed, 15 Jan 2020 06:13:05 -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=IbqVpRR/8QBodrEx/nm52YtktIoV5thrDtYdJd8vMNo=; b=bVMtPjRbbM8NKxDyEIeUfyyzbcH8hNOMr4KVN5Ijb2bSYslzzGa92Ef6k3BsEoS2x1 yRq47coHvMpUqV/0lBxxAitB00ho6p3u/HOckgTYuQqnkInE9Y/tSTmIuVs3uKsT5kDB +/UQ4Qlwk0JnFJ0iXK6PNEqBaPy/0GpmAoRno2qSMBkOPqKKMFeFAC1t8WpbcUot3Rr8 zSWvtRXvWj7zGGwH2gITDp4J2CX328pa6cQfrt3tlBc18NV3Q+JF5KP0aE+eaKVzabgh YesznCDNfyA3kuAVHWKSMobDTT3wAHRdBPFygyLWfJL5HU2OLapkfhHx5VK6aVLtjG/5 6fgg== X-Gm-Message-State: APjAAAUiCpwOUuUdQFJPLPrRNq17KmSAOQbXet9kaDxexQxj6slMX2Ny CZKwTe/SfT+cA2SZsIhkQfyR4aZh25/5Cle6ZgVzmJMdtkRsPi1HND9/8PSS+3gvjcGxHfawQpa 5YltBqW4EFSDd4foONIemdGsq X-Received: by 2002:a2e:97c1:: with SMTP id m1mr1938361ljj.270.1579097584155; Wed, 15 Jan 2020 06:13:04 -0800 (PST) X-Received: by 2002:a2e:97c1:: with SMTP id m1mr1938317ljj.270.1579097583924; Wed, 15 Jan 2020 06:13:03 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id t81sm8978733lff.25.2020.01.15.06.13.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2020 06:13:03 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 941A11804D6; Wed, 15 Jan 2020 15:12:57 +0100 (CET) Subject: [PATCH bpf-next v2 08/10] 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: Wed, 15 Jan 2020 15:12:57 +0100 Message-ID: <157909757751.1192265.13380767037659864244.stgit@toke.dk> In-Reply-To: <157909756858.1192265.6657542187065456112.stgit@toke.dk> References: <157909756858.1192265.6657542187065456112.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. Fix this by adding the bpf/ prefix to the #include directive. 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..fa43d649e7a2 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 #define __uint(name, val) int (*name)[val] #define __type(name, val) typeof(val) *name