From patchwork Fri Jan 27 13:57:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49432 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp848890wrn; Fri, 27 Jan 2023 06:03:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXtempikYk9mPatjE08Sv4sMueR59c7wI9hriVvxZfQ7L3rItWFQYigXs9tBeClB3V52EZZP X-Received: by 2002:a17:902:bc86:b0:194:9c6f:64a8 with SMTP id bb6-20020a170902bc8600b001949c6f64a8mr36795354plb.38.1674828203917; Fri, 27 Jan 2023 06:03:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828203; cv=none; d=google.com; s=arc-20160816; b=GH6VOxDoYuLh9H1YL4PPmUAEmMTJSR3cYRTeKFPibpHbMEPRgyyIf+BJW5qmkTAVXv h6DDv8Rw8EvebsPSp8wQqqwn2Lh63GSJqL+Iu9IprXqyTHrrLBWCrDxiTLwEiXs/S82N 0paeUOstaKgyKeF4IfpTzO2CrGTcFq8bf18Hfzbcx3qnXNy2ujy/H/q3RIuQ6QTaXWn+ Z+ma2BW+2qCEGOzw6WbaW2kJqZslBfuXTaUePFZti1vi9vsg825R8Vd5o8E5MlcmOwEk O+pdVNZdfxBX2rxHQoTUS1GWwUpDQaquY13U/Hukv9LYEOIG728Wn3JF0caCeUaxFgWL ibXg== 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=FScd8cA49qs6v4ytxNZlPteCRKas6qu0ATUq8suOqnU=; b=h/aei6nqKvuVK+aaeGIrKpduNavpFsZ0WL7/qKBR7nSjmyU7lYmN/jhG7w4ACp7UCY v/BHYLjMBVeI3iEzA2UjDuyIwqy626xxuPo8LQ0Yn/IBzjyPm49O0vPGkW0/qUmBWdvO sxqWQMNFqP5hNsU8SfokgIAJEnooDtsUCPU2WsQ5LzdABbxA1iJaiv/BK69BKU5c1Qhy VqagY/IqN+NRkPt9aXok6m7ixGc3wOfap8zAUJ6Pb1g+hs3FoJW6AA5Th0LOnl1nUrma 4OWqPbIUDN8RF4TI+Vv72HJMUo58oS1d68eWhNB3zGETdw2JqNiqsLeIlMamwtxm00Ce Rg9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=YPocWLFp; 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 s11-20020a63b40b000000b004e0d688fb81si1055840pgf.837.2023.01.27.06.03.01; Fri, 27 Jan 2023 06:03:23 -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=YPocWLFp; 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 S234642AbjA0N7T (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233841AbjA0N61 (ORCPT ); Fri, 27 Jan 2023 08:58:27 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5DA14C12; 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=HcMLUBBv5kU4oCgrunC1HBRLqGB7X6SZPTbL0RLGdhg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YPocWLFppRhrVBUSadXnjW2PbcveTEJ7ayd6zhoYYAyKgqxdHmbNIlGoyuzrYbc6h 769NEIIXvDTIIleuCI4lBCSYvHpx4gf4mriFlQtEB25c0x6RL0gYOeUgyOnFeaOxsR G/MytwvSyx2y8TRsbeXW38EUz806W1n8lC0w6OhbLhoc62oeiU/tDqrNohyC0bBoGn aP8I+nPsisY66F0LWrx7A7jI+FDT8azjGDV4g1SfxSqBEqf0h666RybVtN+nkfvs94 9Bi8VMZ8PLUM9qgsXpPMFo45hcbGUfZoAH+4HKIzQW4AUzIEjQN3MEG9BE/9Po6XSq He0jMM5YKQVaQ== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Z64fszhTB; Fri, 27 Jan 2023 08:58:06 -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 27/34] selftests: user_events: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:48 -0500 Message-Id: <20230127135755.79929-28-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=-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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184658649448101?= X-GMAIL-MSGID: =?utf-8?q?1756184658649448101?= 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/user_events/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/user_events/Makefile b/tools/testing/selftests/user_events/Makefile index c765d8635d9a..87d54c640068 100644 --- a/tools/testing/selftests/user_events/Makefile +++ b/tools/testing/selftests/user_events/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -Wl,-no-as-needed -Wall -I../../../../usr/include +CFLAGS += -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) LDLIBS += -lrt -lpthread -lm TEST_GEN_PROGS = ftrace_test dyn_test perf_test