Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp330805rdd; Tue, 9 Jan 2024 05:43:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1SSWmzFfZyPz6gKacn1HyEjxyduGSG9WiRFsb68zIrtJR2WHep4iMB0lOyv5mWFFNHL0a X-Received: by 2002:aa7:9318:0:b0:6d0:8898:11a8 with SMTP id cz24-20020aa79318000000b006d0889811a8mr2928392pfb.40.1704807782721; Tue, 09 Jan 2024 05:43:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704807782; cv=none; d=google.com; s=arc-20160816; b=wVNQM9wa3m69/cqiI1xUHCwfpK8YJ9U2pbd1iRg5lgGtl7S7oaPkjd4VwzSOFGF4H9 EMdv/5bf77P5BtRjbMZGVzmF8buA0gn1ozOTFneAFPZe6gxgsuAeK0N4m9LaalcUacUZ rDJCl6H+C8AL3j+EZy7WxuaF9krHlI+Qe/TN/BruoQOAZR4gPb36Xb/MeOIOErihV+57 N9raGmAEjFJGda/YZWJHXvGePXY5gq+/xQxXb+Wm2WQkIG96BHKEUGuk6WTuVzXNPZoo lr5kMSFWlGO9SEFUU6VSVwM+NgQMcLTudvXcTVYIM8qpXEw0XEWS0+dyx67iW4TBOS5W 6obA== 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=vmRcbAu5bKOJKOBtEpsAYRxyu5lKuff4W580bKuX76Y=; fh=uxFjjXQzcwxb7QcKHoDKUmPmeI7pnNUN9tMwht0aL+o=; b=nqQ33SFG2kvQoDRV2UgWhgO5nooZ+d954AZVvCI9bPITFxn8cfsn+bZbAOQKPK8q+f BUiMFyPEy0BF7UjLLYS9sR1MzCNmFAFAEquV42W3szQNQnsLTPnofE7/gQuPW07Ekfz0 3JugUKVX5d5qmZIuMZbtJql37iwbd6umMeVlVo+GeJEZ3GO7ey1Da0fVDaz9v1kGKS/+ ZU9Yq8vWLdOD2LRuGZ3DeeAELkgV7SZC9uWXrLavGWCYqxuLNaIW/369H1oUFyYPXIK1 ussum6L6dzzQM3FOk+7Od0qKzC5JA/9d7fQgHkMBxcPQBJqQwC2k5M0EDjkLH0fmWaGA LoTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=IOqj1hej; spf=pass (google.com: domain of linux-kernel+bounces-20911-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20911-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 r11-20020aa7844b000000b006d99ed4ae9fsi1450834pfn.8.2024.01.09.05.43.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 05:43:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20911-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=IOqj1hej; spf=pass (google.com: domain of linux-kernel+bounces-20911-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20911-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 6DD1DB237F3 for ; Tue, 9 Jan 2024 13:42:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D05A039879; Tue, 9 Jan 2024 13:42:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b="IOqj1hej" Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) (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 A836239842 for ; Tue, 9 Jan 2024 13:42:32 +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-f45.google.com with SMTP id 586e51a60fabf-205dc844e5eso617050fac.0 for ; Tue, 09 Jan 2024 05:42:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; t=1704807751; x=1705412551; 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=vmRcbAu5bKOJKOBtEpsAYRxyu5lKuff4W580bKuX76Y=; b=IOqj1hejew4Hu+5SDH9AS9F3nj+AqiLgCprcdh4yKqtIXrEWQYmtWxDls44qRhLN1O xxRM5sifX/QjUNZaLxDxYuWRC3rHXRQhZU5R63bHqRhkYmECWC8lXyHuSF3/3WU7bY5f qKMt2F/05r2Y0N4+HsNeppl/32h7TfReaPMGE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704807751; x=1705412551; 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=vmRcbAu5bKOJKOBtEpsAYRxyu5lKuff4W580bKuX76Y=; b=NzKp5gkX0lJnyhfma4LwUHNkuRbV9TkbYtgSySxMAStUBpz01YuI8GpSsJc+kyp1sC Z8DIiWLkFh83DVF0LWdlul0EfDZgfFzOms7Edphrrizke6SO0Fsnw6VU94YQqiuMq/Mn D9l3+DygVtHfpneVMksQuxnBFmFr5zDVPeCmXyxXP5yO5e6sQlExNE8gmPMdOtGW7D5W 6BHgPweeJNQMRXYheT03QtxHGbuYW9TDFopPfE5N7ReEIJK3ECKnfZOmB2CVgZ5KELY+ sQNr3N5ijRE3rHSd8a9hL1uVWSljP9WL4W3eiYD+FM9VKp1JzQumxhG7nBNLG+T0/SDg YtqQ== X-Gm-Message-State: AOJu0YzUYUwK2XrT6YdxrjUE8rsAUXEGYCC06VFElYgr0eZb5+EVTnRg 4x4sipGjxrhYteznFVPBzYX1aTpEixgn0z+txkBlz/9prY5vQw== X-Received: by 2002:a05:6871:7a1:b0:203:fc17:ebe3 with SMTP id o33-20020a05687107a100b00203fc17ebe3mr9182168oap.1.1704807751608; Tue, 09 Jan 2024 05:42:31 -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> In-Reply-To: From: Daniel Vetter Date: Tue, 9 Jan 2024 14:42:19 +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 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 -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch