Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3791804rwb; Mon, 16 Jan 2023 13:03:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXs5dTKpADCFr3COyG6YEL3o2CTTtYu4gGF+ABgiT8t5WhuP96cPQtEQV/gVJRBgJnWjja7o X-Received: by 2002:a17:90b:4fcf:b0:229:869e:c916 with SMTP id qa15-20020a17090b4fcf00b00229869ec916mr696327pjb.3.1673903032422; Mon, 16 Jan 2023 13:03:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673903032; cv=none; d=google.com; s=arc-20160816; b=cFyXg/6bVHS+CaHu9e3x1NqDycpvoEMnT2g6c0CC70Tsbl9fYsaOfHCPGZMd7lI3UL XnBoC043ngUsV09XD/NVc2FSWsWEJHDQTSQMjdeXERVuOaFV/aWsoVgUMuIW8bzVRKzC tznP0CJ16/We6WPB7Uj8wSrqJx38ijW+ivq6uZmT27DjjXEhbFQEil3yXkl0ZVwmhAKE LQLgtMJqXie8fKa24Y5wGc/QRwS4bFS6cEAFkbWU9QQLNyvUXKccX77WzdLhSGoKIRjO frqVrDms0tRLTKW04SxTnyMskSCioOawx+ylZWEHELN72JBMg+r3U+KkRmGvsl4xBOsh t02w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+J/ty6OZzsM4Dkr+m5OfyYXs4a8gKy+0xMhQ78Om9yk=; b=XYfbihgVKuQyDAOtnafn2+SWYrihGB+34vLS5hBH/OIQY6O/21Z5wPuKKMcWIDlVk9 X3NDdjvELOhCJ+44V/v3ZICsJn4Bf5WChdo8Xwiq4Y1m5TqXW9Vm2mLgqCM2howsnv5F ZB+bOjCB/WaWuMFlcJAwjjSfmYz5Z0arVpydei0zWbX/wgRZj/tHLXvZ02DIRmNppgaP HSlbSv8ud7s6u5ssSjh5dWPmaExkl0MIhjHCx14dT4yfrGJ0nanbXLzbQ3KEbK8C2fQ1 h7Msm4C0cP4flz1djBnEmc94vHV2SEKuVsw0E/wnyjxzyEw0uOu9WbpVY+Uf01TGm3gr dSSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=e3lYJcnn; 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 y186-20020a638ac3000000b004b399347548si24606824pgd.351.2023.01.16.13.03.39; Mon, 16 Jan 2023 13:03:52 -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=e3lYJcnn; 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 S232305AbjAPUjO (ORCPT + 50 others); Mon, 16 Jan 2023 15:39:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230503AbjAPUjM (ORCPT ); Mon, 16 Jan 2023 15:39:12 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B08A2A9B6; Mon, 16 Jan 2023 12:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1673901550; bh=LcUa09Y7snyF9Tz76Q52RwDF+8IvPy9A4+2h3Egsjn8=; h=From:To:Cc:Subject:Date:From; b=e3lYJcnnJy9W1oPMBk30oU2TQ8PkvkvBxOO3xZM3OCDvp363T2Zu/B1LLT7H33cX1 UyE6KdUc9/eHkVpyQwDYVSBt/vzfOWYxfZW/ZOHUG83hZMUzjzDx2VVj1cogZTlsYa sMLYBuhDvF+FQdPwtJJzql2K1KNWIEA5SKjXpLWfcgcHFSjpnyofb60gHCor16pIKL rFbrPTsQWQu91TMu0Gzfj+eIDU7AelDzk/QE1RjjvQzLA6UFnZYu60ObkJyJOQ2sBj +inJxSJaypiajkt6baH6/zfDIprqkwzySVgd/8P0rl2c/TzwAfBaU0RFCgiad9maQe ZEibhKU5op/zg== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4NwkQQ1MMvzgjs; Mon, 16 Jan 2023 15:39:10 -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 , kernel test robot Subject: [RFC PATCH tip 1/2] rseq selftests: Fix: use KHDR_INCLUDES for kernel headers Date: Mon, 16 Jan 2023 15:39:03 -0500 Message-Id: <20230116203904.214010-1-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.25.1 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=...). Reported-by: kernel test robot Signed-off-by: Mathieu Desnoyers --- 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 82a52810a649..b357ba24af06 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 -- 2.25.1