Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8414751ybl; Thu, 16 Jan 2020 16:25:12 -0800 (PST) X-Google-Smtp-Source: APXvYqyOEZoy/z1AKDRiCcwPNeWFwxGBj8XP0H9ySx3KtnUwfNpLsfy0NYhm3J43uFIIOsu3KHOo X-Received: by 2002:aca:2114:: with SMTP id 20mr1514016oiz.9.1579220712172; Thu, 16 Jan 2020 16:25:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579220712; cv=none; d=google.com; s=arc-20160816; b=cStvBUwLfR9XTuH9JgkF6b+uUgA+xCu4c2Wkd5Sel7Kjim0+UMu26GI/L4jfxSSMeH N5/dY7nPQqSIBH/kTRYygdUVuHYorDQqZnq90tYy1L7Owa7c18vyonMpHQDfKVAsjkVj t/u6yT2LN9Tvo70PXBNXYKFeYSsPUnyvtJKL6MFL5O6b9thHJ0Ji6kwLkx8d/VnoS19e OJETO1Un0VeewbvzDy16wdGOtJxFKAIyVhI+Jjogf0v2gUk7c9l6QscMjDT6ePt0ImHH VMaf64gpo6GMeiChKFiZWvgiSnFYjBG1DMVzLVY5q4M8jzqbWvy/Zs5sYUJy5URVGsel bjTA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6V4rDJ8GQ9BDhz/SQaLpqohATNzavITKDId73kmv48o=; b=KfrphsRM/8NjzdMdxPKhcibt05tzJpdSYu0p1goaB0Fa9ybOYpy/raF8iSbRqbEYfe 3kxtMGSgqqjpbIA9HNCs9BRYnnx4ghJPrQHdXRpcsuEHUde8cw3Hfy7f7gWVOjZZI13l zk4b1x5lsd4S6vXPvY7T9fy73RF2Vjxil/26pyxNplJ79AVkAKwAZWh0d+sDeIawvl1z uzYh1UJ2VtI55MYK22iJTDRiXBnVIVNc242uz2O42xUXJdkxFZrWw5uoEoBdbMnVFrKv xymxZBhcA3URNBpdZrpcDqzBy5j8oJLOfki5O6GcrFBHxiZA5/FJoT8gwhLDsoqNG8J2 +kwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n2OjqhSJ; 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 w2si13147716oib.252.2020.01.16.16.25.00; Thu, 16 Jan 2020 16:25:12 -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=@gmail.com header.s=20161025 header.b=n2OjqhSJ; 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 S2389306AbgAPWnz (ORCPT + 99 others); Thu, 16 Jan 2020 17:43:55 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:40943 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732417AbgAPWny (ORCPT ); Thu, 16 Jan 2020 17:43:54 -0500 Received: by mail-qt1-f194.google.com with SMTP id v25so20322462qto.7; Thu, 16 Jan 2020 14:43:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6V4rDJ8GQ9BDhz/SQaLpqohATNzavITKDId73kmv48o=; b=n2OjqhSJc8YoIFY9twmO5Z5tXsxdcAZh5Qi6fB3j43J3mTV128YZjiL0eGIudHd4d6 Ki1uHthOo53TfRpXzq+CASThGj17ABxGtQv7g+CIWOTiI2ap6c6wgFpe6GqtRaZDbvjd IwRHkx0wrLFBV7X4cURvaZXykCQb4ajm+OdLusPqa7zhe2aEucczFNw4TGNZl9Ra4+V7 o/NwphiUivETpcDOvRLsGjyv9PQg6HKoogNx4vtI/gQxyk2/wIGt4d8wG6uga6urD+EC 36C/t+RYhZ7LK+g/0G11g2YfoadULNmV9hIK1d7Kpld7KxhAJbu7Q8WAlEJc07H0i7zB o5WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6V4rDJ8GQ9BDhz/SQaLpqohATNzavITKDId73kmv48o=; b=DVpbPx6LCq0rTeE1yQzzKRBsvQ1onUexU54SseEk3BdOv5/SMNnT1G6d5VICyXlX2S DU+KOayFumfAZcLxwFKFvNND/Qmu1/3rqvKmQC4GFQW8NFf2ImR11tpHt8OIGOrRqGqa J5BTRq/W57nEQ2pQZYE/Wc+Lnujd26TU/KKLP+UmevOGlxURwYHg8ppw2kTC/QnKg/lR h5eX62mOaOvOeJlX4vaOcPLjE+PLjTuu/44LZoiBR9B4oLZr7B2XGyZdmZJFslLZJRnR no1lc0fwSTghuHufIBHf1gShDihKrixcMV8HxfJZ9t4TV0hAIujqHJmvf/Z0LKZt2GoB JWBA== X-Gm-Message-State: APjAAAVcYfmT1mlP77n1Sh9rIMtSUgbJmqiEwSPS/XOSVRsiWwaYimR3 G+u+JIaqDtxUooavJNGwsjqgLCgibHSTq0+PBXk= X-Received: by 2002:ac8:140c:: with SMTP id k12mr4780186qtj.117.1579214633217; Thu, 16 Jan 2020 14:43:53 -0800 (PST) MIME-Version: 1.0 References: <157918093154.1357254.7616059374996162336.stgit@toke.dk> <157918094400.1357254.5646603555325507261.stgit@toke.dk> In-Reply-To: <157918094400.1357254.5646603555325507261.stgit@toke.dk> From: Andrii Nakryiko Date: Thu, 16 Jan 2020 14:43:42 -0800 Message-ID: Subject: Re: [PATCH bpf-next v3 11/11] libbpf: Fix include of bpf_helpers.h when libbpf is installed on system To: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= Cc: Alexei Starovoitov , 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 , Networking , bpf , open list , linux-rdma@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , clang-built-linux@googlegroups.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 5:23 AM Toke H=C3=B8iland-J=C3=B8rgensen wrote: > > From: Toke H=C3=B8iland-J=C3=B8rgensen > > The change to use angled includes for bpf_helper_defs.h breaks compilatio= n > against libbpf when it is installed in the include path, since the file i= s > installed in the bpf/ subdirectory of $INCLUDE_PATH. Since we've now fixe= d > 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 f= rom selftests dir") > Signed-off-by: Toke H=C3=B8iland-J=C3=B8rgensen > --- Acked-by: Andrii Nakryiko > 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 >