Message ID | 20230127135755.79929-2-mathieu.desnoyers@efficios.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846374wrn; Fri, 27 Jan 2023 06:00:02 -0800 (PST) X-Google-Smtp-Source: AK7set8pv02cTIGrRJS3j2ewF9dJjocTZoXdvWKm0dgjE5hdOIJCvF65dnIgEReVsgGsFXzWf7tW X-Received: by 2002:a05:6402:24a0:b0:4a0:8f4e:52dd with SMTP id q32-20020a05640224a000b004a08f4e52ddmr14538302eda.17.1674828002619; Fri, 27 Jan 2023 06:00:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828002; cv=none; d=google.com; s=arc-20160816; b=lEtIetHsxX48FqQa9m1HYKuBzExnJKO+hzrmIbZBUMO57VW4Jiz6549yHBlbc6vgy/ /Ovipj21voYlc6Srf1ARoK7l3rKWBZAWWTSoNxmGxYqlXbWZHEMsfZZsclVnyXFHjuS2 LytiLb7ZFOf7hAJke6V2kO+QGkA4rFcY0uw8jYGDA/lvw5l3OPZOBTSlo6fhf4brese/ /YiFKnRGDpENmxgEecffdsdYUFotXHD6cqx1j2Vb1APFdgWHQ0vZzlZxGCDZ8jIqVMXI crpJWNxSQc6UeXX6BsYRaJAEagrYexOnySEb4ybH4+MQLkGz1geoZlH4jLXxBjDYlADY Z4jA== 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=jGzZJjnXMomlCbiU0bAVCXvdAAZ3LWjO0UiLnru54ak=; b=J+weIFh9D9P7MQZJQrLeK8w7h7/RiP78ZQPWD3mTwO4JxSWMbmbgrvPAKpjvn8CZzI 83z4UIOipwYE/BK/j+qvASgyKb40eBmQbWXfAUL9AoxlkgKm3RhcBEUtwfcph9J55vHj qfxvdWtrTIJWrTesYe9R8czbICJsRHHWTFm3+Eivw/6kA/teToBmXprGu+eEbZE5deve gMe2CLF6On8OG8MnRsiYELAOOlxQ6gwZ2nGc78kehycf83RsukA35RXBVwc/deCW/vbd 1fUI9srhWKhe/uY3TXLr95iYeaK4G3n2EXFALdq5N3TUvpnAEoPgAl0X1B0LvmEZUkh2 MYTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=OXTtFhpP; 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 f8-20020a50d548000000b0049e05407b8esi5921198edj.136.2023.01.27.05.59.35; Fri, 27 Jan 2023 06:00:02 -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=OXTtFhpP; 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 S233810AbjA0N6W (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Fri, 27 Jan 2023 08:58:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233365AbjA0N6H (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 27 Jan 2023 08:58:07 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6437F3C2B; Fri, 27 Jan 2023 05:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827881; bh=/r5DrLF/JnnrCyCX+xyiU+do3tg3tLC+bmepKRA47SI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OXTtFhpPzdgYG0kWDxPuCWBOGn63bUivm1Qkx8RL2J1DKR6JezXMTe57Xb0u1Woyk duXtqsizw3Sk+rzlOfaVTFsKD3vF8YOfiIh5a8l32QiISEwkxtcIgeWz8ChyJA58rg b5IHx+VJzziALJI9w5RORpbA/Mi+klhKLRtvdJvcqf6FYAlcp73xAoXhSVaZ3Erulb ZrSOmGP5eUSBvYtKoPDLmzzUnaa3t2Bmu2VCoEcPWjzUVrtzw2NZvRT9dlTLunqkCd kT2TyJSr7HvOYbf4oK9fB7JMruYfgk3gOdxaC6PiwdeAwoeaukjdYi2XDo9HnCF5rC SqJcADq/6/Icg== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0T2SkNzhT6; Fri, 27 Jan 2023 08:58:01 -0500 (EST) From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> To: Shuah Khan <shuah@kernel.org>, linux-kselftest@vger.kernel.org, Ingo Molnar <mingo@redhat.com> Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, stable@vger.kernel.org Subject: [PATCH 01/34] selftests: arm64: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:22 -0500 Message-Id: <20230127135755.79929-2-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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RDNS_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184447563572605?= X-GMAIL-MSGID: =?utf-8?q?1756184447563572605?= |
Series |
selftests: Fix incorrect kernel headers search path
|
|
Commit Message
Mathieu Desnoyers
Jan. 27, 2023, 1:57 p.m. UTC
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 <mathieu.desnoyers@efficios.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Cc: Ingo Molnar <mingo@redhat.com>
Cc: <stable@vger.kernel.org> [5.18+]
---
tools/testing/selftests/arm64/fp/Makefile | 2 +-
tools/testing/selftests/arm64/tags/Makefile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Comments
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 <mathieu.desnoyers@efficios.com> > Cc: Shuah Khan <shuah@kernel.org> > Cc: linux-kselftest@vger.kernel.org > Cc: Ingo Molnar <mingo@redhat.com> > Cc: <stable@vger.kernel.org> [5.18+] > --- > tools/testing/selftests/arm64/fp/Makefile | 2 +- > tools/testing/selftests/arm64/tags/Makefile | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > Adding arm maintainers. Would you me to take this patch through kselftest tree? If you decide to take this through yours: Acked-by: Shuah Khan <skhan@linuxfoundation.org> thanks, -- Shuah
Hi Shuah, On Mon, Jan 30, 2023 at 09:09:42AM -0700, Shuah Khan wrote: > 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 <mathieu.desnoyers@efficios.com> > > Cc: Shuah Khan <shuah@kernel.org> > > Cc: linux-kselftest@vger.kernel.org > > Cc: Ingo Molnar <mingo@redhat.com> > > Cc: <stable@vger.kernel.org> [5.18+] > > --- > > tools/testing/selftests/arm64/fp/Makefile | 2 +- > > tools/testing/selftests/arm64/tags/Makefile | 2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > Adding arm maintainers. > > Would you me to take this patch through kselftest tree? If you > decide to take this through yours: Are you taking the whole series? If yes: Acked-by: Catalin Marinas <catalin.marinas@arm.com> (otherwise I can pick this up)
On 1/30/23 10:14, Catalin Marinas wrote: > Hi Shuah, > > On Mon, Jan 30, 2023 at 09:09:42AM -0700, Shuah Khan wrote: >> 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 <mathieu.desnoyers@efficios.com> >>> Cc: Shuah Khan <shuah@kernel.org> >>> Cc: linux-kselftest@vger.kernel.org >>> Cc: Ingo Molnar <mingo@redhat.com> >>> Cc: <stable@vger.kernel.org> [5.18+] >>> --- >>> tools/testing/selftests/arm64/fp/Makefile | 2 +- >>> tools/testing/selftests/arm64/tags/Makefile | 2 +- >>> 2 files changed, 2 insertions(+), 2 deletions(-) >>> >> >> Adding arm maintainers. >> >> Would you me to take this patch through kselftest tree? If you >> decide to take this through yours: > > Are you taking the whole series? If yes: > > Acked-by: Catalin Marinas <catalin.marinas@arm.com> > > (otherwise I can pick this up) > I am taking several patches in the series with an exception when maintainers want to take them through theirs. I will apply to mine and take this through. thanks, -- Shuah
diff --git a/tools/testing/selftests/arm64/fp/Makefile b/tools/testing/selftests/arm64/fp/Makefile index 36db61358ed5..932ec8792316 100644 --- a/tools/testing/selftests/arm64/fp/Makefile +++ b/tools/testing/selftests/arm64/fp/Makefile @@ -3,7 +3,7 @@ # A proper top_srcdir is needed by KSFT(lib.mk) top_srcdir = $(realpath ../../../../../) -CFLAGS += -I$(top_srcdir)/usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := fp-stress \ sve-ptrace sve-probe-vls \ diff --git a/tools/testing/selftests/arm64/tags/Makefile b/tools/testing/selftests/arm64/tags/Makefile index 41cb75070511..6d29cfde43a2 100644 --- a/tools/testing/selftests/arm64/tags/Makefile +++ b/tools/testing/selftests/arm64/tags/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := tags_test TEST_PROGS := run_tags_test.sh