Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8415900ybl; Thu, 16 Jan 2020 16:26:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzHC4N0lbxYPEAr3p+RI4z9jvZUJhBRL+riIumc+xBCaIhuulIm/HaTitD/7EnUQiWdlXGf X-Received: by 2002:a05:6830:1e2d:: with SMTP id t13mr4429722otr.128.1579220812921; Thu, 16 Jan 2020 16:26:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579220812; cv=none; d=google.com; s=arc-20160816; b=HMTyQNu8W7QIxS1mTATe+ZVPXktruXd5HbibU4Go79Nelsg3KSltBeiiOXwNBH4yTH oGllIkNuJOR9J82LknvKj0LRjAUVNuoz4gxg7n/6XVNeDy8J5dn/Z/Ey1hhVneltzYZE evS1PoQuBlLQx9l9Fd4C/Mxskgh5EHjQ5KADXxsSM61bXvMwqo6WqY90Mk7VAl60D6vJ 9OzZoUaHbR7QFj5hT2w4YAkgAa93WR/x+VApqnNRu7pnQB+ndHjin6yGqqi6ni5MSxV7 rGnL0UOc2e71O5MY+VkiZVBvFPIxVh2qBV9IIEJmTUQpaUSpRCWjQzGJ1VOG79/tsHyv +Z6g== 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=gMt8+SnETNvSb3er2IKqZvH30KrtlFraAAc0+bmLfy8=; b=aMkW3gI3UvpHp+hKngD4DMoMBjBXaILZf0QaDPTqLykzeRODyIenr9I5/gFAf8poeD PTOfB5R2x2Ag0J0XRq6XTZbQFEmCJ05T7vIP66iyDn8HGQDwKA/+CdXBS1v0aFeeh3HL DSAGTy9nipppony8AlzZd3YdNHkhmBIb7YJGs5EtGltQxPA0kNPK4V78CTL7Hlj52HaV +8BYCbkKfSWOTtJQM82T00pqq7siilY23n4J4NKNZpsigtoCYIdtMxDigHZ0md1nSZzk 3HzvZB+1sq+A27tRZYVjWjiJ/vgNcvigsrUqJiX29u7kYo4+NlN3eoG9fmpgY6zQ25Vy r4rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aCo9b38K; 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 w9si14603167otl.138.2020.01.16.16.26.41; Thu, 16 Jan 2020 16:26:52 -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=aCo9b38K; 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 S2390292AbgAPXGA (ORCPT + 99 others); Thu, 16 Jan 2020 18:06:00 -0500 Received: from mail-qv1-f67.google.com ([209.85.219.67]:40878 "EHLO mail-qv1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389860AbgAPXF7 (ORCPT ); Thu, 16 Jan 2020 18:05:59 -0500 Received: by mail-qv1-f67.google.com with SMTP id dp13so9906484qvb.7; Thu, 16 Jan 2020 15:05:58 -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=gMt8+SnETNvSb3er2IKqZvH30KrtlFraAAc0+bmLfy8=; b=aCo9b38KWts8WXzzWZLO6NyHm24NRK5AZ1gyZAy0kzRKfAU758kF2Caxkzd/cNs8UF 1Y8csThLqPBq8MV4gMUlPRbQMfTrbVU4ve/TYfafcsMa6ISYnsX/X24pU+0IgDNRgbPU VQzI33opWjFxxHmrVAR7q1TDpN6HGbs7uqOtdAaEiaL0TRv068c3wVlJeW6Y9wZIFvpH dyG1KI7f82lNj618TBmExEyl1E3Qndm82VdXwdhsmwk144mBfOuAD+ooWTZK2pZQzsRq Gk5SzY5PDoEG90on7p6PJKtdQAp2U/B4eZrUiyE4MqfnP9yEK2q4RdGZ5pPcEVTjwGS6 gTew== 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=gMt8+SnETNvSb3er2IKqZvH30KrtlFraAAc0+bmLfy8=; b=F4dyuqYpKlEUA4rU1Wmu7S3cEGL68j57PQQYJUz6n0SE3fyo+7jPQYNDHHYHtiyrUZ mJetTi9Tz6TkqWnkojEarrNhqtAZ9dlBPdMicbKuBjUJi7GBGxKyIyoFjklf7AA5kuvT Jva9TGU/FnL3120sn4GO/zUyZsxuQRJIKWoocOlVn/VNpVtomNONZb+3tLhzNFSus3Y2 zA9108RivJTDSXI9oQ2etoxFwTxMDIa6VEcxykl452Jbh9jHVdWKctiv6JvHEM9Ys9Kl IJVz1EnZ2r+GTH3IzTR0GlCUmVouirSWoS6c4ZUQ0U2PQNvgd4AnrsrHKR4KrssNrcpB ZgWw== X-Gm-Message-State: APjAAAUmFRJnaoW2xMFA9bkHQoiOARbWGaZ40Fp6b/LtUdNmIIdz3QKt 3YblHM0iN0k5mUiN5BEbhcRG8MYvDrRBdaY7JEc= X-Received: by 2002:ad4:514e:: with SMTP id g14mr5152752qvq.196.1579215958396; Thu, 16 Jan 2020 15:05:58 -0800 (PST) MIME-Version: 1.0 References: <157918093154.1357254.7616059374996162336.stgit@toke.dk> <157918094179.1357254.14428494370073273452.stgit@toke.dk> In-Reply-To: From: Andrii Nakryiko Date: Thu, 16 Jan 2020 15:05:47 -0800 Message-ID: Subject: Re: [PATCH bpf-next v3 09/11] selftests: Remove tools/lib/bpf from include path 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 2:41 PM Andrii Nakryiko wrote: > > On Thu, Jan 16, 2020 at 5:28 AM Toke H=C3=B8iland-J=C3=B8rgensen wrote: > > > > From: Toke H=C3=B8iland-J=C3=B8rgensen > > > > 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 > > entirely. > > > > Instead, we introduce a new header files directory under the scratch to= ols/ > > dir, and add a rule to run the 'install_headers' rule from libbpf to ha= ve a > > full set of consistent libbpf headers in $(OUTPUT)/tools/include/bpf, a= nd > > then use $(OUTPUT)/tools/include as the include path for selftests. > > > > For consistency we also make sure we put all the scratch build files fr= om > > other bpftool and libbpf into tools/build/, so everything stays within > > selftests/. > > > > Signed-off-by: Toke H=C3=B8iland-J=C3=B8rgensen > > --- BTW, this change also now forces full rebuild regardless if anything changed or not :( [...]