Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1208756lqp; Fri, 22 Mar 2024 08:23:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUv1xppriYdbvnvUNTNJ3kIVYhzQYxON2XfdPWi992jCNALgSvLUZh4tJtA2ciMazu2OcoE9ZCOteZ6KwzBtiPmV5R6Zo1FwLsMdbworA== X-Google-Smtp-Source: AGHT+IEsswjkg6J4L+QQIFXxUd590UnWVhgbcMrvdQM3zw7IBvOAuhPYI8x30m5XHlevtqRa1opR X-Received: by 2002:a05:622a:446:b0:431:24c5:9dd0 with SMTP id o6-20020a05622a044600b0043124c59dd0mr2112097qtx.29.1711120986558; Fri, 22 Mar 2024 08:23:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711120986; cv=pass; d=google.com; s=arc-20160816; b=MxcyW0F8kzYwS7rH9Y+7Y4IHsCP0o0PNHUaNZTkwkOesP/MZi8+GGJPRZix9+SOn+u eblE090m6hfC9SIO1cdfQOqJF2BcG5c8R+pCp/561EvUnwyQka7I7RsV9Q7syQzHNMfC XnpAefc2jKKOLsNeBeiddTGzebs7nUmXR97k6EVZNZexlrXrmTB6cz4o4rBTn2NsacBO 5Nhz1pHfijue9QTLSq6jUEoWfj28jxtEn+JvHsC/O85BntSFvOSY0mv1vqLgv86PLvp/ Aebyd878a/rKcR8nC1uNf28hP3MNs0QEUyiAxHBmOCCb2kb+xLkkci3xys3ABx97iQA/ XKVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=n14/GAey1MVQQZ9496BWTZLRI/CaUeVuyvNjQAWmb5w=; fh=rzclHn2et2grMWGomild28NUOomqtKlWbP/3p0oiIxk=; b=Xsv5l+2MNB21Pf3WDCktQInFwhqOeE+Jo3zewjPR6jm9JQ6cYBnb8vEYrVtiLO+7H5 9XXuV8jDc2bEIIlpUpUN4PwvEHHFsH8EK6OWo/gvYqGbXqZ3MgMhpYRFEgwoIUtKLlKh aXQf+qPy2VQlS5ybSzBV0d0R2gRIcpFZOz2MGCBXZo55s5d/dN9klMinf4uacaOqRo4R atxbej8/6pQ8/NVRdh68fT5syFdRmQ/va9qZ+cPnGkKUXWHbZfjDzUaGVlOmHVqnoLDx 99YXc6z5lRUgtdU3sIkHQNAPaY9QSHWs3oZ5PJXIHQoTY9atgobSJyzoETt43Qcg3MNw q7bQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=xvYY0svq; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-111693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111693-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h10-20020ac8584a000000b0043135d5d8f0si881587qth.68.2024.03.22.08.23.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 08:23:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=xvYY0svq; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-111693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111693-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 473D41C2142F for ; Fri, 22 Mar 2024 15:23:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BCD64DA0F; Fri, 22 Mar 2024 15:23:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="xvYY0svq" Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC7464D108 for ; Fri, 22 Mar 2024 15:22:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711120980; cv=none; b=FKjUPwIn2VjMezNk6HYNFppFNWgUF4ghJnEtgNE8chLUSZAUTBLd9VglsTSotpEChiSxl6e6gvbf1sACJrQ+cvFzRWuho1OSl91SF3Sftu5dp4CEa5w+4gyZSrslnwkUGgLmiSTK5Nk7E4k6AUzJoZjPe2J6cuGU0hFQXj/E9Mw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711120980; c=relaxed/simple; bh=EOf9fJkdbPuq6XhIuB6pzBwFW9szDBA1ooBn1no2D/g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UVPKkdxKORdnM2xtvSijLYSTrlxSkFUD+o6TaLIMThyhEseRrHDfDxi7osrnenGXdZwsH8xj/MFn/a5Z24CYoOEIhNGbENWnNfIwd2w8TVjfoAzmZV+Dd69shJtGM3ctPILltgMvgq6NcVLKWOIz4vn13sPDVBh7QQFuHpZUA3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=xvYY0svq; arc=none smtp.client-ip=91.218.175.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: <9063f7cd-e922-484f-a2ac-cf84c4f47100@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1711120976; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n14/GAey1MVQQZ9496BWTZLRI/CaUeVuyvNjQAWmb5w=; b=xvYY0svqy/qpIv8OVXzIJyTXGPfIQ8a+wpEAnw9O+QTGZHAcRZMZBQVKKx6XXX7TSoVUlC GnkjohFYMbvlftzsyBSuC9aWBUWd2vLYgSf5Cx+aALEGQiIaIG338DTeE20B5GvyViTxIy r3J597Jj4gHupcJDt3bMrHISFxO9h/4= Date: Fri, 22 Mar 2024 11:22:52 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v2 1/8] drm: xlnx: Fix kerneldoc Content-Language: en-US To: Tomi Valkeinen , Randy Dunlap Cc: Michal Simek , David Airlie , linux-kernel@vger.kernel.org, Daniel Vetter , linux-arm-kernel@lists.infradead.org, Laurent Pinchart , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org References: <20240319225122.3048400-1-sean.anderson@linux.dev> <20240319225122.3048400-2-sean.anderson@linux.dev> <2c38ac1c-cc0e-43b3-86d3-5b6a2f00f9e7@linux.dev> <19d6da67-f9a6-4e01-a956-3b60f0ebf769@ideasonboard.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson In-Reply-To: <19d6da67-f9a6-4e01-a956-3b60f0ebf769@ideasonboard.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 3/22/24 01:50, Tomi Valkeinen wrote: > On 21/03/2024 17:33, Sean Anderson wrote: >> On 3/20/24 02:05, Randy Dunlap wrote: >>> >>> >>> On 3/19/24 22:42, Tomi Valkeinen wrote: >>>> On 20/03/2024 00:51, Sean Anderson wrote: >>>>> Fix a few errors in the kerneldoc. Mostly this addresses missing/renamed >>>>> members. >>>>> >>>>> Signed-off-by: Sean Anderson >>>>> --- >>>>> >>>>> Changes in v2: >>>>> - New >>>>> >>>>> drivers/gpu/drm/xlnx/zynqmp_disp.c | 6 +++--- >>>>> drivers/gpu/drm/xlnx/zynqmp_dpsub.h | 1 + >>>>> drivers/gpu/drm/xlnx/zynqmp_kms.h | 4 ++-- >>>>> 3 files changed, 6 insertions(+), 5 deletions(-) >>>>> >>>>> diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers/gpu/drm/xlnx/zynqmp_disp.c >>>>> index 407bc07cec69..f79bf3fb8110 100644 >>>>> --- a/drivers/gpu/drm/xlnx/zynqmp_disp.c >>>>> +++ b/drivers/gpu/drm/xlnx/zynqmp_disp.c >>>>> @@ -128,9 +128,9 @@ struct zynqmp_disp_layer { >>>>> * struct zynqmp_disp - Display controller >>>>> * @dev: Device structure >>>>> * @dpsub: Display subsystem >>>>> - * @blend.base: Register I/O base address for the blender >>>>> - * @avbuf.base: Register I/O base address for the audio/video buffer manager >>>>> - * @audio.base: Registers I/O base address for the audio mixer >>>>> + * @blend: Register I/O base address for the blender >>>>> + * @avbuf: Register I/O base address for the audio/video buffer manager >>>>> + * @audio: Registers I/O base address for the audio mixer >>>> >>>> Afaics, the kernel doc guide: >>>> >>>> https://docs.kernel.org/doc-guide/kernel-doc.html#nested-structs-unions >>>> >>>> says that the current version is correct. Or is the issue that while, say, 'base' is documented, 'blend' was not? >>> >>> Hi, >>> >>> I would do it more like so: >>> >>> --- >>> drivers/gpu/drm/xlnx/zynqmp_disp.c | 3 +++ >>> 1 file changed, 3 insertions(+) >>> >>> diff -- a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers/gpu/drm/xlnx/zynqmp_disp.c >>> --- a/drivers/gpu/drm/xlnx/zynqmp_disp.c >>> +++ b/drivers/gpu/drm/xlnx/zynqmp_disp.c >>> @@ -128,8 +128,11 @@ struct zynqmp_disp_layer { >>> * struct zynqmp_disp - Display controller >>> * @dev: Device structure >>> * @dpsub: Display subsystem >>> + * @blend: blender iomem info >>> * @blend.base: Register I/O base address for the blender >>> + * @avbuf: audio/video buffer iomem info >>> * @avbuf.base: Register I/O base address for the audio/video buffer manager >>> + * @audio: audio mixer iomem info >>> * @audio.base: Registers I/O base address for the audio mixer >>> * @layers: Layers (planes) >>> */ >>> >>> >>> but in my testing, Sean's way or my way result in no warning/errors. >>> >> >> The specific errors are: >> >> ../drivers/gpu/drm/xlnx/zynqmp_disp.c:151: warning: Function parameter or struct member 'blend' not described in 'zynqmp_disp' >> ../drivers/gpu/drm/xlnx/zynqmp_disp.c:151: warning: Function parameter or struct member 'avbuf' not described in 'zynqmp_disp' >> ../drivers/gpu/drm/xlnx/zynqmp_disp.c:151: warning: Function parameter or struct member 'audio' not described in 'zynqmp_disp' >> >> I don't see the need to document a single-member struct twice. Actually, > > But if only the struct is documented, then we're documenting the wrong thing. A tool showing to the user what blend.base is would miss that documentation. Are there any such tools? kerneldoc e.g. just prints the definition and then a list of members with documentation. So from the user's perspective the only thing which changes is the name. --Sean >> maybe it would be better to just lift the .base member to live in >> zynqmp_disp. But I think that would be better in another series. > > Yes, there's not much point with the structs. > > Tomi >