Message ID | 20230127135755.79929-19-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 s9csp848712wrn; Fri, 27 Jan 2023 06:03:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXs/Yt10UUn5dKQo7fYmRMy6JNVkUOhRRMkBp0ZQlSR/7X66uziD5ry8pWL7yzhouIhL+Sh4 X-Received: by 2002:a17:906:e212:b0:872:3dbf:ce66 with SMTP id gf18-20020a170906e21200b008723dbfce66mr40868442ejb.39.1674828191982; Fri, 27 Jan 2023 06:03:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828191; cv=none; d=google.com; s=arc-20160816; b=K58ECJzaDVN2X62K4Z80v6fPWraKmqsf5EZH0dM9gS7G9NooWShYpDHXxxtaqpLMcm NVNvmQHJ/eUfwBnqNsWhGTJBDTVFsWmUwkl5zlxbbgUCVZNv+4Zk7V+B6eS29dxYsMxL PdoZd69d2zR6zsZRPJPa/6eFpYXTkD+Dto37azO52UUl2wGjjYwn+U4vcXqjJ+PadMNc iMBl//k4He8EFpe1C2BECbmYGZpUEDIMgASJznjbAa9h3QxHmZod90RY/EMJuur8ioCS e5OaALLZZuypvKbruJ5DgPRKmnWCjqDyWEYvIBnhuMdAqTgkiUihhuRAQGPWFor5pHWl 9Rmw== 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=aEs4AGJ2z0ZbWZDr8glAKBdJwJcrgDgQwJY72xgrwR8=; b=VG6I6dj3UE5RR29KmtWAECEsma1lsbfHX0ds+zWJOQD20h358rTjtku6/TfJQUDXXI 1gwhwEQRtRIEOpT8WCXBzbbN53d+HtMdQvwz8kN3BBzq28oWv4JWFeT6W+R5+tf02qcw oPvv6NjVmlY9QMqSSBPWrqlUeBTXJIg+DkhM6Jt1bZiEPJ0/IOPl2J5+KhngnYiHdjo6 FktdKo8D7VpwQzXfEjdBopX/D3qcgCxNWbBjKJu/V/wod0ZhDcMaszsvPfeocmf8cCVA WcP3PuyJB2BB3/qp1tjFJ1DjEADlH0S8aoc6CdqaQnCXUQ/k40MNWKb7OY11sLnfxEFG 1A1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=Du2tcx85; 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 v9-20020a17090610c900b0084cc41e20e2si4923732ejv.624.2023.01.27.06.02.34; Fri, 27 Jan 2023 06:03:11 -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=Du2tcx85; 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 S232209AbjA0N7B (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Fri, 27 Jan 2023 08:59:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233526AbjA0N6L (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 27 Jan 2023 08:58:11 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 688FE21A32; 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=3GbxuVCI7xPWc+Ss2FtvtmM+sZMkYwBabD+f5z9dPoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Du2tcx85qTfnDknrb3uuH4hb7lRKYNkHwhdZvSM/4vtUT9PoFp6+Mg5Ts+Q82vB9h yKJhOtrmSLnUDcSK7kAXkScMeRAiFDU9krBHsq0861F50gFFvUa9+Y098x4JCbsgq/ sdccnFfg+SOWVq0LLFQFXIcS6Pr+7YNrtFAACmpRiePzTslLuTRPfrMxjmJLoLREoA t+Jq3cpT8H7KFvDKd1TAM/MpDACGwc6WmFn7ZKvNTMeu8vsbDIhDj2gfhZORRUKvI6 28LYLE/BM98Z8d3OIpL9DqWYFNTcQsYldyA7MP3hN1+m9mCewlF26hv6QDK6BTwJSW AY5SmuFByTeow== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0X6zrgzhrh; Fri, 27 Jan 2023 08:58:04 -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 18/34] selftests: perf_events: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:39 -0500 Message-Id: <20230127135755.79929-19-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?1756184646040062625?= X-GMAIL-MSGID: =?utf-8?q?1756184646040062625?= |
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/perf_events/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/perf_events/Makefile b/tools/testing/selftests/perf_events/Makefile index fcafa5f0d34c..db93c4ff081a 100644 --- a/tools/testing/selftests/perf_events/Makefile +++ b/tools/testing/selftests/perf_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) LDFLAGS += -lpthread TEST_GEN_PROGS := sigtrap_threads remove_on_exec