Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp764117imw; Thu, 14 Jul 2022 10:18:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uDFnNx6Lgc8hfkLCEfojjbNR/pa0vSa1jDSsvf8syFbT14s9gE7j+0QCm4VAPDZEu0NipO X-Received: by 2002:a17:90a:ff17:b0:1ef:8b4b:8cc0 with SMTP id ce23-20020a17090aff1700b001ef8b4b8cc0mr11044130pjb.155.1657819118238; Thu, 14 Jul 2022 10:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657819118; cv=none; d=google.com; s=arc-20160816; b=aLvpxmNDdRt4uUpsUaoKmy0GzNWmP2NBhwDaNJL/iKPozOJ+pD00DLufKGWiUhe9MB 2/4LXFPh8VmoMkcGXijCBraobVwAel4217NNjSivW344ED0QaGLJrsYOWAfsbv1sF+lB aBNVYJvksRT0Is7o0TGT7icIASYwAs3fYRvuNp0T7NqMOj2NZl1w+47fIY0tWaxrKJ2O mqb+GoUCltHKhYDeZIskfa36mUA2hM4KNzoPvTgj+b941u+qkJQSW8+BP+B1OyvwHPNt fqx6Au8SP5nmrwxZh71/iC+KC971ZVYamTKWR9EvCgPoy9l/WVdFnoExPlHnMkM+UFsv tSaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=cA4jr91YLMuFQIrjNccfJxrrxDpzEqK75X2ggLEIL2Q=; b=Al8FbdB1kVyqTJj48dlVRZQUH/0/UWHp899vanBZbY+e+9hyTiQL8beH6ZwdzvIhsX DNE4P1kqx9+JqmekUwQErBPvU+9WKree9+RGuujEZuVfsSYLXlbJBOpIMALLgSTEUxAj wXQyG7hD7CIASMEkAcBScm8XmdoRtZIkxUSklvTclGPM9Ec2U9bHIgF2M/PBKMA6q87F M9rc1+HRv3JSxp7XUyermNOP3Y4JK9zg9r7c/Kyfm8Vr+LSHdNoH79aum+0xNvoGcD+2 AGhS3nPW1DEusinqtsKtwkyyWmWLsCCh5xFiyyBeaM0MMR5v5xOoY7h54gjIRSKg0CL6 oy3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fydiakQw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 10-20020a63104a000000b003fc1bb74001si2046669pgq.54.2022.07.14.10.18.17; Thu, 14 Jul 2022 10:18:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fydiakQw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240490AbiGNQqu (ORCPT + 99 others); Thu, 14 Jul 2022 12:46:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240388AbiGNQqc (ORCPT ); Thu, 14 Jul 2022 12:46:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D54E46A9E1; Thu, 14 Jul 2022 09:44:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 884BC6202B; Thu, 14 Jul 2022 16:44:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61802C34114; Thu, 14 Jul 2022 16:44:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657817087; bh=8DzjZ8Pj1BFtFMk4g4SFC/yQwR97X9txfSiLvi2MmfI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fydiakQwD0XRBJza3O5Fq46aBDUSHohbSZ3dk4fnf0PDvrAA6Q19+5Ktjp69bfAaG Qe+lOFqYkXOvdHXZkGyaBi2fx3DSfH5qPVz3gSz2c3ZJTopfJRWp6QZzOicdGP01Ma /TOXi/87lQsioSTRzEPKmxL0iSSmd14K3Jy1O3zcddG63JSznRvlzoj721UrzEiyXq H/TBKteIsSUdFe2WOyhRUCXSfQldQ2EduiQQi55vgBiGxCBaK6ZjT4/mJEI9lQjB7a OmbTmbyAa13DguFHze88dY7hnMLv5ogTK70+1EHsY/TlIBAbLHZBknNmLww4AwZneH zZNjNwJGxz10A== Date: Thu, 14 Jul 2022 09:44:47 -0700 From: Jakub Kicinski To: Jie2x Zhou Cc: davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, shuah@kernel.org, nathan@kernel.org, ndesaulniers@google.com, trix@redhat.com, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev, Philip Li , kernel test robot Subject: Re: [PATCH] tools/testing/selftests/net/bpf/Makefile: fix fatal error: 'bpf/bpf_helpers.h' file not found Message-ID: <20220714094447.6e66fd0e@kernel.org> In-Reply-To: <20220714065003.8388-1-jie2x.zhou@intel.com> References: <20220714065003.8388-1-jie2x.zhou@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Jul 2022 14:50:03 +0800 Jie2x Zhou wrote: > In tools/testing/selftests run: > make -C bpf > make -C net > fatal error: 'bpf/bpf_helpers.h' file not found > > Add bpf/bpf_helpers.h include path in net/bpf/Makefile. > > Reported-by: kernel test robot > Signed-off-by: Jie2x Zhou > --- > tools/testing/selftests/net/bpf/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/testing/selftests/net/bpf/Makefile b/tools/testing/selftests/net/bpf/Makefile > index 8ccaf8732eb2..07d56d446358 100644 > --- a/tools/testing/selftests/net/bpf/Makefile > +++ b/tools/testing/selftests/net/bpf/Makefile > @@ -1,6 +1,7 @@ > # SPDX-License-Identifier: GPL-2.0 > > CLANG ?= clang > +CCINCLUDE += -I../bpf/tools/include > CCINCLUDE += -I../../bpf > CCINCLUDE += -I../../../../lib > CCINCLUDE += -I../../../../../usr/include/ Can we switch to relative paths here, somehow? We keep adding those include paths, see 7b92aa9e6135 ("selftests net: fix kselftest net fatal error") for example.