Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3769013rwb; Mon, 16 Jan 2023 12:41:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXsUxMIwI8eJnCsyB3GRfLMAXcNyNPcPlWBkSyDDBGFGUCldoBq5GHuZpHww7EXy7JW6dtf1 X-Received: by 2002:a17:902:a70f:b0:192:751d:b2e4 with SMTP id w15-20020a170902a70f00b00192751db2e4mr897745plq.48.1673901686219; Mon, 16 Jan 2023 12:41:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673901686; cv=none; d=google.com; s=arc-20160816; b=zu1eNhqyfiDc/BVNGsHUYclIb982/hBiPJoA8Kn4oeCcp8kCLt20sunzR5QVijX1jb k6DOxtOUaTUZxtz2a97EElxV5Rv2pMXZAz0a6G8qH5m7ud0xlfsINqo5I/QDxWUUb4YA rxDRpkahzzAnvGG+e4JfJzlv6hmb8IKyfXZQoQ84rZiDcbRwRQgBi1ILMRpJBp8ofFfP Iwk+yoJvNd4COdgHhfVLmKizVAQGfyW1sIYlYFAStV89o39PMzV7cvh+99xL7jlEq6/m PGp03a64pOEr+AITBqbm/NfoYlGsYnrQaCFsZtPozl3QCVG21KRc9Zn0L+JihgpDbUsw BQjw== 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=adKu6Qw98MUto4Uu7RVDIFoyQtGxEDdPR/nfNWRZXek=; b=0awtcFikP8o8loOujqj4D7IazTjl4MwLGUH/580sv+zx2ZxUHgfCe7F1MyQrGeSUPW 0xX706F8HC3XJXBgnvpFOfFa/303Y0oduQ9cdsYV5Awhdy3Fn3KkmlsqrJPCqpKy+eZ6 +FPtzPKMBRVaVQr2T+Zn0Fwd9uNZPIfA6zd9Fj6fZN0iOJOGMhOnFzBkHWVzBvh2bJoS vbAh/zlsZ2njQP6alHxojJChubVLiQwi+oRBeSTsDOr3YunmHhz/GLS9W/XdE+c9GURG HavWySCwjUJwcDszdBZAz82RWttc+hwzWzy9SjqAz2CdN+rofWS/hnfuG4mRCDd958Rn BQkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=TsawzhFc; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n20-20020a170902d0d400b0019462aa0905si12091199pln.474.2023.01.16.12.41.19; Mon, 16 Jan 2023 12:41: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=TsawzhFc; 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 S232797AbjAPUjU (ORCPT + 50 others); Mon, 16 Jan 2023 15:39:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231390AbjAPUjQ (ORCPT ); Mon, 16 Jan 2023 15:39:16 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE3D42A997; Mon, 16 Jan 2023 12:39:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1673901555; bh=PqBFqTTAgHMc20hNw6gIlD2yW1hdhrjFLL4zFiV9dtU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TsawzhFc7E4C3Id3I1e4vNeTj9hGQFA/giGhK+cx+4Zqbsyxeh4m6Zov8Wmbp7F0k iYavcRPJzkLQjNvGWk2RJ36B0pkvCSttjXySxz33rFSQT6l0DxRbunsGIIGcOFmrKR ut2ftrc5MB+T4MssqLivmrlDVrjuioHJvrHL/uD3vZWKgSV7+QRs+H25++nNfLrEx9 XkcSWiI/Dvt6oCJTGIuVriVPZnNkQs9ISl7d3U+/61j06YjZooxHDdLFZvQ/ccIS4W bWZKrl2vUR007EIxD2JNPFRyIIagDKDlqRjTujdWzuGMsorimlv5BxI+3/IJWXWOKx SrXg+c+XQO4/g== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4NwkQV5wPWzgjt; Mon, 16 Jan 2023 15:39:14 -0500 (EST) From: Mathieu Desnoyers To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , "Paul E . McKenney" , Boqun Feng , "H . Peter Anvin" , Paul Turner , linux-api@vger.kernel.org, Christian Brauner , Florian Weimer , David.Laight@ACULAB.COM, carlos@redhat.com, Peter Oskolkov , Alexander Mikhalitsyn , Chris Kennelly , Mathieu Desnoyers Subject: [RFC PATCH tip 2/2] sched/membarrier selftests: Fix: use KHDR_INCLUDES for kernel headers Date: Mon, 16 Jan 2023 15:39:04 -0500 Message-Id: <20230116203904.214010-2-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230116203904.214010-1-mathieu.desnoyers@efficios.com> References: <20230116203904.214010-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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- tools/testing/selftests/membarrier/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/membarrier/Makefile b/tools/testing/selftests/membarrier/Makefile index 34d1c81a2324..fc840e06ff56 100644 --- a/tools/testing/selftests/membarrier/Makefile +++ b/tools/testing/selftests/membarrier/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -g -I../../../../usr/include/ +CFLAGS += -g $(KHDR_INCLUDES) LDLIBS += -lpthread TEST_GEN_PROGS := membarrier_test_single_thread \ -- 2.25.1