Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp399093rdd; Tue, 9 Jan 2024 07:33:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFs7EA6QMPX/KNsYqv05ch6ZlpxypMUIwgAfSOVindzM/QbTJmGD/bo1y7oF4bGsi/WFP0/ X-Received: by 2002:a05:6a20:d403:b0:199:aead:bac8 with SMTP id il3-20020a056a20d40300b00199aeadbac8mr1959943pzb.26.1704814396506; Tue, 09 Jan 2024 07:33:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704814396; cv=none; d=google.com; s=arc-20160816; b=aRjYlbhkopjun8NHRO4Fmjshrsb75DpaiNFLHbCHP658SqWO9YeuKlrpvE5JBjjRXV sq0DASKLRqxChF7VQ1OPFMVqmH33wfhxdT3O8J0ItpeTST8U1pgqKRt7wC1mwTIk5ajZ LKaAC2y08mKuqdDbZzcjENuiAgIEjc8zGyLTmY7iJC7jHJXTVVVtUd8mhQqDUpDtqxbz yV6j+wRwnxhHv0m5ijrsl7z1QodnMaExB8wG5Z12a5CJ0DlpZim1ROrJbRVtFE6VYgzx klvC5m20O5nWrwoUw1RmcV7RUtKPZHFYAzXsfCNhMOAor0VgDAyVrT4ibTIhex65uTBU CKiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=F8I3Nv9FKTpOHBsjhQ9rf60s9dsEhGuM1snjGAzQnEc=; fh=uxFjjXQzcwxb7QcKHoDKUmPmeI7pnNUN9tMwht0aL+o=; b=zGdws5ptaV7QAv14gyKb88wvh+NyjvBgc5n4MU4nlXPQpmdd3wyBYnckqDlnrHWImp i1/LTyIcyJKZApekbRb+TQ++Voi9V3UJDWa7jEdAXXa+BMsNmbaHJx+OTMq7z/czHorq p5oRylHF2O2V/gCnlve09I2oar2gmNgz+6jogjmAOZ860ZROocL0HpiJYpCsWE1OgS01 uPeYZNZUx9A5yod4e//3ghB/zePnNf30pgvAGI2NguV1GplJNa6HxITLLa11GbDeEA3w 455V2QmRoTULdNkKHArD4pzaj4g2dcFbyMPwfVewOhUKS5Ok3sc56ddHNERZr8OyOUgX nuYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Veu3ym9i; spf=pass (google.com: domain of linux-kernel+bounces-21051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21051-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i33-20020a635861000000b005ca4098bf5esi1537123pgm.613.2024.01.09.07.33.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 07:33:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Veu3ym9i; spf=pass (google.com: domain of linux-kernel+bounces-21051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21051-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9A248B23578 for ; Tue, 9 Jan 2024 15:33:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 101653A1AE; Tue, 9 Jan 2024 15:32:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b="Veu3ym9i" Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 400783A1A4 for ; Tue, 9 Jan 2024 15:32:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ffwll.ch Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-6dde3884b92so136312a34.0 for ; Tue, 09 Jan 2024 07:32:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; t=1704814356; x=1705419156; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=F8I3Nv9FKTpOHBsjhQ9rf60s9dsEhGuM1snjGAzQnEc=; b=Veu3ym9inOhrb/N2bO45RDmHxRqO8c8lTo8kdZG3xoU9dqY+YEgP54GoZswDC15RNB uDqnnaduxnCBNZ4DOnrGxdo58Cm0WdB15lSjqxXS7HFth79aSlMfuCAiA4lbQ3LKMBMl /NdFNKmhy8CXoz2pVq5YPpt0jrcZowFCZaucI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704814356; x=1705419156; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=F8I3Nv9FKTpOHBsjhQ9rf60s9dsEhGuM1snjGAzQnEc=; b=S3EsTe98sz5/n5BB9Ub9MR7DoJOFeTxaejE3cxjP7cHDd/kPVA1pxyY5MMcuAUVHh5 YXqzG3ScC3XwgSjIG5eeNnKygiHmok1zWMEBTh+JCKLL9/1R9iDi+Re/nOBiFX2muboA pIFxgQPKB+o6xoRzM51cPmlbB+PJwmzkV4waYt/VIl36TQx+e7+iOPUlbCfDPAFIPkZv QopgnG8veRXYet0YvLOlXvCyCaWUAMzFjSyBD+A8gqvLUlGaDEdv+K+tY2s4ii3Y7xKC AWvAwl7VAnQV0J8WApu8BP/yAbp1jeleyQt0qsnSLsdj4tW6wxpuzfnC5yYeO0/pOvc0 G1Yw== X-Gm-Message-State: AOJu0YwIBS+wH3AMqDMB6TdTzf6ZKwe2CNEDuTq/9PsC2m7xKczP6dh4 Rm7wS0ZB/pa85GO5RiUDIosy6fFFPmRwEYwuLbLNIo2dBGvpAg== X-Received: by 2002:a05:6870:f152:b0:1fb:23ec:3318 with SMTP id l18-20020a056870f15200b001fb23ec3318mr10480037oac.0.1704814356195; Tue, 09 Jan 2024 07:32:36 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240106032957.1195-1-rdunlap@infradead.org> <944ca2e6-23d9-44a2-a58c-4380e9ee575f@suse.de> <10b6ec8a-8b58-43a0-a3f8-c6d354b71ee4@infradead.org> In-Reply-To: From: Daniel Vetter Date: Tue, 9 Jan 2024 16:32:25 +0100 Message-ID: Subject: Re: [PATCH v2] drm/vram-helper: fix kernel-doc warnings To: Randy Dunlap Cc: Thomas Zimmermann , linux-kernel@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , linux-doc@vger.kernel.org, Jonathan Corbet Content-Type: text/plain; charset="UTF-8" On Tue, 9 Jan 2024 at 16:29, Randy Dunlap wrote: > > > > On 1/9/24 07:25, Daniel Vetter wrote: > > On Tue, 9 Jan 2024 at 16:23, Randy Dunlap wrote: > >> > >> > >> > >> On 1/9/24 05:42, Daniel Vetter wrote: > >>> On Tue, 9 Jan 2024 at 13:59, Daniel Vetter wrote: > >>>> > >>>> On Mon, Jan 08, 2024 at 01:10:12PM -0800, Randy Dunlap wrote: > >>>>> Hi Thomas, > >>>>> > >>>>> On 1/8/24 00:57, Thomas Zimmermann wrote: > >>>>>> Hi, > >>>>>> > >>>>>> thanks for the fix. > >>>>>> > >>>>>> Am 06.01.24 um 04:29 schrieb Randy Dunlap: > >>>>>>> Remove the @funcs entry from struct drm_vram_mm to quieten the kernel-doc > >>>>>>> warning. > >>>>>>> > >>>>>>> Use the "define" kernel-doc keyword and an '\' line continuation > >>>>>>> to fix another kernel-doc warning. > >>>>>>> > >>>>>>> drm_gem_vram_helper.h:129: warning: missing initial short description on line: > >>>>>>> * DRM_GEM_VRAM_PLANE_HELPER_FUNCS - > >>>>>>> drm_gem_vram_helper.h:185: warning: Excess struct member 'funcs' description in 'drm_vram_mm' > >>>>>>> > >>>>>>> Signed-off-by: Randy Dunlap > >>>>>>> Cc: David Airlie > >>>>>>> Cc: Daniel Vetter > >>>>>>> Cc: dri-devel@lists.freedesktop.org > >>>>>>> Cc: Maarten Lankhorst > >>>>>>> Cc: Maxime Ripard > >>>>>>> Cc: Thomas Zimmermann > >>>>>>> --- > >>>>>>> v2: Add commit description > >>>>>>> > >>>>>>> base-commit: 610a9b8f49fbcf1100716370d3b5f6f884a2835a > >>>>>>> > >>>>>>> include/drm/drm_gem_vram_helper.h | 3 +-- > >>>>>>> 1 file changed, 1 insertion(+), 2 deletions(-) > >>>>>>> > >>>>>>> diff -- a/include/drm/drm_gem_vram_helper.h b/include/drm/drm_gem_vram_helper.h > >>>>>>> --- a/include/drm/drm_gem_vram_helper.h > >>>>>>> +++ b/include/drm/drm_gem_vram_helper.h > >>>>>>> @@ -126,7 +126,7 @@ drm_gem_vram_plane_helper_cleanup_fb(str > >>>>>>> struct drm_plane_state *old_state); > >>>>>>> /** > >>>>>>> - * DRM_GEM_VRAM_PLANE_HELPER_FUNCS - > >>>>>>> + * define DRM_GEM_VRAM_PLANE_HELPER_FUNCS - \ > >>>>>> > >>>>>> Did something change wrt. doc syntax? I think this used to work without warnings. About this 'define': we don't use is in another docs. Can we leave it out here or is this the new syntax? > >>>>>> > >>>>> > >>>>> There are no doc syntax changes that I know of. This is not > >>>>> new syntax. It has been around since 2014: > >>>>> cbb4d3e6510b ("scripts/kernel-doc: handle object-like macros") > >>>> > >>>> I had no idea this exists, thanks a lot for this TIL :-) > >>>> > >>>> I guess the issue here is that this exists, yay, but it's not documented > >>>> with the other here: > >>>> > >>>> https://dri.freedesktop.org/docs/drm/doc-guide/kernel-doc.html#structure-union-and-enumeration-documentation > >>>> > >>>> I guess a patch to kernel-doc.rst would be great. Adding some kernel-doc > >>>> folks. > >>> > >>> Ok I went ahead and typed that patch (just we don't waste effort), > >>> just waiting for the sphinx build to finish to make sure it looks nice > >>> before I send out the patch. > >>> -Sima > >> > >> I sent one a few days ago: > >> > >> https://lore.kernel.org/lkml/20240107012400.32587-1-rdunlap@infradead.org/ > > > > Could you please also add documentation for function-like macros, > > since that's also missing? With that acked-by: me. > > > > Cheers! > > This is already present: > > Function documentation > ---------------------- > > The general format of a function and function-like macro kernel-doc comment is:: > > /** > * function_name() - Brief description of function. > * @arg1: Describe the first argument. > * @arg2: Describe the second argument. > * One can provide multiple line descriptions > * for arguments. > > > but the way that you did it makes sense also. Ah missed that it includes wording for function-like macros. On your patch as-is: Acked-by: Daniel Vetter -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch