From patchwork Fri Jan 27 13:57:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49411 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846843wrn; Fri, 27 Jan 2023 06:00:40 -0800 (PST) X-Google-Smtp-Source: AK7set8J+qXFYUM59n4WdgFgqjXfHU6+qPPPePEvhrjIM9AlutDoI7CMbdZXLQeJlU7jk6DkzsgP X-Received: by 2002:a17:907:9491:b0:878:5524:e932 with SMTP id dm17-20020a170907949100b008785524e932mr10032534ejc.5.1674828039918; Fri, 27 Jan 2023 06:00:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828039; cv=none; d=google.com; s=arc-20160816; b=KKRb2/g7xwk9Oq8ueA/qo4tpp6dvhYPanU0bJT316CawnOa0u2kFz+Sl7RWm7VfLM3 HR0hQ/9hbeVCs6WAwznGbo9idw41YYpTmh5oqBvvozEVTrJrzyqXMUMocfNYNDlBZ/qA /NEWDU8HLKVBEPdYounNQ8St0S0JTnNvLw8br6wxTYv2MfX6LxG20tm72Hq++895/VPA bgVF3Xk1IqgWMW4rlFlnWE51hyWAmwvM9aoW9C7m/27epUTpUMIzCEoSFEJ+SoY7vTV0 KtCdf2V+ZgsbaWsBAbIu1rRdGqAIKhuZ9J/hJ3+YCMDVMbesN88shT6u7HgJ820uSZK8 XYQA== 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=j3KQ6R0RPfAdU4qmwLW9KAMgJapfNby6Un772MUkyDE=; b=Ig4qZ3r1nHXDkDBXD11fkbPuXjZhiuOQPVA+qbOyZqy5ivScED248OaMnqoGl5PbBZ fpGwuou3jiMGbOFWN+Y4KuLEp/9xkC62ykKu3MIzHjs7DTMEv23BgC3NibyOJxgUlys1 zhHCIkOimMmGeIz6prEP3iokO8DbEgAJWz6jLJnTBBGzXzHReOqjfu75UyHzF1ceOU7b yAGqpfEfCpjgIIDWLmhtUSWfo2rtlgTpX8v+GgkjsyucEChy4J2TGOgbhIakj+yys5RY +HB1l+UzMmefTzkGC/bjSzyfzhs3c48qozwgg2tng9F1V9ooJVS9KXwMs4UkT8+8jIpv Blqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=ihvUcKSq; 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 u16-20020a170906109000b0087881d61e2csi4203524eju.452.2023.01.27.06.00.09; Fri, 27 Jan 2023 06:00:39 -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=ihvUcKSq; 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 S233704AbjA0N6d (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233659AbjA0N6K (ORCPT ); Fri, 27 Jan 2023 08:58:10 -0500 Received: from smtpout.efficios.com (unknown [IPv6:2607:5300:203:b2ee::31e5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC18555A1; 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=1674827884; bh=sA4M3OkjVCW8xxieTK/u4Mba2o99GV9rRi2ALGoRhik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ihvUcKSqS97yiWo6UXgVR1PEVNk9peScMw9s+PpbdjBG4cdJIi9jDibNQu0aHoGpk AHjPThY/tlXm18EsHG6gr+9+6a6s922YpjfQqY3/Ipsm+MqxHQ2JAyMYYWUzHtYYWB ygwg1unwFPOA4Ry6x+sT08cRorXZRadIZCYoQmmmAhxMHbHOD8RAe6U6eNsVMZ5PNl oOuMGw/PyTSgeRpLlgzWsy+aNnkf83i9BwlsIUKMfZk7eFmogqJ+hmNkT9CbAQQRfq JELCGFvsycpz4adFkfPU1RaVgnXwFK72jbziKprCZF+GjKkuMIp/zRavOeI6fZ4AIn MfZrIm/it11Cw== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0X0nczzhxT; Fri, 27 Jan 2023 08:58:04 -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 14/34] selftests: membarrier: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:35 -0500 Message-Id: <20230127135755.79929-15-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?1756184486770118652?= X-GMAIL-MSGID: =?utf-8?q?1756184486770118652?= 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/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 \