From patchwork Tue Mar 8 13:34:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 12773825 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 BD8CFC433F5 for ; Tue, 8 Mar 2022 13:34:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E450B10E330; Tue, 8 Mar 2022 13:34:58 +0000 (UTC) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2C00210E330 for ; Tue, 8 Mar 2022 13:34:58 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dmitry.osipenko) with ESMTPSA id 664E91F41A39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1646746497; bh=57pPVtXqzpBgM3B5l+YWQvFoI9KdE36x/Nrz3vurqCU=; h=From:To:Cc:Subject:Date:From; b=NVshcM/klBN4Uru5MCCIynJ2BJKOwlUFphNYsLrgJvrL4I3vumo+VF91M0+ieaF8w VbNSWRqgfQJ0qg87BXteGNBjunmN9bScBi9FgAElJT33y1pjSz+petjRgOlYzZ+r/2 JEwG/Ixo4nZJ0rh9+cNelEW2xzEEgP6m1mMX65AHLgSlut+pCM9wjbFHupATXsRktw eBb3ftaZ4HQO/XYY8QShDP2PpCFWUYgWJiDbs5TpUTiPSbt+FHQY9edkGxtrC9VOh9 wFjD4+bXtF2Ta1+h3BAiCJ2dkSxKZtThSLnKMX5v2NEkayL+usMcn3lJT9YuRyEl40 m2/NhR/fgv1Vw== From: Dmitry Osipenko To: David Airlie , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Daniel Vetter Subject: [PATCH v1] drm/shmem-helper: Correct doc-comment of drm_gem_shmem_get_sg_table() Date: Tue, 8 Mar 2022 16:34:01 +0300 Message-Id: <20220308133401.62340-1-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 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: , Cc: Dmitry Osipenko , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" drm_gem_shmem_get_sg_table() never returns NULL on error, but a ERR_PTR. Correct the doc comment which says that it returns NULL on error. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c b/drivers/gpu/drm/drm_gem_shmem_helper.c index 8ad0e02991ca..37009418cd28 100644 --- a/drivers/gpu/drm/drm_gem_shmem_helper.c +++ b/drivers/gpu/drm/drm_gem_shmem_helper.c @@ -662,7 +662,7 @@ EXPORT_SYMBOL(drm_gem_shmem_print_info); * drm_gem_shmem_get_pages_sgt() instead. * * Returns: - * A pointer to the scatter/gather table of pinned pages or NULL on failure. + * A pointer to the scatter/gather table of pinned pages or errno on failure. */ struct sg_table *drm_gem_shmem_get_sg_table(struct drm_gem_shmem_object *shmem) {