From patchwork Fri Jan 27 13:57:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49415 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp847199wrn; Fri, 27 Jan 2023 06:01:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXsnIAo0Y8uaXUDcVn+OuFQCXg4/wOZJ9d6vzNWuSk9X1MF7YNvcaOvPPRbGryDhWnJZfU1t X-Received: by 2002:a17:907:6746:b0:84d:1c67:97d7 with SMTP id qm6-20020a170907674600b0084d1c6797d7mr48904367ejc.30.1674828070479; Fri, 27 Jan 2023 06:01:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828070; cv=none; d=google.com; s=arc-20160816; b=KWS3UtAvfPosZSqbH6sChwMxSbmhiXNimj7bPcoYKu0aYQ9VLBfEjpsDoPe4n2Yzeu jXDxqRR3CvHjlPM4yIVgeRS6Od7YmHJGFrEq9Dh6lTEgbeuXtgKsP5jC0JjUQVWclyxJ aZ+Jm2NfrzOo2Snh5/QLPhC9BinCkxKZytJDJ4IDz4YiKPRKYJXBWrBMzaJiwQRleSIl 9gPWTh9SJtBNYBFGBzwVDAcV51I5hqKsHxmGdt4EXHNEFnA4nhx80r0+wq3xFBbLZGwj bqRsxTQo7LQgA089L4LAGWcxXSVW/d9GEtayNh0yCC8ADwgibRAu2aP5St6fZjY/VvhC HHfQ== 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=BNtgctQvXbxV6/hgDViXWBzrh+01XRsrj+2RqnCsizo=; b=ouTbRshQWU+rBHNPwKpT3bK1VAGlZW3u3cNWVb4B6bDkUxWKX8BqtOffUWOxAJNR9L 6GJze5SK9j2dn4VC7Z0qZAPNmstiplKmq59EcRuoqQeoI5x0v2RuMlgA8a7bV8u8416V JCdpPWMP1U9asBZ8jVmMogN5r78KJ7tWIaIJXyK/Y5B9+szeK9Jnb3Ggpr5G1kOIpPIt 0aneKk/ltfJfvNGPfuBg0YFmO6JOsJ3zPnsszfhIr5KeZabAvvddPInW1Wou2/2XcTcf 1sQs71R6qbRORJP7zPs49iWPaPaET/MqBQjoPW8q79qOU4r8juyKaWruVswQYNPtt6Ih SOAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=EcnGZEJo; 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 lr12-20020a170906fb8c00b0084c4a806258si5197807ejb.645.2023.01.27.06.00.39; Fri, 27 Jan 2023 06:01:10 -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=EcnGZEJo; 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 S234109AbjA0N6z (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233672AbjA0N6K (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 7C5C2C64E; 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=1674827882; bh=9bTL5ZQeBBSKQ5ZimARCBa1khFOkkbpLsDUnEgWCuIA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EcnGZEJoJAKMoQ6YGcaurO9muRAm8BgZzowAuvJgT3OMtpzqufgatyjPu5UBE2RW7 qV+wYJLZvU3X1szhg3knmG5zbLyPfpNA/mmmF9h0PzzSRzPYeH2gB0+vQ0fImzP7GS ljm5JvxzEMRMC6Od0Rq4r2ytF+8ZoBo/waFfQheKFuBDl6o5CA7M5UjK4/53LuqAm+ ZLiPZATM5ysEd/Tfg50M8rZqtVG7o1jpGPTud2AY0x1ck91GnGl1v1FfaKoe0WoJeE C6gArTqQhEGPpesqy0gVYjvLUswdn66ludIz6gO55D3SJgTmWPf3PUyTrOCFoBGbiG 0Bk/Mh9V+81JA== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0V4PnLzhxN; Fri, 27 Jan 2023 08:58:02 -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 07/34] selftests: drivers: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:28 -0500 Message-Id: <20230127135755.79929-8-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?1756184519195415127?= X-GMAIL-MSGID: =?utf-8?q?1756184519195415127?= 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/drivers/dma-buf/Makefile | 2 +- tools/testing/selftests/drivers/s390x/uvdevice/Makefile | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/drivers/dma-buf/Makefile b/tools/testing/selftests/drivers/dma-buf/Makefile index 79cb16b4e01a..441407bb0e80 100644 --- a/tools/testing/selftests/drivers/dma-buf/Makefile +++ b/tools/testing/selftests/drivers/dma-buf/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -I../../../../../usr/include/ +CFLAGS += $(KHDR_INCLUDES) TEST_GEN_PROGS := udmabuf diff --git a/tools/testing/selftests/drivers/s390x/uvdevice/Makefile b/tools/testing/selftests/drivers/s390x/uvdevice/Makefile index 891215a7dc8a..755d164384c4 100644 --- a/tools/testing/selftests/drivers/s390x/uvdevice/Makefile +++ b/tools/testing/selftests/drivers/s390x/uvdevice/Makefile @@ -11,10 +11,9 @@ else TEST_GEN_PROGS := test_uvdevice top_srcdir ?= ../../../../../.. -khdr_dir = $(top_srcdir)/usr/include LINUX_TOOL_ARCH_INCLUDE = $(top_srcdir)/tools/arch/$(ARCH)/include -CFLAGS += -Wall -Werror -static -I$(khdr_dir) -I$(LINUX_TOOL_ARCH_INCLUDE) +CFLAGS += -Wall -Werror -static $(KHDR_INCLUDES) -I$(LINUX_TOOL_ARCH_INCLUDE) include ../../../lib.mk