Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AF3EC636CB for ; Mon, 30 Jan 2023 16:12:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237293AbjA3QMn (ORCPT ); Mon, 30 Jan 2023 11:12:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237196AbjA3QMk (ORCPT ); Mon, 30 Jan 2023 11:12:40 -0500 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2750A42BDC for ; Mon, 30 Jan 2023 08:12:39 -0800 (PST) Received: by mail-il1-x133.google.com with SMTP id l15so1476039ilj.5 for ; Mon, 30 Jan 2023 08:12:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ghoRgfFqMCsRQPOK6Z87rokxeBUN/IZ6P29KfrQWstc=; b=e5IZ9do1pfD6MUrNQcUKjhTDYhpG+gdXhD1LR6dKlzH811ohbZEAJMr13jaeF+ohcE l0aNjghOjj1QffLtdPrX9lkSjrfE6XSu0mmOvdgzkdtfvBX5p0xJq2/DJFdxzHRO44fN r45c95qg8Lj8i6rtaRiM8uwHDQ7Wb9/Ja/HfI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ghoRgfFqMCsRQPOK6Z87rokxeBUN/IZ6P29KfrQWstc=; b=PktZ4PbGHgyhCWQZ6/xqEBOq3S10G1wOS2tQ2x74YvrTuZC0uYoXCVJ5OsnZW3pOQH Ia//gZhGORdlhIUQaj6QONKQi7G5rl4K3oP+iZXRFWMX4HhUvp8/OvEZd4TSF2qlK11E 8tec+Q1Roimy5NRCzLzED0eiRWkLF5R7cprXRamK6ORvmcXqyoP+/EYJ4InfTxOHATFp Jar6g4IlIvMTtrSt9e06QjN6JioHNXj8S+vaGsdfAg26uP/Vs6Xk3wIQ/rl1ZEAEzHKK LcXVBwELJ9LYsirgEkkjpfamRhQAdRFdsGmZzAGbnkbcOWiphjCwlZHd+PWy7m+yn+OS rrXQ== X-Gm-Message-State: AO0yUKXG+9A6IOOaZbWGpcM8qta6HQGAsMe3zQxw5kSNOjCpnlsqVFFB OovSwymutTDx1kFngp1yYs2pbH5/gnZAsltp X-Google-Smtp-Source: AK7set/Qlfq1pQGWZOK81YRqIs6hOJ+QifenEqB0RrybDWb85kQCHFUi96YlZSmf54OF7eCNuGqYrw== X-Received: by 2002:a05:6e02:1a46:b0:310:ecea:b488 with SMTP id u6-20020a056e021a4600b00310eceab488mr988065ilv.3.1675095158488; Mon, 30 Jan 2023 08:12:38 -0800 (PST) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id v16-20020a056638009000b003ab21c8fa84sm3599666jao.121.2023.01.30.08.12.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Jan 2023 08:12:37 -0800 (PST) Message-ID: <4defb04e-ddcb-b344-6e9f-35023dee0d2a@linuxfoundation.org> Date: Mon, 30 Jan 2023 09:12:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 02/34] selftests: bpf: Fix incorrect kernel headers search path Content-Language: en-US To: Mathieu Desnoyers , Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar , Alexei Starovoitov , Daniel Borkmann Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, bpf , Networking , Shuah Khan References: <20230127135755.79929-1-mathieu.desnoyers@efficios.com> <20230127135755.79929-3-mathieu.desnoyers@efficios.com> From: Shuah Khan In-Reply-To: <20230127135755.79929-3-mathieu.desnoyers@efficios.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/27/23 06:57, Mathieu Desnoyers wrote: > Use $(KHDR_INCLUDES) as lookup path for kernel headers. This prevents > building against kernel headers from the build environment in scenarios > where kernel headers are installed into a specific output directory > (O=...). > > Signed-off-by: Mathieu Desnoyers > Cc: Shuah Khan > Cc: linux-kselftest@vger.kernel.org > Cc: Ingo Molnar > Cc: [5.18+] > --- > tools/testing/selftests/bpf/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile > index c22c43bbee19..6998c816afef 100644 > --- a/tools/testing/selftests/bpf/Makefile > +++ b/tools/testing/selftests/bpf/Makefile > @@ -327,7 +327,7 @@ endif > CLANG_SYS_INCLUDES = $(call get_sys_includes,$(CLANG),$(CLANG_TARGET_ARCH)) > BPF_CFLAGS = -g -Werror -D__TARGET_ARCH_$(SRCARCH) $(MENDIAN) \ > -I$(INCLUDE_DIR) -I$(CURDIR) -I$(APIDIR) \ > - -I$(abspath $(OUTPUT)/../usr/include) > + $(KHDR_INCLUDES) > > CLANG_CFLAGS = $(CLANG_SYS_INCLUDES) \ > -Wno-compare-distinct-pointer-types Adding bpf maintainers - bpf patches usually go through bpf tree. Acked-by: Shuah Khan thanks, -- Shuah