Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6606884ybl; Wed, 15 Jan 2020 07:21:35 -0800 (PST) X-Google-Smtp-Source: APXvYqz88cRiUKxVImZX8VObeeKDudE61m35O9ATn9FHNsCQ+Q7zx8xuUjKr1hpO/cl9vJaYyd9z X-Received: by 2002:aca:6545:: with SMTP id j5mr252598oiw.60.1579101695527; Wed, 15 Jan 2020 07:21:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579101695; cv=none; d=google.com; s=arc-20160816; b=O8Vj4oPvLGZVrSWvapLSa9Q8tEmj169ZmlCGBC+vWw23cC2XVLLwEelTnmjm3jiaF7 BDkNClaFpNd1h/2POyLvZWT6R9i4sYcF3vk0DZkjGv1TONMaqmVER968SGEYIm+otCEh PMyGDKHabmikBpVA5rgwlrBesNq5Uy9GBoNSqMm2KK25gg5VD8GDUYXjx1jwyr6pEnDG F8JRCnE54okcwJ04PWkahy57QISG+2wvxLtXvIAxJwt9/L9e3S+AoeiE+/WJ7OVGdcyk ka3WLy11y/KtUABf+UT0knr8OdMnWsjIvXrmNPFoenHFp5AnNgv+wCeNoyqoQMrR3KmD G1Lg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=O28pugdE3ji8Z7d58Dp1KejMSWnJ7EsYgUczW6n+9NY=; b=MLL379SMLDdbJBnaAZoI2Mk6VOyak9t9bWi8PkQtmDt/T+9j8bjmUbEhsBGyWMV8M3 9T8d9AHfKsRA1qPewpxQauuXVI/ldtEjpc3POJOkg1P/zxtIEZr30lB5a/HZXzEpZ1Wi sfKbD8LiRNgMnFCDrv5CSnXgyvYd0NDXSiIOKImlOuBSbDAnJoRX1fgYLAEp/KpTzxbV kqNxBEzLbrvSS98UeQsFAelgUhqHy6IpiSDgSDqhQlJWs4l1MVF0PQr3qJGyVv1Z6R8q RAMtWu2ABFPRjesaBodwPIlNyb4EewOmiN3eAY+h5HPuCegP+g1qVhCynelbA5JTnvnr Gtag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=F69sbxVl; 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 n14si11267867otk.179.2020.01.15.07.21.22; Wed, 15 Jan 2020 07:21:35 -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=F69sbxVl; 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 S1729026AbgAOPTA (ORCPT + 99 others); Wed, 15 Jan 2020 10:19:00 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:39664 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726132AbgAOPS7 (ORCPT ); Wed, 15 Jan 2020 10:18:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579101538; 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=O28pugdE3ji8Z7d58Dp1KejMSWnJ7EsYgUczW6n+9NY=; b=F69sbxVl2NEsx/ned4ezVnMKCxGPSrNFIiYJ/XZoSnTdymVkEJF/LdY0lMfcbTVUobZo3g H0OWjArCJGolmqd/hXkUbqyvFEWjap7E+Cnue/czGNmt5tFitwkBxSErAeB+mmtFKIYLvV u381+/3cNNLHk0FNETQoFkxhZATMfqw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-177-q6bYgGs4Pb6_ldebLaXl3g-1; Wed, 15 Jan 2020 10:18:54 -0500 X-MC-Unique: q6bYgGs4Pb6_ldebLaXl3g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F20318F8A0F; Wed, 15 Jan 2020 15:18:49 +0000 (UTC) Received: from carbon (ovpn-200-25.brq.redhat.com [10.40.200.25]) by smtp.corp.redhat.com (Postfix) with ESMTP id A1E6A66842; Wed, 15 Jan 2020 15:18:26 +0000 (UTC) Date: Wed, 15 Jan 2020 16:18:25 +0100 From: Jesper Dangaard Brouer To: Toke =?UTF-8?B?SMO4aWxhbmQtSsO4cmdlbnNlbg==?= Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Doug Ledford , Jason Gunthorpe , "David S. Miller" , Jakub Kicinski , 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, brouer@redhat.com Subject: Re: [PATCH bpf-next v2 07/10] samples/bpf: Use consistent include paths for libbpf Message-ID: <20200115161825.351ebf23@carbon> In-Reply-To: <157909757639.1192265.16930011370158657444.stgit@toke.dk> References: <157909756858.1192265.6657542187065456112.stgit@toke.dk> <157909757639.1192265.16930011370158657444.stgit@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Jan 2020 15:12:56 +0100 Toke H=C3=B8iland-J=C3=B8rgensen wrote: > From: Toke H=C3=B8iland-J=C3=B8rgensen >=20 > Fix all files in samples/bpf to include libbpf header files with the bpf/ > prefix, to be consistent with external users of the library. Also ensure > that all includes of exported libbpf header files (those that are exported > on 'make install' of the library) use bracketed includes instead of quote= d. >=20 > To make sure no new files are introduced that doesn't include the bpf/ > prefix in its include, remove tools/lib/bpf from the include path entirel= y, > and use tools/lib instead. >=20 > 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 I like this change. Maybe the reason so many samples/bpf/ files still included "libbpf.h" was that once-upon-a-time we had a "eBPF mini library" in the file samples/bpf/libbpf.h that were included. The file was removed/renamed in: https://git.kernel.org/torvalds/c/8d93045077ae Acked-by: Jesper Dangaard Brouer --=20 Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer