Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3792058pxb; Tue, 19 Apr 2022 09:54:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJMZlRVGgzUUn/uhPvcS+e+B3b+j2G7vUGaXqNbs9Op5rSc/b5xt1bZpuZ9/yizmoqN5lI X-Received: by 2002:a17:902:7442:b0:158:a253:b4d5 with SMTP id e2-20020a170902744200b00158a253b4d5mr16512666plt.94.1650387247064; Tue, 19 Apr 2022 09:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650387247; cv=none; d=google.com; s=arc-20160816; b=wvg3fSF1g//hXlpZMhJX0LnTR7m5rkTw24k1Bkh2pNYci/rvn7XNcUwnFu7WhMDZeV eZUgniYE985z7tlDm96FW1Yxay+4igGQp+IaZGrGypOnK9TnwH2vTMLtRHLEakHYOfc9 pCKkUTVJU8lp8q8nx6q5whly9MB+XT2GTVftbawAj5i+6lWOO5qYSZjxcBX3bfbhp0Ge 0263tpvEnKXz3OcBsKuN0rrtivrCyirLpEeICZPSx1YupuUhIzdft8+MU8ij2/mGfAwg gBD04Xn9iP42sGmc7Wb0MpJ9+ZZ8hQafun+P6sgV+MN+37v9f5e/gjVw3WLAR7TX1Svi T4VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4vCKj901ZeJ53vcDy4b+JHCU11Tsx0xws3NceMwivQ4=; b=utI33JEvSQP2NHoD8qMVPOzfIjwf2+0ec4i+d+Iv44uxX5/CI3MLu/+DCSJFtQVdpi GWtyghBMtHXa1/zFASJhMqMtHneQEMpCBrXzKvHrgK9IMCK7Pz9BtU1wEdg7AExDeKPA ZIdsXVc2S254dPW/6NWmIHWmGLrIOlC4vMla+QXTEGejYVRU0TOLXS+aqHHTIoMQjsm1 P1G6BjoRhvs4j0aNzQxcbieFpofV8BXj4Az1VK1j6GYGVeU+JmiEOwWxYWJUrxqGl27v TaIDWmmUjl/qqwdYhkfgzGSqenbFKPxivWHRXVxIHTj7hx6++68TK6umBgzxZYWywS2m 5J3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WA4NVuAj; 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 g3-20020a655943000000b003816043f141si12125015pgu.822.2022.04.19.09.53.49; Tue, 19 Apr 2022 09:54:07 -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=WA4NVuAj; 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 S1347730AbiDRTpu (ORCPT + 99 others); Mon, 18 Apr 2022 15:45:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347724AbiDRTpt (ORCPT ); Mon, 18 Apr 2022 15:45:49 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8410024968 for ; Mon, 18 Apr 2022 12:43:09 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dmitry.osipenko) with ESMTPSA id 90E4C1F41C3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1650310988; bh=e3aXhhV0iMbSTBQMtpX2+7/OpY3JByN6nT0sgNfy5eo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=WA4NVuAj0cyf/adVZpyR3XPEfwqgPhrzLAbhFfdZ/CinSZF97KjZJlY+8CmMSQ1qp rz0ySyDia/c9dEvKixvPeeWbcTKuGhvZXpgiwNJNstgRssmJ+jfWaRuzUfveZgwan5 5lnLlEaj6uqh5m8DHyyVeqVEk0Qgigr4NG5/4nEiBomB56hAIa+uBVLdkiK+JAfNnD x+S9+U4j6V9J3+8wxQUFLlHRR7o/Zq1EuSPiFUcGV4/8fkUuMors8F2UExujcMVm/y HBn3KRF8mfjuvaPO5ZQXzIguoHfErPiYd5rFd6/wppwnDBlF05URRJOvG9HfzrFHFN jscGbrCLtAOew== Message-ID: <33625122-6aad-86c1-444a-07144325835c@collabora.com> Date: Mon, 18 Apr 2022 22:43:03 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v4 09/15] drm/shmem-helper: Correct doc-comment of drm_gem_shmem_get_sg_table() Content-Language: en-US To: Thomas Zimmermann , David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Daniel Almeida , Gert Wollny , Gustavo Padovan , Daniel Stone , Tomeu Vizoso , Maarten Lankhorst , Maxime Ripard , Rob Herring , Steven Price , Alyssa Rosenzweig , Rob Clark , Emil Velikov , Robin Murphy Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Dmitry Osipenko References: <20220417223707.157113-1-dmitry.osipenko@collabora.com> <20220417223707.157113-10-dmitry.osipenko@collabora.com> From: Dmitry Osipenko In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 4/18/22 21:25, Thomas Zimmermann wrote: > Hi > > Am 18.04.22 um 00:37 schrieb Dmitry Osipenko: >> 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 | 5 +++-- >>   1 file changed, 3 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/gpu/drm/drm_gem_shmem_helper.c >> b/drivers/gpu/drm/drm_gem_shmem_helper.c >> index 8ad0e02991ca..30ee46348a99 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. > > ', or an ERR_PTR()-encoded errno code on failure' > >>    */ >>   struct sg_table *drm_gem_shmem_get_sg_table(struct >> drm_gem_shmem_object *shmem) >>   { >> @@ -688,7 +688,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 >> ERR_PTR()-encoded > > ', or an' before ERR_PTR > > With the improved grammar: > > Acked-by: Thomas Zimmermann Thanks, something went wrong with these comments in this patch and I haven't noticed that :)