Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1768226iog; Thu, 16 Jun 2022 13:26:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vRvHCu+v0LjlcTt1RI7P2cE0Uol6z91DD1h39SoV74M1YisTyjDxO1ottmee0DF1X8QWCM X-Received: by 2002:aa7:df19:0:b0:435:5eb7:5e31 with SMTP id c25-20020aa7df19000000b004355eb75e31mr211662edy.418.1655411202559; Thu, 16 Jun 2022 13:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655411202; cv=none; d=google.com; s=arc-20160816; b=BbOBc/rfrXIMtB5mzK+CjInYkG/rhE6rbhh787Z/lNUjsZsskQutXqV+SZqj+6V7xJ 0VX/w8GAUW0HDPR0T9NEalv9IWTHzyhsVSV3NLx85DFb4RYSdMQ2RrZ9/B6yIk842gDF Fdja70tvzxbEry7tNKKhMu8Zr4b9yqxdZ1xHZS9uwdMT3RfQ9uizjaDAkCx1B+qAhN4q bpyC1BtJsnyHgdw9Tyc7R5Ef9kgpm3bnzxftrsW5szJk0MqeqRd7mXnVvO5YcHznlMiG lwfbSjWDIls0FcAFEIqSsKZjfRSX6ivac9WIoHBu5AWix+21Dl3aWV5vuLW5EyPD+ksY uDHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=sXfBZO9ZRn0KOfuHBoTG+TELVXjQhauO7xL7gMi8B0Y=; b=VRG+5DTqF9wEJjrKzV3AN7kRoeOaUlpZF257VAB3mvvTjCMqUfEttcMgDDOfcxo50o ttOE8jJnAuLE4lLMXf7VvCajVi8avVhuskYx7iZ165UYi03y1G3/dZl4VyJbizJOJVEo Hjlbe/LK1hHYCEQkJ4Ezv2jQQ4YKnWGMGYIJkKxPRq7Ydj+5OCRdkfVu4rJj+KIr4AyU z2yzfeIGDCy21gR9wy1UZ1XJHWW6WA44i8xBXA7cSZfQFFq9K3j7GoJVZqzUr258bOcy wHMZ122G0LhllgDSjRRNzLGoLbZU3t302cVXs3n+AcMxWsCo/esarlr6lCi2BAKkuIN0 DYSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=C7AWpVwA; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt33-20020a1709072da100b00711c694564csi3042872ejc.705.2022.06.16.13.26.17; Thu, 16 Jun 2022 13:26:42 -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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=C7AWpVwA; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378389AbiFPUFx (ORCPT + 99 others); Thu, 16 Jun 2022 16:05:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238989AbiFPUFu (ORCPT ); Thu, 16 Jun 2022 16:05:50 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02C8B5A2DC for ; Thu, 16 Jun 2022 13:05:50 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id d123so2559724iof.10 for ; Thu, 16 Jun 2022 13:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sXfBZO9ZRn0KOfuHBoTG+TELVXjQhauO7xL7gMi8B0Y=; b=C7AWpVwAilbv008PKE48q4h2NgYag8QQzF4yb085/ArkYwWUiI2poVqCP/YopmIYBY vc09Xo0K2sMbw4stLKOAtLGPQzaqD+h+9+Q5uibYTSzVbBWmBWhWPwngUKfd+NFsTUvu BG89yOcxtyfn7fW8p7WysoWWll6mduo16WgjI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sXfBZO9ZRn0KOfuHBoTG+TELVXjQhauO7xL7gMi8B0Y=; b=tM4xUPRANbviSXjfUhokSm+NM0It5MJBiTYMJJsywiCwCJ/s6FB90Tn2MAiiNurZxm EFl1/QdDIL6Kiecg+U6n5dPDHGXevez6LhD5fsIKGuJ8tjse7F9NEwYYrOsMS5hZWMUk omkuscTDG3IM0QJR7Oru+1hgC3ldYaLJ649Ho5KAzCCZIslk7fiT4DqQKKntr4D4qXJ1 YXVTZqovnqtRHXlSe+FulPeIyCIXDDFVa4VVlC0fTy/Qp7ww3Ico8VGiD1bnwJ3xP8nb YXZH+5vRuh3y0zsYoOIKZcxCM23ffhk44WkqGOGusLNRksBuj/Smj8cbJWbJrTjG3sDH DfXA== X-Gm-Message-State: AJIora8ObxwzBYuAF82u27ZW1s4d+dt8Dcm7izHSN43QC9li2MlGAEKN nJ1tcVHD/vd0g6lUT5Kc5KU3+g== X-Received: by 2002:a05:6638:dc3:b0:333:ef3c:ba02 with SMTP id m3-20020a0566380dc300b00333ef3cba02mr3652087jaj.245.1655409949407; Thu, 16 Jun 2022 13:05:49 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id x71-20020a0294cd000000b003314830ab40sm1292039jah.6.2022.06.16.13.05.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Jun 2022 13:05:49 -0700 (PDT) Subject: Re: [PATCH] selftests dma: fix compile error for dma_map_benchmark To: Yu Liao , chenxiang66@hisilicon.com, song.bao.hua@hisilicon.com, tiantao6@hisilicon.com, shuah@kernel.org Cc: liwei391@huawei.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Shuah Khan References: <20220614120235.1557825-1-liaoyu15@huawei.com> From: Shuah Khan Message-ID: <0e109d9a-e2e3-b3fd-a2cc-6f05abe90e0c@linuxfoundation.org> Date: Thu, 16 Jun 2022 14:05:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220614120235.1557825-1-liaoyu15@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 On 6/14/22 6:02 AM, Yu Liao wrote: > 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 > > Thank you for the fix. Applied to linux-kselftest fixes branch for Linux 5.19-rc3 or rc4 thanks, -- Shuah