Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp394654rdd; Tue, 9 Jan 2024 07:26:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtSkZwvJf9lTs16kZE3f0Ws4p4qizdq1GZ4fiNsyDi1dOaH3hGUVd9g15PXeUsYoUcCqH9 X-Received: by 2002:a05:6a21:3385:b0:199:8e8e:1809 with SMTP id yy5-20020a056a21338500b001998e8e1809mr2728635pzb.0.1704813979763; Tue, 09 Jan 2024 07:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704813979; cv=none; d=google.com; s=arc-20160816; b=UsfyxU6HD3zz52g2HYYVwlONHgkA9FNY+v+INWwB5JLoW3T3Hjz/7ophEuUtXb9iya tC8xCpX0ibwpcUAuVqyS49KcpxM7WC7EoFT1NGUR2MsW0Qqc3pb6lkme1n2uEM8dw9lJ ICNkcY9aGnQ9Vl5Kf5vMG46+5sozrk1XBdGC9LytHoX2KbtRQfapQVIH36BEjO2L5VIL tSpk38KldSJxlpN/GtPPrDNZlIpZIQzVI64dLW7HrAaIiMP4FxbxJMc5jLmKnOFQDhcc tq215Yl9SbE+tJ7KqIbq1+7YK1ROiNWCiGnBKVuxe00EverxsbXFohfNYTk12PBAWMqA 4ncA== 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=LrLYI16OgzxKgYJ1jGYpx/Mfzuzfk7qGCLrN1GbNKCw=; fh=uxFjjXQzcwxb7QcKHoDKUmPmeI7pnNUN9tMwht0aL+o=; b=VWiylCYPnSy6xlyWNxta8URyIRXa4SckKYcyD2N/GVaT2XMEpH5be72nPDsIr2TwRy y4d9qttWX0NZVlNhGIggx4EXXGgYgXV6TE4zDvv3/8+MK+uX3j/wE93y8baWW36cmpd+ huek/2nvZ5aRibFTkb42kXzAbjM6cEdW2iawHn8rvFjkAGybue+wJNsuPVoJqFHojn7T Rm/pkQ8l1U/4jfADW2eXPoCt/BaMldJ19IYrCHghXnwRHgsHY/4rBUxjhmvlfjUbllkH SpTz6ruqY8ApLvd+w0N8mQd9bOVA3CZRJG6sFTJ2aSxdu0QEtO2dCVs9nZheyEPPZtCZ +pnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=EioTJ+sw; spf=pass (google.com: domain of linux-kernel+bounces-21047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21047-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ay20-20020a056a00301400b006d9e61679b9si1628828pfb.61.2024.01.09.07.26.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 07:26:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=EioTJ+sw; spf=pass (google.com: domain of linux-kernel+bounces-21047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21047-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6ECB12856FD for ; Tue, 9 Jan 2024 15:26:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEEA93A1AA; Tue, 9 Jan 2024 15:26:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b="EioTJ+sw" Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) (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 08C563A1A1 for ; Tue, 9 Jan 2024 15:26:09 +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-oa1-f43.google.com with SMTP id 586e51a60fabf-2057f388b2dso632255fac.1 for ; Tue, 09 Jan 2024 07:26:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; t=1704813969; x=1705418769; 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=LrLYI16OgzxKgYJ1jGYpx/Mfzuzfk7qGCLrN1GbNKCw=; b=EioTJ+swFa4R+I3gshoPIRJDwZIyeh06wIezGDjbaO5XLAvbn5fhf9VUGOVoBjAce7 l18F+rGeAyU4bZXGFzJ3LS3sV2LUkOM6S9ylsYryKPT0CHeNJJ8yVzf3P2YJ++opMjKj ytgFCElk7/M8oM6xA18Y/z6Xs7LKee11hPJmo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704813969; x=1705418769; 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=LrLYI16OgzxKgYJ1jGYpx/Mfzuzfk7qGCLrN1GbNKCw=; b=uMUtWDRBtMDORObNF4H+p7yK9QHnfqmjneCYMfD3lMe/RiFSLuPNZ5WMgHkWQvoJ5X ouE71oter8a6+zk8lvuMGu0w8zBcwl3aho5mEhROXrZCKgWDObNkI9aFCiuMTGeUJw3N aKhU7EczmdRxO49NYvszar1HUQ1EAYX0qNK9lEQ/PFAmnLfSyZKkhuurvE2w1c5G64nP erieNsdlFk3GIify/IQ07pX0O+invLbuyDNNZNAm+uXmwfJWZDL+abqM0YUl7EN/uR9J I7fG0AVhwMbPRMDEuLzj16/ngMtObmo2IpG33fspAYMg3Mvabq2KIk3WQd+5cNG7M+AG N9kg== X-Gm-Message-State: AOJu0Yz5Pokp3w3sUaUtKIW9MtT+M4HZMZffxwL359YbnhX8wRK35OXt +p26gEMrXwaEn9tXi+1D1rr38Lf4r6AFK3UQoirfddleDaYmLg== X-Received: by 2002:a05:6870:e256:b0:206:16d9:e76d with SMTP id d22-20020a056870e25600b0020616d9e76dmr8562714oac.5.1704813968983; Tue, 09 Jan 2024 07:26:08 -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: <10b6ec8a-8b58-43a0-a3f8-c6d354b71ee4@infradead.org> From: Daniel Vetter Date: Tue, 9 Jan 2024 16:25:57 +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: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! -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch