From patchwork Fri Jan 27 13:57:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49421 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847613wrn; Fri, 27 Jan 2023 06:01:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXsRQcpL3rOM2YIKa0knLVtZQBbbCBqgIt7KJ7cZr4JAOKPPTaZi5vFFsS4kJoglDdvIRExm X-Received: by 2002:a05:6402:430c:b0:49e:50e:1553 with SMTP id m12-20020a056402430c00b0049e050e1553mr57735760edc.3.1674828101754; Fri, 27 Jan 2023 06:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828101; cv=none; d=google.com; s=arc-20160816; b=ave+wuv+5D7WbBrNr8X7L0VaiofVtg5+VH63xU4WfWyKTYmwHbeg94OyICH6grnu/+ oDmBLDhy+/Klr7u/uLolE8gZVIRWes1V/GLUIEnnBaaijOIOrH9kQNdyziZpj90Ish07 /fJ84Cwb3e67TyUKLr+ws9Ft8P+7xyDA8N/R2lneyLyNl2W6U7zzWldUoLX5sTqiQx7D wEYm6BdwxlHraODtmEeO9hm+7twT1N9rJV8mJuF7X4kXo4Uk5mDrlZRdMxVnGVvaMs7F NPw9yBkCdsxcsq1cR1kT2eMQY6lzNop3qwx319FBbytn59nFudRBkS89uu8dp1k9pmEk 5akQ== 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:date:subject:cc:to:from :dkim-signature; bh=/R1XfwZLQE7nGc6n2UkShnWEJhMA4XHnJ3+0eS8bn0s=; b=kH7De3W8mQUvJ74JkU3Ei3j1M28oXL2RzaLdfEEDh53SuRdOjO581hem4e+3yaecAq weKMhlSTHtFFvHE6DBojCCpaNaijO1tN+pVQdACJDJfixQw5XDzY3PvqPBcSOaWvNJNt pcyTuBSZfGgvFgEkZJcSn5A38tM2/8+/gvAVSpw3XarTNhdAEGOIoXO10pay9JQZ8yTP Qmd+KZyRcHIDhrreuF9MfwjUwDGV1vc1fnpiN2AoZuljFTmiaOty8xO1YkGutdpHiBB4 DcJDeAU3AG6aKWn7bWPDo5/ITpU4umGSvG1D2dtsJs8YM7ro/3BNstjgSSjrHz+H/BtV h5RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=iWZsomuv; 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=efficios.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020aa7d5c5000000b0049e5fecfe85si5153170eds.508.2023.01.27.06.01.03; Fri, 27 Jan 2023 06:01:41 -0800 (PST) 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=@efficios.com header.s=smtpout1 header.b=iWZsomuv; 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=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233822AbjA0N6Y (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233625AbjA0N6J (ORCPT ); Fri, 27 Jan 2023 08:58:09 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F008D537; Fri, 27 Jan 2023 05:58:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827883; bh=Vf6h/Rf3BvGRTZG9RMp4qPzreXRmHs4w6M44ZkRD1eE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iWZsomuvA4qjXFhNRr2IksfNnEHLneiCIcbAY8NWxKfyOx+B04UHol8toTkpmPnOy u24jz5uK4QbXpD9U5+2tI69gMrQBl4nwRin/6XMfVF48nBVlknonQ4ZC/zgDInYAsK niu3BHyEyncJcFBDoITBTI9s4yVBbJrzyN6KCQPkYiDDceJn89ORa1X8rpnU5sxjKm sEQEcwCOJBNmCBT5VYLE7a1bm+ecMfBFP8JT0kFVPB2ZjXbU195p0PK/wHj+DoBCQD VjB8bXs48TtH730IjCj6VckfRVEJx7BUoNqTWsTWR7cC4l0OraXhEYxDI8EPEyHyWI 0Ftl2b9kEceJw== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0W0F5mzhxQ; Fri, 27 Jan 2023 08:58:03 -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 09/34] selftests: futex: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:30 -0500 Message-Id: <20230127135755.79929-10-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184551865900211?= X-GMAIL-MSGID: =?utf-8?q?1756184551865900211?= 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/futex/functional/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/futex/functional/Makefile b/tools/testing/selftests/futex/functional/Makefile index 5a0e0df8de9b..a392d0917b4e 100644 --- a/tools/testing/selftests/futex/functional/Makefile +++ b/tools/testing/selftests/futex/functional/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -INCLUDES := -I../include -I../../ -I../../../../../usr/include/ +INCLUDES := -I../include -I../../ $(KHDR_INCLUDES) CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE -pthread $(INCLUDES) $(KHDR_INCLUDES) LDLIBS := -lpthread -lrt