Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp243167rdb; Mon, 22 Jan 2024 02:45:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCVZE6tQhv0Ib7e0iK+toRLeC8Y9UrHjfA62iiS/JfxO8i5CiUlE2fZn7q9ixLyKOiQEzY X-Received: by 2002:a17:907:1011:b0:a2e:948f:2665 with SMTP id ox17-20020a170907101100b00a2e948f2665mr3894594ejb.50.1705920332123; Mon, 22 Jan 2024 02:45:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705920332; cv=pass; d=google.com; s=arc-20160816; b=Qbcgd5EPnVzCymeY17CUQ4l61xagodU7lnkG7z2fmEhA32n44TE+o4evqRPLSH7Up8 9kDJbS3I1NBpakc6A5wUlBARYQizBbrao3m1o91WPjCJulOggnTd2Ss6ZyQPGJpevB42 z1urSTRm2GmqyAqPi1woVdT07CFnVFQYRNy8UItY40GMTjUDNfos9TymC8a6nbGXw8bY cYOnqjEuyDLp++fN/Fs2kz6pbyExcaRnDzkAkGT37DtNLB6EX7tNRzkUhF7iCUroAvuM rEYdHHrreWr68nqN9vN3+BS97UEWUaYpiVVI6Ksafp6Z3sMytNIJpy4zZdUU6nSdniGe sngw== 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=O4TuoNCo8+M9HxmPcoccrOJkwzrvnuz7cK8VjGEnHnE=; fh=yhliK9ttytgeu2r+i91rIfRAKFnfUz2l8qEC0HEa2Og=; b=Qe7z/Q2i8AZqrlFK1rTOQtu4Dvg8W0n3h0UNvFfN9lAPGNTr4AkUjBAl8n3r+kGQ7f v10VErXk9KoZ+uC0AqpZZLCvxczQmJLEWcxXZWOPBMfCWVZIjl8yACdtdsd9OeVeHxii 0r4Qa6jlncEhszkKfjG7ni7xtKIPTL1s0EPDlLYUfWFyCYIVWzULpnXm4CkVWvm5cNzR FGtAlFenGcEMeOdEJxu8jnAkK1O2AgeycHsDsCv5Uj2CqsUDNwg51S067+cjUeMhH0xN b3VC1TXNTZ5me/NfQNFMb0T8IB7Y8jTWn9zfbrAxqV1a8pl/KzZZ0HLw7fTY71Y8ohSG KaEQ== 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-32778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32778-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 lj4-20020a170906f9c400b00a236dd6abdfsi10729676ejb.712.2024.01.22.02.45.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 02:45:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32778-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-32778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32778-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 DB6651F25421 for ; Mon, 22 Jan 2024 10:45:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 116F33A1DB; Mon, 22 Jan 2024 10:45:11 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71FD73A8F3; Mon, 22 Jan 2024 10:45:08 +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=1705920310; cv=none; b=CIXsSCj+05MbIoWxIzNQzkI0CSMEwaZDBNh5iQUBmJ5U8E3T/D4fz0er59XPQZ51+RN+L3P6rzcWmFdLrXgPnEB2g0VU9X8i/FoEkbwDw4qjrd6ojbNrPU4/iteeV5RMXNMGpNl/thybsxHxiw1WEvqq2Ddth5+VC2WeFKuTNZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705920310; c=relaxed/simple; bh=MP9qblO7l0EcL4VDFXP1Rehwt0w//Bdd/37L+LCTm34=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=e2cIYVADwGDypVOfd8KBGM3r5eN+kO5qG+U8JozFm5vFpN+YDPGVzwZgNJKtjL9FzPwKNZolYdALuOa2xHihJyjnpJwy7GdbrQf/+D9KbLvILJtH9uUqP0NN+140bGpQ7v5BptTliOM0w9ZTz5/idzBNLl5lrA/s5s0MzHonCeY= 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 017DF1FB; Mon, 22 Jan 2024 02:45:54 -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 9E0853F5A1; Mon, 22 Jan 2024 02:45:06 -0800 (PST) Date: Mon, 22 Jan 2024 10:45:04 +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: sun9i-cpus: fix kernel-doc warnings Message-ID: <20240122104504.1f84ed98@donnerap.manchester.arm.com> In-Reply-To: <20240121051845.17603-1-rdunlap@infradead.org> References: <20240121051845.17603-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:44 -0800 Randy Dunlap wrote: > Move the function description kernel-doc comment to immediately above > the function implementation, correct the function name in the comment, > then add a function parameter description to prevent these kernel-doc > warnings: >=20 > drivers/clk/sunxi/clk-sun9i-cpus.c:25: warning: expecting prototype for s= un9i_a80_cpus_clk_setup(). Prototype was for SUN9I_CPUS_MAX_PARENTS() inste= ad > clk-sun9i-cpus.c:184: warning: Function parameter or struct member 'node'= not described in 'sun9i_a80_cpus_setup' Reviewed-by: Andre Przywara Cheers, Andre > 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-sun9i-cpus.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) >=20 > diff -- a/drivers/clk/sunxi/clk-sun9i-cpus.c b/drivers/clk/sunxi/clk-sun9= i-cpus.c > --- a/drivers/clk/sunxi/clk-sun9i-cpus.c > +++ b/drivers/clk/sunxi/clk-sun9i-cpus.c > @@ -18,9 +18,6 @@ > =20 > static DEFINE_SPINLOCK(sun9i_a80_cpus_lock); > =20 > -/** > - * sun9i_a80_cpus_clk_setup() - Setup function for a80 cpus composite clk > - */ > =20 > #define SUN9I_CPUS_MAX_PARENTS 4 > #define SUN9I_CPUS_MUX_PARENT_PLL4 3 > @@ -180,6 +177,10 @@ static const struct clk_ops sun9i_a80_cp > .set_rate =3D sun9i_a80_cpus_clk_set_rate, > }; > =20 > +/** > + * sun9i_a80_cpus_setup() - Setup function for a80 cpus composite clk > + * @node: &struct device_node for the clock > + */ > static void sun9i_a80_cpus_setup(struct device_node *node) > { > const char *clk_name =3D node->name; >=20