From patchwork Fri Jan 27 13:57:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Desnoyers X-Patchwork-Id: 49407 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp846441wrn; Fri, 27 Jan 2023 06:00:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXv0iGJqAKmKsi1Wre7/mqx6N2W0BVTeDCpcO0c9fe4+bPRF3WI1+LDGDrDojXBfe+eO/G70 X-Received: by 2002:aa7:db8b:0:b0:49b:b274:b816 with SMTP id u11-20020aa7db8b000000b0049bb274b816mr40674745edt.37.1674828008402; Fri, 27 Jan 2023 06:00:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674828008; cv=none; d=google.com; s=arc-20160816; b=i8RCMY6thVwQCYJ3sSZh2P9bcPo9VvlkmBK0EzFsSTvNAiv9wSy3V/qg1xh0ZhzuDY iU7oPaTKyyqZW3DHK464GqtfmVjzLwJAzk7WG9ddexuqjJl9vIVVqseMFYJAPJtZpRO6 blik/3SSPrLccDgZmNDbIz9cLGTqsxCCjMXL1b4nL9vhgjlhsr3wZvkzWwgb+eubOG47 zmXlU261Bbnu8LKQCsrpDXAxPqNWf3uayWPvp6qtP7Mih7d73gIfyQPG6fRlBfkpbAZd YeTPhRUzIjRkPW/KRRXYKnQwSq9yQ89xcpeaMg/2v1gSJM4bltZ0I6i2/o1bUkXVdE8F Uqyg== 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=foOZElg/it7CyruetmTPdS0TnvaghXvAmzU0AWuXxKs=; b=MYORsuf+25S8OXLAPsoXG7SfRbMMwJSD350q/AX+08EAneNWhM2u7dm4ml86jqUQyb KB4C8VyymD1gNcmDlH3xqGhYwTiUDjbvxetORovIyK6fugQROA2Vo4ad6a4kSiRkJG4M zkLXBqDBL9CEKseacvdmziBq3GlGqIU32nB4WDPOA1ohCnKV74V9gqzckezfKAJDaaga 9i4aYdiRHzVxBehwHX14n9nuFavA6tEVfemr9sWfD5ueBB4g4M/mR7IlKFOsdAMfToA8 VD4pfiqw+tZQwZU9NGbhVbXJZchI5oIy8vqLNouMiCQHym/VGy7cy/zC12MJefC/dQoz sOtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=ZukGHJ6A; 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 b18-20020a0564021f1200b004a08aa8af4bsi5401616edb.509.2023.01.27.05.59.39; Fri, 27 Jan 2023 06:00:08 -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=ZukGHJ6A; 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 S233881AbjA0N61 (ORCPT + 99 others); Fri, 27 Jan 2023 08:58:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233618AbjA0N6J (ORCPT ); Fri, 27 Jan 2023 08:58:09 -0500 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C670CC33; 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=O7TLRnBFvO2mHHa21PT6sPp6oCHu3V7ypNifZtvavPs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZukGHJ6A7yYm6vWBR0x6cfQeDJ8DOdZTmdLGkp7msE5Wh4164c19x2crtPcxPqmKX gwLw6MU42H2bTzJ87s8H8rdU03aGPZTfaUhOqd7iCCHLRxKjz3yIXwliEUG+DeZvNQ lGFI70OLj2FMAsYtWOtSmeYBqOgBByvnpd75xBkdICM6NEefPvy/qbBAJL85c0tASM rW7uvJg+Ke8ZoAdTu6JwUwsuS5O1RKa5AYGMWpCE0u6OPq8fikECrgi41ncg2IFXZ+ 9A3poRmFvcQC8sm8WuUahTzU3FVLg8SUZRvh1ESR79lG19F/VZDhpLIwHtk54TghjW ZeiwqRH7M9rfw== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4P3K0V2yJXzhff; 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 06/34] selftests: dmabuf-heaps: Fix incorrect kernel headers search path Date: Fri, 27 Jan 2023 08:57:27 -0500 Message-Id: <20230127135755.79929-7-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=-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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756184453704306830?= X-GMAIL-MSGID: =?utf-8?q?1756184453704306830?= 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/dmabuf-heaps/Makefile | 2 +- tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/dmabuf-heaps/Makefile b/tools/testing/selftests/dmabuf-heaps/Makefile index 604b43ece15f..9e7e158d5fa3 100644 --- a/tools/testing/selftests/dmabuf-heaps/Makefile +++ b/tools/testing/selftests/dmabuf-heaps/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -static -O3 -Wl,-no-as-needed -Wall +CFLAGS += -static -O3 -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) TEST_GEN_PROGS = dmabuf-heap diff --git a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c index 29af27acd40e..890a8236a8ba 100644 --- a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c +++ b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c @@ -13,10 +13,9 @@ #include #include +#include #include -#include "../../../../include/uapi/linux/dma-heap.h" - #define DEVPATH "/dev/dma_heap" static int check_vgem(int fd)