Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp243018rdb; Mon, 22 Jan 2024 02:45:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHum7tiE5BiqwXO1Gra/t2GlpQFDkslxF1KooJ7lMynmJi4+Y1GhdQtb6Pjxgj17OMPEsuR X-Received: by 2002:a17:906:7f8d:b0:a30:84a7:4201 with SMTP id f13-20020a1709067f8d00b00a3084a74201mr215787ejr.129.1705920306734; Mon, 22 Jan 2024 02:45:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705920306; cv=pass; d=google.com; s=arc-20160816; b=wndJ76aus3k9O/1Zpd+TFnaYKrwittjA96ALzRPvltkddEAGBmK6h+YmsTDHvIbedr 1vPHhgXaHuXCka5i5kfuTCmmPlqK71+aTMiCggDDlbsLwfPeWIYuTNhg7YJyTQuq+hV8 Y5rSU8/Awg/FIr1TPP4NaAv12JRBtuC9Wg6ntg47vij3m9RV528jJiFNCOwAmiN+jHFX hElSaK0YfTV9rdqO2qykPIGW+Z6AdLgMhq1TZ/JqSnY/oyt08Zx0j1Qlac/pyQCH2K+3 DqiuXb23IW2IEXl/gkiIT2L0uLtcxWBVkNVXzETrQCXofG8lc3ZQS86sdLNL9LVa2FW+ YysQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=l2+0NyYqn5nTz7cw2qGGcM6raagpCyaTIMsr9KkcHxs=; fh=yhliK9ttytgeu2r+i91rIfRAKFnfUz2l8qEC0HEa2Og=; b=UV1vYzBEyRWnuBYke9PdcPUVpkgVUBsAW0y2ygnTfm6CU1OXXq8WWQLopQlbR/dHSA 53hrS9GUWpgJuM5s4XB7yxKyCbirlVWhObJsKrKJgovt74n5EuRQHs/dYkdmx70b3idg 2pfTg+qVAncl12nir/CljKFGYMlydeCsCh/aFKFUbXxiN2DDc+ecqK9mQZtWLVyquvzC bswwATRjB57dOuc6hw1w9sHRlcMzFDJr6A3m0I+LCkF6pi3TfdQ/2rZ4Mr7TUfd/7kWE fZE2fdaNcpqHHfJ+TY4OfRyywZmzC6GkRxUlpXro8UeWWBcPctXxjBbsFl2mHYDm0TG/ 30Jg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-32777-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32777-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i10-20020a1709061cca00b00a2cdb766a38si9305970ejh.249.2024.01.22.02.45.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 02:45:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32777-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-32777-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32777-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7ED751F25589 for ; Mon, 22 Jan 2024 10:45:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 591953A27B; Mon, 22 Jan 2024 10:44:59 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10D703A1BF; Mon, 22 Jan 2024 10:44:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705920298; cv=none; b=Q+bqxO9kfjpjL4wuoAEUFGWCRxa3wiZx9ivZiQpnNijP+yvVfqj1b/N/ouDWx44Qf4NbTxzlHKsSaVEOBxQq6wKSzYpP7dqHAOZT/jzNXZ0ukIj41XTvqIx945+DVn0nhnY/5s1roSQQfnahphWe9wfh6jXZEV3vm+ETtQ9r1PQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705920298; c=relaxed/simple; bh=Oo9JvPel0eUrGXufOdPEuMNLinBUN4aQEBFsMu9+TLg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=osOhFdQwB2DSsOLBvF0/uec105GAwR8aH5mqJIB1LTr0y7DLWmfqss1cuDe8f0pPtKBJhvPZFqIm2z+j7zSdyGc6JfV3zlhHPF0WADDBSARcrVx6B6ZXYqzE/NFDOGqG5FseMJtek7Far0qTey6hSBthbrQVpJ090D9NhPxCk4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 960351FB; Mon, 22 Jan 2024 02:45:42 -0800 (PST) Received: from donnerap.manchester.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2247F3F5A1; Mon, 22 Jan 2024 02:44:55 -0800 (PST) Date: Mon, 22 Jan 2024 10:44:52 +0000 From: Andre Przywara To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, Emilio =?UTF-8?B?TMOzcGV6?= , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH] clk: sunxi: a20-gmac: fix kernel-doc warnings Message-ID: <20240122104452.2fc420ac@donnerap.manchester.arm.com> In-Reply-To: <20240121051837.17564-1-rdunlap@infradead.org> References: <20240121051837.17564-1-rdunlap@infradead.org> Organization: ARM X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 20 Jan 2024 21:18:35 -0800 Randy Dunlap wrote: > Move the function kernel-doc comment to be immediately before the > function implementation, then add a function parameter description > to prevent kernel-doc warnings: >=20 > clk-a20-gmac.c:43: warning: expecting prototype for sun7i_a20_gmac_clk_se= tup(). Prototype was for SUN7I_A20_GMAC_GPIT() instead > clk-a20-gmac.c:53: warning: Function parameter or struct member 'node' no= t described in 'sun7i_a20_gmac_clk_setup' Confirmed to be just the move, plus the added parameter description. Reviewed-by: Andre Przywara Cheers, Andre =20 > Signed-off-by: Randy Dunlap > Cc: Emilio L=C3=B3pez > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: linux-clk@vger.kernel.org > Cc: Chen-Yu Tsai > Cc: Jernej Skrabec > Cc: Samuel Holland > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-sunxi@lists.linux.dev > --- > drivers/clk/sunxi/clk-a20-gmac.c | 21 +++++++++++---------- > 1 file changed, 11 insertions(+), 10 deletions(-) >=20 > diff -- a/drivers/clk/sunxi/clk-a20-gmac.c b/drivers/clk/sunxi/clk-a20-gm= ac.c > --- a/drivers/clk/sunxi/clk-a20-gmac.c > +++ b/drivers/clk/sunxi/clk-a20-gmac.c > @@ -15,8 +15,19 @@ > =20 > static DEFINE_SPINLOCK(gmac_lock); > =20 > + > +#define SUN7I_A20_GMAC_GPIT 2 > +#define SUN7I_A20_GMAC_MASK 0x3 > +#define SUN7I_A20_GMAC_PARENTS 2 > + > +static u32 sun7i_a20_gmac_mux_table[SUN7I_A20_GMAC_PARENTS] =3D { > + 0x00, /* Select mii_phy_tx_clk */ > + 0x02, /* Select gmac_int_tx_clk */ > +}; > + > /** > * sun7i_a20_gmac_clk_setup - Setup function for A20/A31 GMAC clock modu= le > + * @node: &struct device_node for the clock > * > * This clock looks something like this > * ________________________ > @@ -39,16 +50,6 @@ static DEFINE_SPINLOCK(gmac_lock); > * enable/disable this clock to configure the required state. The clock > * driver then responds by auto-reparenting the clock. > */ > - > -#define SUN7I_A20_GMAC_GPIT 2 > -#define SUN7I_A20_GMAC_MASK 0x3 > -#define SUN7I_A20_GMAC_PARENTS 2 > - > -static u32 sun7i_a20_gmac_mux_table[SUN7I_A20_GMAC_PARENTS] =3D { > - 0x00, /* Select mii_phy_tx_clk */ > - 0x02, /* Select gmac_int_tx_clk */ > -}; > - > static void __init sun7i_a20_gmac_clk_setup(struct device_node *node) > { > struct clk *clk; >=20