linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Maxime Ripard <mripard@kernel.org>
Cc: "Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"David Airlie" <airlied@gmail.com>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Sandy Huang" <hjc@rock-chips.com>,
	"Heiko Stübner" <heiko@sntech.de>, "Chen-Yu Tsai" <wens@csie.org>,
	"Jernej Skrabec" <jernej.skrabec@gmail.com>,
	"Samuel Holland" <samuel@sholland.org>,
	"Andy Yan" <andy.yan@rock-chips.com>,
	"Hans Verkuil" <hverkuil@xs4all.nl>,
	"Sebastian Wick" <sebastian.wick@redhat.com>,
	"Ville Syrjälä" <ville.syrjala@linux.intel.com>,
	dri-devel@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
	linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev,
	"Dave Stevenson" <dave.stevenson@raspberrypi.com>,
	"Sui Jingfeng" <sui.jingfeng@linux.dev>,
	"Dmitry Baryshkov" <dmitry.baryshkov@linaro.org>,
	"Pekka Paalanen" <pekka.paalanen@collabora.com>,
	"Maíra Canal" <mcanal@igalia.com>, "Andy Yan" <andyshrk@163.com>
Subject: Re: [PATCH v15 00/29] drm/connector: Create HDMI Connector infrastructure
Date: Mon, 03 Jun 2024 12:28:51 +0300	[thread overview]
Message-ID: <87zfs2cr3g.fsf@intel.com> (raw)
In-Reply-To: <20240603-nippy-ludicrous-caracara-e02e3c@houat>

On Mon, 03 Jun 2024, Maxime Ripard <mripard@kernel.org> wrote:
> Hi Jani,
>
> On Fri, May 31, 2024 at 09:43:16PM GMT, Jani Nikula wrote:
>> On Mon, 27 May 2024, Maxime Ripard <mripard@kernel.org> wrote:
>> > Let me know what you think,
>> 
>> Sorry to report that this series generates a bunch of kernel-doc
>> warnings in include/drm/drm_connector.h. Documenting nested struct
>> members doesn't work as smoothly as you'd expect:
>>
>> ../include/drm/drm_connector.h:1138: warning: Excess struct member 'broadcast_rgb' description in 'drm_connector_state'
>> ../include/drm/drm_connector.h:1138: warning: Excess struct member 'infoframes' description in 'drm_connector_state'
>> ../include/drm/drm_connector.h:1138: warning: Excess struct member 'avi' description in 'drm_connector_state'
>> ../include/drm/drm_connector.h:1138: warning: Excess struct member 'hdr_drm' description in 'drm_connector_state'
>> ../include/drm/drm_connector.h:1138: warning: Excess struct member 'spd' description in 'drm_connector_state'
>> ../include/drm/drm_connector.h:1138: warning: Excess struct member 'vendor' description in 'drm_connector_state'
>> ../include/drm/drm_connector.h:1138: warning: Excess struct member 'is_limited_range' description in 'drm_connector_state'
>> ../include/drm/drm_connector.h:1138: warning: Excess struct member 'output_bpc' description in 'drm_connector_state'
>> ../include/drm/drm_connector.h:1138: warning: Excess struct member 'output_format' description in 'drm_connector_state'
>> ../include/drm/drm_connector.h:1138: warning: Excess struct member 'tmds_char_rate' description in 'drm_connector_state'
>> ../include/drm/drm_connector.h:2112: warning: Excess struct member 'vendor' description in 'drm_connector'
>> ../include/drm/drm_connector.h:2112: warning: Excess struct member 'product' description in 'drm_connector'
>> ../include/drm/drm_connector.h:2112: warning: Excess struct member 'supported_formats' description in 'drm_connector'
>> ../include/drm/drm_connector.h:2112: warning: Excess struct member 'infoframes' description in 'drm_connector'
>> ../include/drm/drm_connector.h:2112: warning: Excess struct member 'lock' description in 'drm_connector'
>> ../include/drm/drm_connector.h:2112: warning: Excess struct member 'audio' description in 'drm_connector'
>> 
>> Noticed this when I was rebasing [1]. Having that merged would find
>> issues in headers at build time instead of 'make htmldocs'.
>> 
>> In the mean time, this is the quick reproducer:
>> 
>> $ scripts/kernel-doc -none include/drm/drm_connector.h
>
> Thanks for the report and the reproducer. I have to admit I have no idea
> how to fix it, do you have a suggestion?

Some of them can be fixed by adding the parent struct name, like so:

-                * @broadcast_rgb: Connector property to pass the
+                * @hdmi.broadcast_rgb: Connector property to pass the

but I think even that falls apart at some point. :(

In the end might be easier to separate the struct definitions to reduce
nesting.


BR,
Jani.


-- 
Jani Nikula, Intel

  reply	other threads:[~2024-06-03  9:29 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-27 13:57 [PATCH v15 00/29] drm/connector: Create HDMI Connector infrastructure Maxime Ripard
2024-05-27 13:57 ` [PATCH v15 01/29] drm/connector: Introduce an HDMI connector initialization function Maxime Ripard
2024-08-01  9:08   ` Thomas Zimmermann
2024-05-27 13:57 ` [PATCH v15 02/29] drm/tests: connector: Add tests for drmm_connector_hdmi_init Maxime Ripard
2024-05-27 13:57 ` [PATCH v15 03/29] drm/connector: hdmi: Create an HDMI sub-state Maxime Ripard
2024-05-27 13:57 ` [PATCH v15 04/29] drm/connector: hdmi: Add output BPC to the connector state Maxime Ripard
2024-05-27 13:57 ` [PATCH v15 05/29] drm/mode_object: Export drm_mode_obj_find_prop_id for tests Maxime Ripard
2024-05-27 13:57 ` [PATCH v15 06/29] drm/tests: Add output bpc tests Maxime Ripard
2024-05-27 15:14   ` [v15,06/29] " Sui Jingfeng
2024-05-27 15:27   ` Sui Jingfeng
2024-05-27 13:57 ` [PATCH v15 07/29] drm/connector: hdmi: Add support for output format Maxime Ripard
2024-05-27 13:57 ` [PATCH v15 08/29] drm/tests: Add output formats tests Maxime Ripard
2024-05-27 13:57 ` [PATCH v15 09/29] drm/display: hdmi: Add HDMI compute clock helper Maxime Ripard
2024-05-28  1:00   ` Dmitry Baryshkov
2024-05-27 13:57 ` [PATCH v15 10/29] drm/tests: Add HDMI TDMS character rate tests Maxime Ripard
2024-05-28  1:01   ` Dmitry Baryshkov
2024-05-27 13:58 ` [PATCH v15 11/29] drm/connector: hdmi: Calculate TMDS character rate Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 12/29] drm/tests: Add TDMS character rate connector state tests Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 13/29] drm/connector: hdmi: Add custom hook to filter TMDS character rate Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 14/29] drm/tests: Add HDMI connector rate filter hook tests Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 15/29] drm/connector: hdmi: Compute bpc and format automatically Maxime Ripard
2024-05-28  1:01   ` Dmitry Baryshkov
2024-05-27 13:58 ` [PATCH v15 16/29] drm/tests: Add HDMI connector bpc and format tests Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 17/29] drm/doc: Remove unused Broadcast RGB Property Maxime Ripard
2024-05-28  1:02   ` Dmitry Baryshkov
2024-05-27 13:58 ` [PATCH v15 18/29] drm/connector: hdmi: Add Broadcast RGB property Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 19/29] drm/tests: Add tests for " Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 20/29] drm/connector: hdmi: Add RGB Quantization Range to the connector state Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 21/29] drm/tests: Add RGB Quantization tests Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 22/29] drm/connector: hdmi: Add Infoframes generation Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 23/29] drm/tests: Add infoframes test Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 24/29] drm/connector: hdmi: Create Infoframe DebugFS entries Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 25/29] drm/vc4: hdmi: Switch to HDMI connector Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 26/29] drm/vc4: tests: Remove vc4_dummy_plane structure Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 27/29] drm/vc4: tests: Convert to plane creation helper Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 28/29] drm/rockchip: inno_hdmi: Switch to HDMI connector Maxime Ripard
2024-05-27 13:58 ` [PATCH v15 29/29] drm/sun4i: hdmi: " Maxime Ripard
2024-05-28  8:34 ` [PATCH v15 00/29] drm/connector: Create HDMI Connector infrastructure Maxime Ripard
2024-05-31 18:43 ` Jani Nikula
2024-06-03  9:19   ` Maxime Ripard
2024-06-03  9:28     ` Jani Nikula [this message]
2024-07-31 14:56 ` Hans Verkuil
2024-08-01  8:23   ` Maxime Ripard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zfs2cr3g.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=airlied@gmail.com \
    --cc=andy.yan@rock-chips.com \
    --cc=andyshrk@163.com \
    --cc=corbet@lwn.net \
    --cc=daniel@ffwll.ch \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=heiko@sntech.de \
    --cc=hjc@rock-chips.com \
    --cc=hverkuil@xs4all.nl \
    --cc=jernej.skrabec@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mcanal@igalia.com \
    --cc=mripard@kernel.org \
    --cc=pekka.paalanen@collabora.com \
    --cc=samuel@sholland.org \
    --cc=sebastian.wick@redhat.com \
    --cc=sui.jingfeng@linux.dev \
    --cc=tzimmermann@suse.de \
    --cc=ville.syrjala@linux.intel.com \
    --cc=wens@csie.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).