From patchwork Fri Jan 27 13:57:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49424 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848121wrn; Fri, 27 Jan 2023 06:02:24 -0800 (PST) X-Google-Smtp-Source: AK7set8tkZMBLcTdwh6bIcjYqAFfJESv1vDZlr879ZoCR1CHHWo3QxfjGfRgGslr5ebuUIHpx/pb X-Received: by 2002:a17:906:b784:b0:878:6d84:b9dd with SMTP id dt4-20020a170906b78400b008786d84b9ddmr5149815ejb.58.1674828144058; Fri, 27 Jan 2023 06:02:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828144; cv=none; d=google.com; s=arc-20160816; b=gth67qwkeR+EvfyoIuLbVk4+m2MQQFkgswCZDKNT7VwTXl2tQv4o+Uc7p4C7L9AbZ2 /LdESiy0/S5jEvOO3N8926kGBfyXpoXR0YfwFUP1Q8FP9V+qHjR2YpgCAK3Be/IZVeb2 T4ZTox4cdHo47Zjoa8msG98yfC2jW2UZhr3x6/KlEP+E/O5QeC00nGxtqpr3kiAR6WOx RmnJD9NvRByDxRtA9onNfQ/5nTVu27S3gDmcInib9zf+ZZDo+Tx+jHO9TewPJ/OpKXbY 4Lda/hgjvqqiWIrm+PVDvMAPZKtEki6VsUE26nZevaVhHaIMSyRFsdZLIz5tFQevwF/O 1ZtQ== 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=3OiW9+wL8bHeNmfNvoucSzf4B0MhAF+vqOizP6lEFgE=; b=jfH/ElqN5l7/7SwsOpVt7ZCXP37R4X3C18bw0BZEIiB0U/LfO5e56mQepsSMvfvBb0 M8ZWHHTiZo/HMHZ3UIFAEuI9+8ErG0Q+hSuXtSC2cpwlExtp9LR5CChbzjOgBuAh0ofw LpO4h8ggJFGarLtdN5xqdW6UP7aT3DnBJlqKjhTBeTUcZ6Gg9o9Vs6icNi62NyKW5okP 7Vqrnp+RKglRE0fwMSHT5rO8xfQXf01OtLT4VphlxQrM2qfmni55SloOlRBXMFca1Bo4 vUQlkt1KGPCl6XHPwx3BoDfjRemNoCTR8fEGSdxot3mkrp1SKS9K4zX7oCdL3bsf/lRE /J+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=g5Zga5td; 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 e24-20020a170906749800b0087bd76ce97dsi2384054ejl.112.2023.01.27.06.01.52; Fri, 27 Jan 2023 06:02:24 -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=g5Zga5td; 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 S234853AbjA0N7x (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233690AbjA0N61 (ORCPT ); Fri, 27 Jan 2023 08:58:27 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9D432330D; Fri, 27 Jan 2023 05:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827887; bh=j0/J2jgcMN5hRuwHVS3PfRhowqmRAWi4T67r4xbEwTI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g5Zga5tdO5JSw6QnfEUZ26+JP3uOhBoA3BuGJ3CVbx9vWS26fhhaC+yo8NxIn+I3J WeeVZPQvl5aYTI7jz0B2VUikDtBkdR/IhBhPbR9uKbfcCL0PNTIIVtdMekDcFWV5NI m05d40See0UrY0VcbHo0B3+ItVQJ1VRc1Hr6yGeqhPI6f4KnEmyejIwFf+IfpL8Gml H3DuYDsxZ3Y0gy1WmwChq9tXUyJBfAmibJLoIVY8munkTuoVV+IpnMJmegaOw+Bm9V kAhPIqQ4j1w1bASt8es6XM7omVPSljOnDM2OT6p+uHeNA0FqeoVPZdHJ6Bng0W+qc5 zbn41+l3sc5zA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0b1wn8zhcy; Fri, 27 Jan 2023 08:58:07 -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 29/34] selftests: x86: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:50 -0500 Message-Id: <20230127135755.79929-30-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?1756184595625499367?= X-GMAIL-MSGID: =?utf-8?q?1756184595625499367?= 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/x86/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile index 0388c4d60af0..ca9374b56ead 100644 --- a/tools/testing/selftests/x86/Makefile +++ b/tools/testing/selftests/x86/Makefile @@ -34,7 +34,7 @@ BINARIES_64 := $(TARGETS_C_64BIT_ALL:%=%_64) BINARIES_32 := $(patsubst %,$(OUTPUT)/%,$(BINARIES_32)) BINARIES_64 := $(patsubst %,$(OUTPUT)/%,$(BINARIES_64)) -CFLAGS := -O2 -g -std=gnu99 -pthread -Wall +CFLAGS := -O2 -g -std=gnu99 -pthread -Wall $(KHDR_INCLUDES) # call32_from_64 in thunks.S uses absolute addresses. ifeq ($(CAN_BUILD_WITH_NOPIE),1)