Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3670776rwr; Sun, 7 May 2023 17:32:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ52IuqSMGKUCrbhZPtaqLL2Yio2bDUKbQ36b82foYJVfjMRG1+tD5cH46WwaI0xccME54fH X-Received: by 2002:a17:902:be03:b0:1ab:797:afbe with SMTP id r3-20020a170902be0300b001ab0797afbemr8482476pls.8.1683505947454; Sun, 07 May 2023 17:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683505947; cv=none; d=google.com; s=arc-20160816; b=r7HVJPo25FtBXSNuNZSVP3oimIg1Lalhcg0qw4BjqNGySGpRJVxj01NJVqs9nVzYte S8xpUNl+vBGb04+y3Nr15nv8Uob6iU9ZZFY8z717+7yeeF8yzvtSIq/4AjibMXrR6Q0F Ums5NOothH4joL6MX6tsGo1OIQSC8ej1MI+W4k9nBeqY7F966+tjh7+jpZHTkJ/EYlUs Pn8PKn7p4c63AjpRIdx0zYSzHZy3ZNCMoVX6y1aNQHv1RCdm4iAYzf5UlCTVJkVVo5J0 f1x3Kb5PE9PUTPVG4pkDhCz5dgUazZhYnaV+oO09NeAef7/YfGGLFaZ6ON6+GXtjBdns osyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:subject:to:date :from:message-id:dkim-signature; bh=h7g8Xlgvko0+iMQ3bWpyLb30HaolKZPLVEsVOIfgeRQ=; b=E1nwWZ9aixseD09pZuou6yAU+KsuJbYqV57dT2bdTiiA/nTTCtlGAZKQtzxZvKnso/ VTgmZChyrJoCutyk4Vi4Rb1LfRDhHgwtJ/KPzg9WYPHI+LFA9hbvkqKRjaRlaGtsS6LR j575H/avW4ZMrnPzYG/qrr91c5mIl/C3+vN71USJRCPHcJTU0oE7zDCMLQ3WvgrMBfzH 2JtOK4HO3p6RlfDVXthDKzITunkyUO8rfVbFT1cxkutZvgH/OEGXFhAlRTgUIARMGU7T gi412UteGNCQAgC3uwqS0b6ahXV9QM0HoFdkEywH8z0nxfcnNu5eQACwbWD9KKufc8lu jW5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kokcZ59v; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a170902ebd200b001a6bb44db86si6711812plg.226.2023.05.07.17.32.13; Sun, 07 May 2023 17:32:27 -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=@gmail.com header.s=20221208 header.b=kokcZ59v; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231631AbjEHAJ1 (ORCPT + 99 others); Sun, 7 May 2023 20:09:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229960AbjEHAJY (ORCPT ); Sun, 7 May 2023 20:09:24 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 652486A56 for ; Sun, 7 May 2023 17:09:23 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-24e2b2a27ebso3732488a91.3 for ; Sun, 07 May 2023 17:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683504563; x=1686096563; h=content-disposition:mime-version:subject:to:date:from:message-id :from:to:cc:subject:date:message-id:reply-to; bh=h7g8Xlgvko0+iMQ3bWpyLb30HaolKZPLVEsVOIfgeRQ=; b=kokcZ59vCwy7TBU565FUIYz499meBcO2w/NuTo5ZzhoESU5eMI5T3nDT7AI50TreIw eMrPBzXPu0RVuw7e4xNGfZiijESCNgZn6icf++VOIIUQ3k2WFQScIMyGPrJ9x3a/xt5U i6K0MUR81wUkGuFRjzhPhq0QqFXaaNb2gWidYS8KfCDp9kPDKDMNyr3nq8zcKE7F40tf QAQRrUFTbd/yW12VLALxyNgHoz5fTANAQ3lSGRyx37WJV/JAaPXnNtXH/RoU/Ib7jIyL BwiB4JOYT8Y29SG/i3H4JG00d3BKYREzfZyNc8lean3svYPxR8nWBipVXTXszrdeCvjf K8lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683504563; x=1686096563; h=content-disposition:mime-version:subject:to:date:from:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=h7g8Xlgvko0+iMQ3bWpyLb30HaolKZPLVEsVOIfgeRQ=; b=LzroHTcOz8V+hkZxLakuoW1gcZ32FXqSaUm7suW6rnVSPG+Zi80XkXaieGC/8YyYBX O+dG2aOoeIXOf9e23CsJlRZCAUPTOXOoFBz8u7w53XN1phFKVVQUlTS4RZdZqLjE9WWg HgC6NH1Bkvo3n1K76nUftyh5DqJgD30vQbctrXD5mu7QxWP80AR4yPWZoyWg7OXh9y23 YaaTPngBRCSMQuH9cf2ABYglWY75jAwx3/iArFDXuHAP6+fFb7/XV182+AlYZooSVrIj +KbT/Acy2+e5uHtEW1pK8xdT+4FQ9aKamQXL/XZ+TdOGF8abyOKu4A83B4UBruf5Yq3o vipw== X-Gm-Message-State: AC+VfDziR4aWM5LX3W/VtAVfPTaGnuksn5M/FIjKYUVHoWbItegH4v3Y JKDFkAYc3E6i6ttawPPzYeQ= X-Received: by 2002:a17:90a:3841:b0:24e:14a4:9b93 with SMTP id l1-20020a17090a384100b0024e14a49b93mr8994180pjf.43.1683504562529; Sun, 07 May 2023 17:09:22 -0700 (PDT) Received: from sie-luc. ([124.89.8.225]) by smtp.gmail.com with ESMTPSA id bs2-20020a632802000000b0051b5d0fe708sm5071243pgb.43.2023.05.07.17.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 17:09:22 -0700 (PDT) Message-ID: <64583db2.630a0220.eb75d.8f51@mx.google.com> X-Google-Original-Message-ID: <20230508000916.GA11328@sie-luc.> From: Luc Ma X-Google-Original-From: Luc Ma Date: Mon, 8 May 2023 08:09:16 +0800 To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Sam Ravnborg , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 RESEND] drm/vram-helper: fix function names in vram helper doc MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,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 From: Luc Ma Refer to drmm_vram_helper_init() instead of the non-existent drmm_vram_helper_alloc_mm(). Fixes: a5f23a72355d ("drm/vram-helper: Managed vram helpers") Signed-off-by: Luc Ma --- drivers/gpu/drm/drm_gem_vram_helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_vram_helper.c b/drivers/gpu/drm/drm_gem_vram_helper.c index d40b3edb52d0..f1539d4448c6 100644 --- a/drivers/gpu/drm/drm_gem_vram_helper.c +++ b/drivers/gpu/drm/drm_gem_vram_helper.c @@ -45,7 +45,7 @@ static const struct drm_gem_object_funcs drm_gem_vram_object_funcs; * the frame's scanout buffer or the cursor image. If there's no more space * left in VRAM, inactive GEM objects can be moved to system memory. * - * To initialize the VRAM helper library call drmm_vram_helper_alloc_mm(). + * To initialize the VRAM helper library call drmm_vram_helper_init(). * The function allocates and initializes an instance of &struct drm_vram_mm * in &struct drm_device.vram_mm . Use &DRM_GEM_VRAM_DRIVER to initialize * &struct drm_driver and &DRM_VRAM_MM_FILE_OPERATIONS to initialize @@ -73,7 +73,7 @@ static const struct drm_gem_object_funcs drm_gem_vram_object_funcs; * // setup device, vram base and size * // ... * - * ret = drmm_vram_helper_alloc_mm(dev, vram_base, vram_size); + * ret = drmm_vram_helper_init(dev, vram_base, vram_size); * if (ret) * return ret; * return 0; @@ -86,7 +86,7 @@ static const struct drm_gem_object_funcs drm_gem_vram_object_funcs; * to userspace. * * You don't have to clean up the instance of VRAM MM. - * drmm_vram_helper_alloc_mm() is a managed interface that installs a + * drmm_vram_helper_init() is a managed interface that installs a * clean-up handler to run during the DRM device's release. * * For drawing or scanout operations, rsp. buffer objects have to be pinned -- 2.25.1