Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1369282iog; Tue, 14 Jun 2022 04:56:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxM5fY+M4FtT54O6vpUoFWolFvThY9UT6DirSBLpxdpJnIXmO3La66acg7NURfvUWfYcCfq X-Received: by 2002:a17:906:7a12:b0:711:f686:a84d with SMTP id d18-20020a1709067a1200b00711f686a84dmr4060118ejo.41.1655207766425; Tue, 14 Jun 2022 04:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655207766; cv=none; d=google.com; s=arc-20160816; b=otZUk+QDZ7Sz4mg3IlIf/EX3qPFkirkQKt8TqIzMhIn+3aeZNqUyJG72aQe6JtEYCB Bs+JiPPSI5qOwPDFhJzXH/0Nj8LRtXC3B9TNcO9Mk4RODVflG3qy9tXD/Vw+Qw4u4Ryk pfPYR3C6UTt4F2U2PlCPLjnL9uMU5EcPyRWVHIx6Ce3kn3hNH5nLqwl3Y2KTojVIF3l5 HJze4BPbnnN65dAZYfW2AMBIOE49g4yjGncA64d8P5cjUrQO9bdWkG6IHiM3fzrddJ1T ibU7GRAnuPx45s1zYdRsYqbMz+RqnROJ7jlgNzj0pTzPYllJK9bhSXw4sEiycIF7NGe3 kGyw== 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; bh=H1DA9g3XZxUROOqTNCKSIWeu3fLhW1h59PZ24GZriWM=; b=PNlP5gm7WhdsblGXL/cAqykEp2gyQLQAxOHRjv5MlX4cih079Bkoy28rCZUzYO7PEw SQQKxO+hpYQiJmhray2FcdREpfaUaouXs1hfwavv2Pqn7qggq0IuU7t6uNwYyo7I9r5l eQwNGGumsXa2dmQ6Fk7WgVbQ7k9UKFfpMAroC8Ru/Bnu7fAfAjPvdDlef0PCtw4n64Mr r8oaLwXjVYNqPbVl8UdjplUT53I5468MYRGyEAolCsiQ7EWcAVN6/RvJobTeWYu9C4tX 5ndjOMIO1zk5kTaqNhWGt/W4Ushj3/LSCAW7kRcJId665rwy5Xy/MaLixC4FlLbDZU1R /eZg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a05640250ca00b0042de467c248si12726829edb.539.2022.06.14.04.55.40; Tue, 14 Jun 2022 04:56:06 -0700 (PDT) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243547AbiFNLwf (ORCPT + 99 others); Tue, 14 Jun 2022 07:52:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243542AbiFNLwd (ORCPT ); Tue, 14 Jun 2022 07:52:33 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE5F2F5A3; Tue, 14 Jun 2022 04:52:30 -0700 (PDT) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LMmtb2SLNz9sv6; Tue, 14 Jun 2022 19:49:11 +0800 (CST) Received: from dggpeml500003.china.huawei.com (7.185.36.200) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 14 Jun 2022 19:52:28 +0800 Received: from huawei.com (10.175.103.91) by dggpeml500003.china.huawei.com (7.185.36.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 14 Jun 2022 19:52:28 +0800 From: Yu Liao To: , , , CC: , , , Subject: [PATCH] selftests dma: fix compile error for dma_map_benchmark Date: Tue, 14 Jun 2022 20:02:35 +0800 Message-ID: <20220614120235.1557825-1-liaoyu15@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500003.china.huawei.com (7.185.36.200) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 When building selftests/dma: $ make -C tools/testing/selftests TARGETS=dma I hit the following compilation error: dma_map_benchmark.c:13:10: fatal error: linux/map_benchmark.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~~~ dma/Makefile does not include the map_benchmark.h path, so add more including path, and fix include order in dma_map_benchmark.c Fixes: 8ddde07a3d28 ("dma-mapping: benchmark: extract a common header file for map_benchmark definition") Signed-off-by: Yu Liao --- tools/testing/selftests/dma/Makefile | 1 + tools/testing/selftests/dma/dma_map_benchmark.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/dma/Makefile b/tools/testing/selftests/dma/Makefile index aa8e8b5b3864..cd8c5ece1cba 100644 --- a/tools/testing/selftests/dma/Makefile +++ b/tools/testing/selftests/dma/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 CFLAGS += -I../../../../usr/include/ +CFLAGS += -I../../../../include/ TEST_GEN_PROGS := dma_map_benchmark diff --git a/tools/testing/selftests/dma/dma_map_benchmark.c b/tools/testing/selftests/dma/dma_map_benchmark.c index c3b3c09e995e..5c997f17fcbd 100644 --- a/tools/testing/selftests/dma/dma_map_benchmark.c +++ b/tools/testing/selftests/dma/dma_map_benchmark.c @@ -10,8 +10,8 @@ #include #include #include -#include #include +#include #define NSEC_PER_MSEC 1000000L -- 2.25.1