Message ID | 20230127135755.79929-25-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 s9csp847801wrn; Fri, 27 Jan 2023 06:01:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXslprDZT7o1EgJ5w1kVBAkoZnc5OfTJUL5B12VKG2NnpMNRCRdZU7efR+mokvWSVcLG3GDJ X-Received: by 2002:a17:906:368f:b0:877:593a:58d0 with SMTP id a15-20020a170906368f00b00877593a58d0mr36026989ejc.29.1674828117740; Fri, 27 Jan 2023 06:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828117; cv=none; d=google.com; s=arc-20160816; b=kGFDhl9s1ODoaTB/6MQdtJwMXSzTFQ0DIFHPXJQ9L8Ots8J0ZiFQ/lPcLd1Rm3iGbU cfuaDFilRq7/FCzCpRtt0Pp2tSNP6LsASNrYgkjrAc5nR7XCHD+qkGrjjisxkzn4hdSX Yldmot0vO9/2+Cv4Km90lWbuzyQdZ6YhvrQyQy6pds9X1r6c3hn4/wd5o6hOU9oqdUDz FbSwLtYiI8STc24fkaSAfMHwSZCXUzNUCFl3U5cqCqeADbmzFhByStSVL125/FFUKipk fIUNsKv5KFV0NZtGud74YNJrqeCB0bwMhgsZLpq1kXnOBZgfkRG/agJ4S5cme2/hu4YK JPqg== 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=aEnyfBIlH6VmSKlO81EwbDvNkXl/MYZJYkQTh142uBo=; b=KxdXoGcKoJ16IP5cDYnU1/CKC60rdeVsUXs2mUCY9zbPHeq6GeohIJ7MtuOMP6eGlN OAPbdFmc1DnFCYRvG1BW989JYrILUqBKkCNCDVZD1lY/eDsFYwMVwxrFzVakF7LyTnMr nCzsl/fz/1xrXfOmoXQ+FXb/1fM77xivRdLFYEiUAF6ra0y8t8Rnn+KJLryTneQg3VZt ULcqQ/1ypQ3/ANjP0lPj0k9IAKGjOULM1BQ7tW3rlAZhZRhV6j/QWMpJ5GhMDG7JRh2E ESMqevsCUdLla2gpcyz5XH1NX6P1usx3jAG8sBNu4/+lluRFFkJIZsAFun709b11uKZe oGZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=r3iPnQ1n; 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 fh23-20020a1709073a9700b00871fccac238si3881272ejc.785.2023.01.27.06.01.27; Fri, 27 Jan 2023 06:01:57 -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=r3iPnQ1n; 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 S234820AbjA0N7k (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Fri, 27 Jan 2023 08:59:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233869AbjA0N61 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); 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 A6571F744; Fri, 27 Jan 2023 05:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827886; bh=uDI5yZ5AUjaWUAD8uVr62Zzy8zYKq8tYLohNK4Kd8Ig=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r3iPnQ1ntG+vL8a5vpeFz28Y90DHd+LuJppJEtd3xrerEso1/RWOm6X2ChuZi1tDe oZ2QTVHk5sbjG8bmhzSjko7Br71nWcF86Tox9Y4Vyw5tEoBa2/9pqrC1pqrG4sZ97r c8jox/iYvN5yIq5TPfAss+wrjx/i8XBSlqcFL3OsDRgNby4gyUeh0nxtpVeUTWu7ou hY6rl/tUuH9U2IQ7r53oUTEe0AKAoa7gW3lQKwB99bYgM5Ggt6eLfVHdMa67H5p8by +lWK5eS91J2GqTFUgJDkvispH88QTrlrBmmkmvl4o8mRbuWTC7pEKyo8GjRCMqpZXr dJhRR3+n4rdew== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Z1g8BzhT8; Fri, 27 Jan 2023 08:58:06 -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 24/34] selftests: sched: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:45 -0500 Message-Id: <20230127135755.79929-25-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=-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: <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?1756184568451290927?= X-GMAIL-MSGID: =?utf-8?q?1756184568451290927?= |
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/sched/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/sched/Makefile b/tools/testing/selftests/sched/Makefile index 10c72f14fea9..099ee9213557 100644 --- a/tools/testing/selftests/sched/Makefile +++ b/tools/testing/selftests/sched/Makefile @@ -4,7 +4,7 @@ ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),) CLANG_FLAGS += -no-integrated-as endif -CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -Wl,-rpath=./ \ +CFLAGS += -O2 -Wall -g -I./ $(KHDR_INCLUDES) -Wl,-rpath=./ \ $(CLANG_FLAGS) LDLIBS += -lpthread