Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp950940iog; Thu, 30 Jun 2022 13:37:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vxmkIXbW+6LT9gXddAc8atsvU7aZbAn2Yo639z9yN/srFV0dZTJuj2rcLIGs9FOt4ObnQp X-Received: by 2002:a05:6a00:ad0:b0:4e1:2d96:2ab0 with SMTP id c16-20020a056a000ad000b004e12d962ab0mr17520691pfl.3.1656621446778; Thu, 30 Jun 2022 13:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656621446; cv=none; d=google.com; s=arc-20160816; b=WzTmz0dPXagc6GWpCN6JD2oSbHJSC84tK1eDrd8nDX2PYKpWYMn3Hw5NFmeG1BQmPE wIsR3H8u16SncqtbIBsXT7+ZrdLB7VTfgNSZouGIBAcMvqL0zNVIs97HMN4gowynjLuh cvh6MdJqWkZGk6vA9KcXr1lQ6YX/dHHaOgqy8FsC2OIBn3KVCw2BmrAVVVkvaSWy5O+i tk3zMR4S6tFdEDkRMbAiOS8cg5LRHpheimLeyxPzhjbYJloR3hz44EckMxz6TP0nDL5y aS0djgb4FIJ/J0W5ZEOCXN76US6L5jERH2CwAe3a9aGzVqbofA880nCNKIG+GDqKR77l psdA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QZvg18KUtSw9VTb3b5t7z68pKERTrwJTUH75s/htq1g=; b=TIOWjI9SczPGxPE5rOVjBuJNDYhJXR31hR0ZmCLvzDTCvlNwkOE5nhZ+f8hgc67mcp I1QyUWcRhLQn+CG8RzH1cIVT3SFf0mUHylvFQ8L6oqwaU/bq/d35S7yisonDbt9uABb/ HRJLl8ny3xRmMdu/hHCNc05Gpnxn4RfKJOSRcLpoARUIT9BidSBCdOambVCRVEoeO/PS YvSvxjbLrXuJ03rIrItincnpFz2qeB2DMoEBPuzRptDUoWIe2k1DKu8ufIL/7RKwWuxV vO2IJ8585+lVLAsNaRK6uGAzeVwQX2kqf6Ca0tJYJZ23hDrFbC9SgSbPV28/yUOIug9M Rn8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hkeXakVD; 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=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b0041195389fc4si6396109pgb.728.2022.06.30.13.37.15; Thu, 30 Jun 2022 13:37:26 -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=@collabora.com header.s=mail header.b=hkeXakVD; 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=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236933AbiF3UBk (ORCPT + 99 others); Thu, 30 Jun 2022 16:01:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236775AbiF3UBb (ORCPT ); Thu, 30 Jun 2022 16:01:31 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 401B642A17 for ; Thu, 30 Jun 2022 13:01:30 -0700 (PDT) Received: from dimapc.. (109-252-118-164.nat.spd-mgts.ru [109.252.118.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id 3FCAA6601990; Thu, 30 Jun 2022 21:01:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656619288; bh=HwmkBPNhPApyOEwuuFz69Z60ML1iqlmrU4nLETa7AOY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hkeXakVDFUb7ix7WQZ8g5bOdSo9OagrsMg5puZVG27sC7D8gyFCtnSxjsR61Lvi/N REowR9ewtzUA6i06pWvsvk8MYifoAr1OEoQE23HQ04k1CwCJZXWDmKDA1D6uWcP8IV /mEESj1wkhSq9v9pAr0fqv829Uwf+77enZUCW9EY8s6xNNx8VpcN0ycffMQVst/6gx RkP0NW+II1y8sXQeJteacBDAJdHFJKfT7yEotJkedU0zT12BtNkkaImmRtyk11Xlpm nSY1gO4sZg2i+KnDL5X0zKnjZrbOuQEdmRQvCFle/uDKHDBLZaOcCX26ZCDE3mzoQo nA0xGyIZ/pqYQ== From: Dmitry Osipenko To: David Airlie , Daniel Vetter , Maxime Ripard , Thomas Zimmermann Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Osipenko , kernel@collabora.com Subject: [PATCH v7 2/2] drm/shmem-helper: Correct doc-comment of drm_gem_shmem_get_sg_table() Date: Thu, 30 Jun 2022 23:00:58 +0300 Message-Id: <20220630200058.1883506-3-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220630200058.1883506-1-dmitry.osipenko@collabora.com> References: <20220630200058.1883506-1-dmitry.osipenko@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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. Acked-by: Thomas Zimmermann Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c b/drivers/gpu/drm/drm_gem_shmem_helper.c index 904fc893c905..0b526657fbea 100644 --- a/drivers/gpu/drm/drm_gem_shmem_helper.c +++ b/drivers/gpu/drm/drm_gem_shmem_helper.c @@ -663,7 +663,8 @@ 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 an ERR_PTR()-encoded + * error code on failure. */ struct sg_table *drm_gem_shmem_get_sg_table(struct drm_gem_shmem_object *shmem) { @@ -689,7 +690,8 @@ EXPORT_SYMBOL_GPL(drm_gem_shmem_get_sg_table); * drm_gem_shmem_get_sg_table() should not be directly called by drivers. * * Returns: - * A pointer to the scatter/gather table of pinned pages or errno on failure. + * A pointer to the scatter/gather table of pinned pages or an ERR_PTR()-encoded + * error code on failure. */ struct sg_table *drm_gem_shmem_get_pages_sgt(struct drm_gem_shmem_object *shmem) { -- 2.36.1