From patchwork Fri Jan 27 13:57:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49412 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846899wrn; Fri, 27 Jan 2023 06:00:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXs7Z+tXVYCIe3ARtXZ7XoWxXpSSUQ8U/+oB0kbWNeKsT+Orhgw1pRwNU6x0mgE7XvaBIU+s X-Received: by 2002:a17:906:514:b0:7c1:1ada:5e1e with SMTP id j20-20020a170906051400b007c11ada5e1emr40079180eja.26.1674828046167; Fri, 27 Jan 2023 06:00:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828046; cv=none; d=google.com; s=arc-20160816; b=ghCBq6FKw719Cst70CxT2sS60g8G33yCRl27pdk05Hr8ip1elGnI2X7SRh1bt+FmW9 Dl0ngjyJ7z/lxLN68nhvo4SBju3p1UCe+Mvgj/T+/Xi0GDfZKeGfAOOvriPL+rKpslaL VCThyKPhgh0axEmCGqlnU8jSxzWw3+NjHHZYpQjfqoEZfItheOCRQgk03zVqGSJQ2uNV RbdYdO3YyczzIvPaCJVvqhqHiHr0oQ2rQN55StpZZcMnXDLx8zUs6oBPk/+1AKxFleYY jg+m24RdgQwAZZQNW3WEDOADw95SUUxeXLArcek9W8+U/e8XUPUZnEgIYecvokpwk7c5 mSQA== 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=nOlr0Gv0yYEANwd4QTimyAVwbA3VnyHxep2rjEfta3Q=; b=y1/pgWyFayAhvavSDYim/VqW16+k4zhw/PRGQnC5osL/4fCO5hdxYrY6XlpvNNT55b wdVyQnObRy/v5ck7UotqE5nYcFpIIjqBxpt8Ah4LiuFoJWe7elbD9uflqiTZsQhUHD50 OpuNIb6x10LOUN7dH7lIYDoGEADZBsFyeV9uEewH9zANoyOQ20dXf7RDu9FHaiJHpdqG AsWp2NqcgqlSPqVOPATvGocjOm/ZVWEdT/gSeYoKh2hXQChBQX2RLJWImIVEx8+WdAlG 8m+rjplKloyQZv1M9G6m6zrdQ+Y1iYtgbv52nXsyri6eVCZaeV/f/HAuAJDyjjmMP7Ii la8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=gP03Mi02; 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 ka6-20020a170907920600b008787b6dd91bsi3744964ejb.493.2023.01.27.06.00.16; Fri, 27 Jan 2023 06:00:46 -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=gP03Mi02; 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 S234293AbjA0N6i (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233654AbjA0N6K (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 E89C540ED; 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=1674827883; bh=6qm7wk7SUWVKWvdRjS2nUvbIrWez68nKKOk9YkW3yBU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gP03Mi026Ip5lZprMZD7HrDPdLu68cDJiSL5zj/yVbhSbKT0gHmVKMuiXNCkjk1Oj BYFA9Lzexf2vhBJic2Ac8Xdb88AlsWvmTsaTleiJpiuAyzRwDb36AA44gS71PgSt83 6HtfERAaVPs4NEyXcSx9gxPZylEVoBO1gLb1t40AjnZBsS6+AeDwe3uBmpeBBQq5g4 QxHiqR3p4jhlpXXEQbFDQBap/LyK60ULDozbSZjl57yi7cI/AMBSF+6FWyVS5JPst1 HIiIIk//JFjoFp9pYahOTUUvdcMTiqtEiEnZoMhTGTuP+7RQr8/7514Gw4EdF6h3lu KP25M00JmUL9w== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0W4smKzhxS; Fri, 27 Jan 2023 08:58:03 -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 12/34] selftests: kcmp: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:33 -0500 Message-Id: <20230127135755.79929-13-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?1756184493087295441?= X-GMAIL-MSGID: =?utf-8?q?1756184493087295441?= 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/kcmp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kcmp/Makefile b/tools/testing/selftests/kcmp/Makefile index b4d39f6b5124..59a1e5379018 100644 --- a/tools/testing/selftests/kcmp/Makefile +++ b/tools/testing/selftests/kcmp/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -I../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := kcmp_test