From patchwork Sat Oct 7 07:03:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sui Jingfeng X-Patchwork-Id: 149515 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp784280vqo; Sat, 7 Oct 2023 00:03:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEneROdxLtfYEC/c2F6PPn6ib9rVR//o5Z5cvXxSwXwpWGhJM9CQXUfr8tJqMvEEqgQMS+h X-Received: by 2002:a05:6808:1812:b0:3ae:1255:bf02 with SMTP id bh18-20020a056808181200b003ae1255bf02mr12171182oib.54.1696662210776; Sat, 07 Oct 2023 00:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696662210; cv=none; d=google.com; s=arc-20160816; b=TviiiV3v/uiPhfKLwG/uwZAO3UqwB6pu37drQntDguffW7B0PIc8wV1TcKLp8p1/uT GwCyx3CZz10GOzUNlFhGdKTmE+YZiiF5SWrfU/lFeVysUOpxFUXgkT4NGxMitrFX9VSv 28QRc4z6gcTrU6L0S45Ed5jxwiw0Psu8dHnQ3zJmrj0+FTgwxKqUDA7acAiO/7PRceZt Wep29uSochm53sCKHrvHrB8UrSUNtTm8kGOkf9vJmIBqdETWBSt8byiFa60KhoKcJ9/k 4f0Ko2vRV0ffnk29VDozmuM+UWw999GCTI1IGS9gAzr0NLNqTSzo51oYlK4qMWGhJXQb hnzA== 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 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id 9-20020a630f49000000b0057744d09d2fsi5408283pgp.18.2023.10.07.00.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 00:03:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 4157D803EC82; Sat, 7 Oct 2023 00:03:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343628AbjJGHDS (ORCPT + 18 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 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 morse.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 (morse.vger.email [0.0.0.0]); Sat, 07 Oct 2023 00:03:28 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779079274308091750 X-GMAIL-MSGID: 1779079274308091750 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) {