From patchwork Tue Feb 28 01:24:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Ma X-Patchwork-Id: 13154350 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 318DEC7EE23 for ; Tue, 28 Feb 2023 01:24:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 61F7210E472; Tue, 28 Feb 2023 01:24:30 +0000 (UTC) Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by gabe.freedesktop.org (Postfix) with ESMTPS id A723910E472 for ; Tue, 28 Feb 2023 01:24:28 +0000 (UTC) Received: by mail-pj1-x102a.google.com with SMTP id m20-20020a17090ab79400b00239d8e182efso1245736pjr.5 for ; Mon, 27 Feb 2023 17:24:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:subject:to:date:from:message-id :from:to:cc:subject:date:message-id:reply-to; bh=DAC/FV2vHAHfczoWyUaI0s6B/ySA4HkGwdtS4HpH9c8=; b=EaDsn/v1DRlAFKlaIX13mBSY8P+gB479SffHZVqrtvHrlqWBoWXhLyx06o2if/7yBz N4gt1KKsqP/VmC0Wi47Rvt8hiZSlOTFHJoENRyZzotiQYcnHmEgAhEMNVC3XfZ3MWVlq 7x3gVgXhRRxNuT5b+wC5AEy80zqUtyThOpCsB19uHlvn1FSV+7fw4qceEcs7etXxGmUl xRt2Un+UI7zumnsXypeJPlX5ce9NloZkxRnuxk+wfTOkqYVQrhdnFAKZ9O6wBfJI5Ufs z4SlaK6NRUKdqy7n0Tc+ytxkvVwUIEF7nbCDEk68Dm70/D3iB2t4S4Rbb/hRjLX53v/1 8qww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=DAC/FV2vHAHfczoWyUaI0s6B/ySA4HkGwdtS4HpH9c8=; b=gP29eqFkUi5ZEWc6Gyd/lEoxhLvVwmXKEWYLZbT0ZUTJD3ujBWMowu/OMxOa3fD40q IjLAopK4CfQKNZsDpXlgeOS96AEzuLlYuVcR/t/gHXmtlhkc8OgUwp/v+khbD4sbM+t4 yPsJ0nkKmYpfgatD0NhV28oH5blAa8yVqp0W6o34WCOm5zXo5AMTcgDxUwB3+5vVdAxt nUVXGTx/SeILdpLd8HOrMmWTf8AbrWXSuUGgOhblyqSf22kcfM2Y+55z+x5fqBz72rdG IwdreEDicUwcr47cig29r7bSp0wz3oBrYL3UNjqfeQ3+tpuk1eD6CxGpjeW5RX/10O9l hNQA== X-Gm-Message-State: AO0yUKXILHSAF5Q6ENasFsxNYlSad8BBTu57c6dpfXLIASqwUFL+rRd0 Ce2ekUfMiI2tYaRqTtu+IBE= X-Google-Smtp-Source: AK7set+VH06+4f/+qsowUJv19VFvjDWbt8UgHPzIzz2pJNbeI6vDcy1hoyrSdx+xyr+Iur5sASKjKA== X-Received: by 2002:a05:6a20:12cd:b0:c2:f930:45e8 with SMTP id v13-20020a056a2012cd00b000c2f93045e8mr1608424pzg.46.1677547468190; Mon, 27 Feb 2023 17:24:28 -0800 (PST) Received: from sie-luc. ([124.89.8.225]) by smtp.gmail.com with ESMTPSA id j4-20020a62b604000000b005b02ddd852dsm4937099pff.142.2023.02.27.17.24.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 17:24:27 -0800 (PST) Message-ID: <63fd57cb.620a0220.4e1b.8886@mx.google.com> X-Google-Original-Message-ID: <20230228012422.GA27528@sie-luc.> From: Luc Ma X-Google-Original-From: Luc Ma Date: Tue, 28 Feb 2023 09:24:22 +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] drm/vram-helper: fix function names in vram helper doc MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Reviewed-by: Thomas Zimmermann --- v1 -> v2: improved commit message and add changelog 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