From patchwork Fri Jan 27 13:57:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49439 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp849605wrn; Fri, 27 Jan 2023 06:04:26 -0800 (PST) X-Google-Smtp-Source: AK7set/QgSOqtINpnSSg4z3r2HvcpBzJ0LZ8btdLDuukXTVmFyA7MJamZUfGrVpQIpRHtuq95cks X-Received: by 2002:a17:90b:3ece:b0:22c:4455:a84e with SMTP id rm14-20020a17090b3ece00b0022c4455a84emr3842870pjb.49.1674828266230; Fri, 27 Jan 2023 06:04:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828266; cv=none; d=google.com; s=arc-20160816; b=E3HStNZbiz7y4EpZeb3WObC4hNvOdl/CYBHpVdhhlPj/RDPXq3LGzPEv5Tp7EYbdjR w3QqxDaKcW4sCqEqfybfuzpD3fNDFnfXj9F38QnPfzFBHpuwuV3D+N1MrdyZbvNvHhKD m6BUYP3etFPdoWYBvUi8d8vvKRtSZsuoSrL1bjaxKOTB8oqdw8j2fYm0qc8VvaQ+NR3w A5q+9C2+DZcnt8hvQrp+skHkU2ws/WDtQzAXM56qhxbepMTnzNM0T4hWs2xQ8FOD7QcZ uVtqP/eVDOUfzcjdb95j1bGxOm7uLfsK4rBRMwwDCqlXIqiqNsFq/zqzh/eJvT5men0k nr1A== 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=RoZTK9owN9c+jidKO/R9iEu7oR+ZQrL+oLL2kDbglWA=; b=e78vJvqr4wDNpJJDfQz48cjBQvEDyhqfCSCbm97uoLby9mECRjSGoaLljgcYOXiG+H 50BaXZujaBFwlQUTYdWiTRzfqm7NtCQxRGQ38KjO80ZAnHNLYywglP64LK1JTX1C8vBB llT+D0m4xRCyJFiVuRoV/Dc+6DRMKVSP+LQstBxkF8LOpIVZJQ8nucj7iMrKFkK5xtDd N1fsaDWDFHayPBUqjdzkBr9OKxLud3Uyc0nSgMsmYrYlKXwNczZhkXt9lLa3gfVoaRkA 8pJMcmfmlEZa51n7IDfE4qY2LGKV8IWnw5wE6+jUEmgAWJh0R2nPDehg9g71+krjtBg3 /oJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b="oEYBzX/S"; 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 d10-20020a63990a000000b004de85016dfasi4558010pge.15.2023.01.27.06.04.06; Fri, 27 Jan 2023 06:04: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="oEYBzX/S"; 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 S234771AbjA0N73 (ORCPT + 99 others); Fri, 27 Jan 2023 08:59:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233864AbjA0N61 (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 A695D3C2B; 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=PG/Ee5DQDuFzfrqjFpBbIaCu85R7Ezz7gm4/41lk96I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oEYBzX/StuCVTHU0iCdXz7e1iYqgt3TWZ5crSpWT/6F2Yc8anQeVMykmy2L1W57Ak 0cB4dEH5/H7W+EjZrej4ygCXRymK1pRN3A9vryGaaI/GesCg9VIE+kEOCbKsxaO98H UZBJqLq3jr1r1uz9s+ia/u0Np2pmMDNY9RoWLB2TmHg0+H0oCDpmE7nGq2WV/LRxQ9 e+uX3RL4HREimLcuYaNbJIdMgM4O5Wcw3rdK38jAzBft7fD5XMC4QMB1TlOdWAtcQN 9CggsMZEaKg9M4KyiOLZLiSnBabXem/AD8DdgP5MC3hKChKzyxpGGjFWVATfVTj4wl PFmlBf/jxhmjA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0Z08sfzhWh; 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 23/34] selftests: rseq: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:44 -0500 Message-Id: <20230127135755.79929-24-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?1756184724033301254?= X-GMAIL-MSGID: =?utf-8?q?1756184724033301254?= 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/rseq/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/rseq/Makefile b/tools/testing/selftests/rseq/Makefile index 215e1067f037..3a173e184566 100644 --- a/tools/testing/selftests/rseq/Makefile +++ b/tools/testing/selftests/rseq/Makefile @@ -4,7 +4,7 @@ ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),) CLANG_FLAGS += -no-integrated-as endif -CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -L$(OUTPUT) -Wl,-rpath=./ \ +CFLAGS += -O2 -Wall -g -I./ $(KHDR_INCLUDES) -L$(OUTPUT) -Wl,-rpath=./ \ $(CLANG_FLAGS) LDLIBS += -lpthread -ldl