From patchwork Fri Jan 27 13:57:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49433 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848914wrn; Fri, 27 Jan 2023 06:03:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXs/tGKi+8vGvQju7LjHKY+5oxFk1jBwV2YZU4YHNl+hbTKGmDdTMqAxcLRziUqTXGbeGZU3 X-Received: by 2002:a05:6a20:7f8f:b0:b9:5fc6:9e4b with SMTP id d15-20020a056a207f8f00b000b95fc69e4bmr41749968pzj.62.1674828206590; Fri, 27 Jan 2023 06:03:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828206; cv=none; d=google.com; s=arc-20160816; b=RifkjNqk7sqv8BL4QdB+aqFK0xxw1nO2sYQPotSKHDsQkyyrbRRhIBOf9QpcesO7Gj SdgQ0C5ykTOy2GVsvrWOMVAWUF6SszlVi2mD/Dv5gGXfjcPIufUL+B9jeTHLSG1yEQ8/ cftW0FoJlskXGFhN57UuuXsnMauagKMS1lJDHyrofuZOl5dxQc8v/VlaAadljSNqH5CQ sIg+N+KZglAhY6IfGyCCbkxR64WbF4XcmW9MlAfMMoekPPU6ZZ8doukLiReQX/bBZuRk jP4NORoi6sgp4LdIRVHM1Iv7/mQZZvoxG1VPXm9pYKHUgpeTQGAnTmT2RIwh3HUATh5/ qS5g== 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=+hDrRkfueF/boyIFIwtY58osrvN4CbCtlDKoK2940CM=; b=XrUg1Oc7+X6qLsNtTsip4SI+FREjKbyU7LNptgoWyKjwJK3nNzeWVKhhGUKrMK6yjG AQvmTH1X/CZnbB3H+JnFEJTB4iPY1wISAfqSCx0e9at2+d5yj2hlmYzSX2KCd4LB4Akp bntnCK0rXR4Lc/bLfjc8OwDHKIY2HC95sbJZzex+c9gXzXK3biXkIm9Wcuuu0baTGanC +TNFCSoQH0R5KzPu3x0JAnR48ERq/pO0mCPaYhyelzwxqVAc+eVK+Ie4fwJncQSK8SXg HCCbSs1gKKA2QgHkEqj+UDkSfJHUpLzcaMduUE0ovqUexzIakGoU3lWTkJ6KzlpRgogR R7yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=sZLtmVJg; 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 j184-20020a638bc1000000b004de069353f3si4465270pge.108.2023.01.27.06.03.03; Fri, 27 Jan 2023 06:03:26 -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=sZLtmVJg; 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 S234312AbjA0N7J (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbjA0N6M (ORCPT ); Fri, 27 Jan 2023 08:58:12 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4B4D222CE; Fri, 27 Jan 2023 05:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1674827885; bh=37ZWsmROVaxpktT5dGfnB6ZjxRF1K5A4VH/tq4Quz1w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sZLtmVJgOe7J/m5Vr7iZgv6UA1b0if24ikXZVlpvj/BcZPlzGB/wRwI9GquHaoExU k62G10tkqSk5LgCHzCaYw3xbUfxfdsn0yRSzuUgtSUQ9Snanw5F2kHnQxp3trq/5tI 08nDEdixoXNqKXEP0pdT2aYfUKRtwMNIkzLpHvSqnmYxCzEXWvUQXEGpaUYOHGnbW7 e3Zj0ja6quxZvhJhJGVUIpbaJc7u3AJh+bTIZZ+OeOoMebx3Z9QHcw8v6oR2Qb5SiD 16pyvS17gpQ/6H2RRCPa9NbLZmEX55bnvWwtHkvCxMfV78UBD0UdnoXndzIDfaWusA 9Eelq7WycBTWQ== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Y2tsXzhrj; Fri, 27 Jan 2023 08:58:05 -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 20/34] selftests: pidfd: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:41 -0500 Message-Id: <20230127135755.79929-21-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?1756184661524751599?= X-GMAIL-MSGID: =?utf-8?q?1756184661524751599?= 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/pidfd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/pidfd/Makefile b/tools/testing/selftests/pidfd/Makefile index 778b6cdc8aed..d731e3e76d5b 100644 --- a/tools/testing/selftests/pidfd/Makefile +++ b/tools/testing/selftests/pidfd/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -g -I../../../../usr/include/ -pthread -Wall +CFLAGS += -g $(KHDR_INCLUDES) -pthread -Wall TEST_GEN_PROGS := pidfd_test pidfd_fdinfo_test pidfd_open_test \ pidfd_poll_test pidfd_wait pidfd_getfd_test pidfd_setns_test