Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp820434rdb; Sat, 7 Oct 2023 00:03:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0ncrHaDiqUuyPvc5jFS4wRXshmoWWPh/YGbGJXmlh1xI/b5MYxTGhl8Z/8W86SECG+f66 X-Received: by 2002:a05:6a00:2d1e:b0:690:463a:fa9d with SMTP id fa30-20020a056a002d1e00b00690463afa9dmr11482534pfb.22.1696662215154; Sat, 07 Oct 2023 00:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696662215; cv=none; d=google.com; s=arc-20160816; b=nl6O6t4mNLIf0gRykN/Lf0N0zBVt+PvWnEY4bKG7O1pguqfD3j1mFVd3lheytVKMn5 2tG3iFZ325ojcgcwatY8EBkQKeRR2Ui7U3nU+pkRpmeP2y4ulymOGwmzIlFYLeOHG0EL wOCLlLDkZiSoxhVARwCLXUGw0jOVPGVDMQ8GLtBFhzwBtJ0y9FfjyyIoMtg8De9lPAGP wDJj3zLrxbqkRBwV+lEMyPAzdPwLLuGit31G9riiy5ODjuC8gj09liQafAUigWGygUCX yX4FJBjkOM7pIljFbQV7Dv84jcxr8kIzN6D9PAr3oJFugxAeg5HA7Pbx6WKSWklnxySq pwxQ== 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=VTt4cn8ieBBh1OVyglmQ1wgt+urQQSlMw/yWNdcJrS8=; fh=BUTCIj8TzuOo7bVcuY9lJeUz8qAhsFqgbdVjjCyFUI0=; b=En3qQRXr/ZFsJgFamZjJibOso4mh3wKq0mMEAfTAPy+WI5QgkAXtUDNQXpQyoG3PVa LTrz7l2XBAUi82KS4vIX02GTI84NyvWFSJp+7/3pIYTzc/ZhKWhOaUJaoQTs6asdytEX D2RpwRcXhDdrzaBL5hxugMykjRU83n5hTm9AzEb2pbpgGX42B6LFI9P2zdxYo6LdLfhf 2+ivbMJ6J1yrSaCDy5Y6AzwJbxatIwXm44awrpVOGSDdzgGsSWLhCV2rsjLuI5NQfFO8 I5MGJotXWmslEqIPo1vqXbOfJ3BFi++W/pzY2iBn0PESPWQvfI6BZDH1JcowYYOhUVvA JLOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id p52-20020a056a0026f400b0068a49a550b9si2884895pfw.139.2023.10.07.00.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 00:03:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 142548182EEA; Sat, 7 Oct 2023 00:03:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343608AbjJGHDS (ORCPT + 99 others); Sat, 7 Oct 2023 03:03:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343578AbjJGHDR (ORCPT ); Sat, 7 Oct 2023 03:03:17 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 74AADB9 for ; Sat, 7 Oct 2023 00:03:14 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8Dxl+iwAiFlMrsvAA--.55795S3; Sat, 07 Oct 2023 15:03:12 +0800 (CST) Received: from openarena.loongson.cn (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxXNywAiFlmewZAA--.55077S2; Sat, 07 Oct 2023 15:03:12 +0800 (CST) From: Sui Jingfeng To: Lucas Stach , Russell King , Christian Gmeiner Cc: etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/etnaviv: Drop the 'len' parameter of etnaviv_iommu_map() function Date: Sat, 7 Oct 2023 15:03:12 +0800 Message-Id: <20231007070312.1026296-1-suijingfeng@loongson.cn> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8AxXNywAiFlmewZAA--.55077S2 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Gw47XryUXF1fKryfJryxZwc_yoWkKwb_CF 1UZr9rJrsxZFn2q3Z2yrZxZF9YyF45ZFs2q3Zrt3sxKryDZwnxArWv934DA3yrXFy8uFnr G3Z7tF10kF17WosvyTuYvTs0mTUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb7AYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JrI_Jryl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE 14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x 0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E 7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcV C0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF 04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7 CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU1EksDUUUUU== X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 07 Oct 2023 00:03:33 -0700 (PDT) X-Spam-Level: ** The 'len' parameter is the 4th argument, because it is not get used, so drop it. No functional change. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/etnaviv/etnaviv_mmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_mmu.c b/drivers/gpu/drm/etnaviv/etnaviv_mmu.c index 4fa72567183a..1661d589bf3e 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_mmu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_mmu.c @@ -70,7 +70,7 @@ static int etnaviv_context_map(struct etnaviv_iommu_context *context, } static int etnaviv_iommu_map(struct etnaviv_iommu_context *context, u32 iova, - struct sg_table *sgt, unsigned len, int prot) + struct sg_table *sgt, int prot) { struct scatterlist *sg; unsigned int da = iova; unsigned int i; @@ -314,7 +314,7 @@ int etnaviv_iommu_map_gem(struct etnaviv_iommu_context *context, goto unlock; mapping->iova = node->start; - ret = etnaviv_iommu_map(context, node->start, sgt, etnaviv_obj->base.size, + ret = etnaviv_iommu_map(context, node->start, sgt, ETNAVIV_PROT_READ | ETNAVIV_PROT_WRITE); if (ret < 0) { -- 2.34.1