From patchwork Fri Jan 27 13:57:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 648818 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 9F645C61DA4 for ; Fri, 27 Jan 2023 13:58:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233599AbjA0N6I (ORCPT ); Fri, 27 Jan 2023 08:58:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233493AbjA0N6H (ORCPT ); Fri, 27 Jan 2023 08:58:07 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C76F55A1; Fri, 27 Jan 2023 05:58:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827881; bh=NTvVtxLLbeLVXq8WxJE95PgnDlR3Xl0NO3dxx2J8GXU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RysuPHCtLlPlqo5mT+og4dspKqX/H0sYpROyzZIuhBkQdpU4ZlBpTU5tJ30Dx7fWB l951DGkZw3D/ZY8DN+kC5oqH6DFOvPqXijPN3EgSLzHqNqNLWVs9xMqFO3uTyXr3j1 6OO2CWFHM8Mv5w3z3W6rINZ/Tx/14nDK+Vk0vNNm1QGiC5crNned+VyX8aVl9Xt/Ri o/XKqFsSyECpdOITtsRkc7OrVwyCilzgkJBs2AHzQUILaa8zeskKM6BU0p1Ov6WyW6 PJ9w3mrMRsy241Jhhe0sDEuNurNVTMJe9Fw3HMmx1B6LjyvDhHFkfZUVTe8ZQCGwK9 GPCkKkejAFanw== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0T3xg5zhT7; Fri, 27 Jan 2023 08:58:01 -0500 (EST) From: Mathieu Desnoyers To: Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , stable@vger.kernel.org Subject: [PATCH 02/34] selftests: bpf: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:23 -0500 Message-Id: <20230127135755.79929-3-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230127135755.79929-1-mathieu.desnoyers@efficios.com> References: <20230127135755.79929-1-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org 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