From patchwork Fri Jan 27 13:57:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49409 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846530wrn; Fri, 27 Jan 2023 06:00:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXtMH6/IcN4/kF9dG3O1Le6preIQPmxKqNHGH9FQocEdauAHKGYU9WKPq4kZ5g3hhqun4ac6 X-Received: by 2002:a17:907:1710:b0:85d:dd20:60a4 with SMTP id le16-20020a170907171000b0085ddd2060a4mr42776316ejc.40.1674828015469; Fri, 27 Jan 2023 06:00:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828015; cv=none; d=google.com; s=arc-20160816; b=OWr0PHR1u4Bpzp44w3Kc1GdumyQum/1Bbpo8/ys3Ob1jY0BqtEi+lwZTjzXy4dyFPG GW34Y0+fz9Rwn12DMxp8GDgKWY0Ld5hxWuYY85zrH0YqaGvqAq0+OBu5CSAQbhn9P485 AT/+z5+8hh9RWsbkJ5/DeRJKD8oo6rhwQB+EjtIEzjeA9ASHEOmYkAP/2NM8Ct9tkyO9 j13wNKJzrNCJD8eJKiOcxpRukiq5AW1q03Ls1rqwesH5JNETf3jTd42q3v6dye/UNnWT nA/JjaM+1Az/Sy8XYO1mdGzLB8kbfAkRB2g24gJrqK+4h23j+YTPw/DI9hEA3L2twEX6 i0zQ== 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=/UOE2OZ/dc6iRwvuZi6q23Ix0MmiN+E+MqJgEN/17vU=; b=XknY2bUz5wygUhyQ9P++bgg72r4JHptIPL/nx1i0md7qGZumG2+bbDRaIl8kkEixBP kq4+lNymL3sIiGg99bvf/FTMMut4KApPCEhR+jaPonzBEkahua6k65mTPjMytYtR4OAh zTk5gh31m7qrayobi/pW5G2bW4S3oB7ZdaNB0Cm7M52vyWl1/uVZlWxBhkk1FMYVKbFV yFLhxCDIpXyUNiKeNv+26TDWBuyqQGan3G60cY+14gENP8Yo4Bi4pjtY6rfjMYFTpddU b4XfftC+OyjFs9zWSApE+UqM1Ak4Q/8nCbqTHMPWJHnOiRvF1zKsa2VzIqm3P0xMWCq4 UBOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=nLsz4Kzv; 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 m3-20020a50ef03000000b004a091cb1537si5602893eds.450.2023.01.27.05.59.48; Fri, 27 Jan 2023 06:00:15 -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=nLsz4Kzv; 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 S234058AbjA0N6a (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233622AbjA0N6J (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 7C7FACDE7; 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=1674827882; bh=XtGhJWHrIaWJmV8UD8TraYwxhka01PtAUbXZqWumiTg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nLsz4KzvjEDDAEPZ5TbIQgq61r+oyYiBsMCemJfhx/FMU9kMTNU1Sqkg1hsqczaBY WI8a6n42m+9s0ytw0j7whkl3cYKR0cNLLNPJJmpqOQpeTrFpIQ3aggsHfnrW4qQB3v 8ckIU3tIBVB4mVdbyV3iH+KKVSrG19aC2h0B/cjZTsBLBBE4YIwhmUaa0fB3NctXuM mlPnxH1ef8gIyXjZRLSt5VtPNKWnrpvIWdCl22EuRI4oV2REjSPNMO8SSzDyWfZ45b AIcAatPvJLinPdUrTJFsSZCMjwCkIcoiaiSEgixM8m3enSXVOLRc06qSnLQBxEIXCz 93ymKr1Ds8KXA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0V5wCxzhxP; Fri, 27 Jan 2023 08:58:02 -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 08/34] selftests: filesystems: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:29 -0500 Message-Id: <20230127135755.79929-9-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?1756184460932456943?= X-GMAIL-MSGID: =?utf-8?q?1756184460932456943?= 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/filesystems/Makefile | 2 +- tools/testing/selftests/filesystems/binderfs/Makefile | 2 +- tools/testing/selftests/filesystems/epoll/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/filesystems/Makefile b/tools/testing/selftests/filesystems/Makefile index 129880fb42d3..c647fd6a0446 100644 --- a/tools/testing/selftests/filesystems/Makefile +++ b/tools/testing/selftests/filesystems/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := devpts_pts TEST_GEN_PROGS_EXTENDED := dnotify_test diff --git a/tools/testing/selftests/filesystems/binderfs/Makefile b/tools/testing/selftests/filesystems/binderfs/Makefile index 8af25ae96049..c2f7cef919c0 100644 --- a/tools/testing/selftests/filesystems/binderfs/Makefile +++ b/tools/testing/selftests/filesystems/binderfs/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../../usr/include/ -pthread +CFLAGS += $(KHDR_INCLUDES) -pthread TEST_GEN_PROGS := binderfs_test binderfs_test: binderfs_test.c ../../kselftest.h ../../kselftest_harness.h diff --git a/tools/testing/selftests/filesystems/epoll/Makefile b/tools/testing/selftests/filesystems/epoll/Makefile index 78ae4aaf7141..0788a7dc8004 100644 --- a/tools/testing/selftests/filesystems/epoll/Makefile +++ b/tools/testing/selftests/filesystems/epoll/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -I../../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) LDLIBS += -lpthread TEST_GEN_PROGS := epoll_wakeup_test