Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp4350639pxp; Tue, 15 Mar 2022 19:12:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8wqbKUcfNLrC+d+6SMNlrxvkWDcyNl9p67ZFplSABuAMV1CC7lUnKnVQ1iFynQ4O9zozF X-Received: by 2002:a17:907:3ea3:b0:6da:6f16:bd9b with SMTP id hs35-20020a1709073ea300b006da6f16bd9bmr24918007ejc.308.1647396776285; Tue, 15 Mar 2022 19:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647396776; cv=none; d=google.com; s=arc-20160816; b=LriccjXRvrhkVLvAs79TX6RqJPqLBivD7RX9XMu9emT8lPCLsTMasjVxK2pRuIy1rZ yiyGVj6zg/s9qJtI9/oQ0XcsOI3PpVr2ztdXH1OKkGWSfe7fBUDb9JeM2tUuySFf1AKT te7Ck9lHBBufOmDqabXFAyU70pLNPO/2jkuWatY5x7QKxpN36xwrHF4KBHcndvfq/wBg RwfIM5gnbcGNwBz1nIjDdO6FG5O2v+npfjHgTzbTiG9bnZUj+bhBIlUpE/ILerpw/DCa 9I5+fYglJvQBpvbNrjL1jcaSSaZBo+FT6CLovK0V3mLWqvVgMIp0LnqhRHlAOx25qCDK ssMw== 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=/K6VxlesY+glbc07VGaB6oOpTiNpLOVLcT0EVivyXx4=; b=wJd4+mzkyJ5qg5/3UMRaJIyyxLm6rCs66IIWppbbzmlr3FyUpKNJ4/cArOOrGT7p4P oZKCkZVb8knSlDrDavaar/+hum4kHhPB4DD/QA3vufJ6Zd5z0Typlw5k0Dm0qBFiQDYv g2lx/PMcduICMBwgkGU2+Yxh9zaOFijPzjN//QQKpAJzo5n6LJ7liulPoHc3KYacjhcw fkYx42CgtB4DEAC/ahHm+WpaRbv+MDJFdevlvzjm6V4ddX7sgo4JtpaXMYAtS/uMFNEn 63MVESsNer6838ymiwoH0GxMnVZV4/ZDsq/BXZMES80hBb2dDccaQUbLUSZ63xoQiXKE U5iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ijfGNKMB; 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 r1-20020aa7c141000000b00412cab61f15si438033edp.602.2022.03.15.19.12.31; Tue, 15 Mar 2022 19:12:56 -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=ijfGNKMB; 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 S1343531AbiCNWpp (ORCPT + 99 others); Mon, 14 Mar 2022 18:45:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245738AbiCNWp1 (ORCPT ); Mon, 14 Mar 2022 18:45:27 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9506733E27 for ; Mon, 14 Mar 2022 15:44:17 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dmitry.osipenko) with ESMTPSA id 304691F42F21 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1647297856; bh=57pPVtXqzpBgM3B5l+YWQvFoI9KdE36x/Nrz3vurqCU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ijfGNKMBGGVL8SrmZwiIxvgWHi3Nn9d/25jNvJIQpKRdy5OACfnfMcfdmfyCswwOQ UuZI5mRApIXUhY+5G53OfD6OSp7TqkJq3WCd3cF/dVoTckbdA8Y95JYAgfc3yF0k1O X5+j/3g0xh8DOG7VPrWfhHy6WsMotIXnD8z1sZsWPaJ3SeLPz0iD/GWRwHpMa4pg2s X0u2DuaVTkAyYy2kaUZdib+wCQ53zLzcy+hpe3bLwy04ZZt1v1JVM142275ZIMoEed rpQO197BlFOyeRL9AhWOyCaiAPSy1LEcsWVvOQ46i3P/eMl+yMajwmLxmjW9t6WNnZ t7A9e2zhVeqIQ== From: Dmitry Osipenko To: David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Daniel Almeida , Gert Wollny , Tomeu Vizoso , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Steven Price , Alyssa Rosenzweig Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Gustavo Padovan , Daniel Stone , virtualization@lists.linux-foundation.org, Dmitry Osipenko , Dmitry Osipenko Subject: [PATCH v2 5/8] drm/shmem-helper: Correct doc-comment of drm_gem_shmem_get_sg_table() Date: Tue, 15 Mar 2022 01:42:50 +0300 Message-Id: <20220314224253.236359-6-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314224253.236359-1-dmitry.osipenko@collabora.com> References: <20220314224253.236359-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_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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. 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) { -- 2.35.1