Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1988153rdb; Sun, 21 Jan 2024 02:25:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEv76ta18lGwRitCxXznS79h1eq+KBPHoRujJcQYSi1CSAn/xRS/uN3UsrVNHVBfg6qNzkQ X-Received: by 2002:a05:6a00:1252:b0:6d9:a1ec:eae0 with SMTP id u18-20020a056a00125200b006d9a1eceae0mr4624824pfi.11.1705832731880; Sun, 21 Jan 2024 02:25:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705832731; cv=pass; d=google.com; s=arc-20160816; b=JNsZjpV9zfWxu75/xgAoeKbmTcPItyWEN3R6pto4tVdQ4ZDkr4VFVeRjCIIegCwYs7 sLJwNlm+1KzdOq/UfFbjEy9KvjZsnW8TNnZX5uOMQMzoI6QLnE/H5vIe0aCu+yLdPpiR lUJJeqZkUFbU3rEwG9ECoajMZ9WKh0bICHKHKF8JcV83PuEiwEXwCZqgUWpcULAVqjHA zutO5KSMkrO7/RGGqVnbcmExoaAQBfBLB3RUENZe5YlDXpAQx2TKQWjF94aldamjn5Tm HLVgpuo7q3ulrj6XP+9uo7jZGR5i6XIkrnaJqo/rNLS4H5LVdDEBQuLxYJB3VOGaBW8G QncA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=EpNABUkQ/ZpQnYGH4JyM/iICjAozI40BQcRt+WngSNU=; fh=K2TqNGTdaTUv/IriVFJeR3RyuzN8iYI9rRBFJFhXdbg=; b=nVRyrHe3uXkZ2CUSUh+sob8zk8Min8gRA0JqAeMFVc43HvOniZgEWdePa+A9mUYgB0 nPYaekR3q5i1jeqF2okJYP0+49C8+sUp/Jx6nr9y9WKHhdMAAcpKqE36jxY2mvz7p10c wI3JaF5aSqS+GNOq68DDnIhvqg4QmnPo3U78XViZyvZPpsBLvp71xXvgI8rJaLDGpVoP adXOCE2x6FcWNuWeg8ofo4T2UtIZps8I9y4DoZxCeteHHiEYsUI0cCD1DGIKwAHo24vT 8Zu2R2LJrSH6J3HwrqIbYsGUb8ui27pBoHBw3yurSqF97q2YI0rjhhGwaPlFAl7IQnOu Quug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=znEoVl01; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-31970-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31970-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 l123-20020a632581000000b005ce034f8414si6431057pgl.483.2024.01.21.02.25.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 02:25:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31970-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=@infradead.org header.s=bombadil.20210309 header.b=znEoVl01; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-31970-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31970-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 0ADF6B22336 for ; Sun, 21 Jan 2024 05:19:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1EE92EAF7; Sun, 21 Jan 2024 05:18:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="znEoVl01" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 DA8CD364A6; Sun, 21 Jan 2024 05:18:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705814325; cv=none; b=TLo1P0S5KUlyGN8fHo8x6M0sOUGlARiuv5/qO/+Ciq2orAAMLp6KoceuciI7rMAz6fvkMfOigUdJ3q0VrTtadhibEmtVh2YNAwhl7d6DIrxrNUTK8zY7Av9t6egCZwVwXk4Gih5xDAx+l/EvNV87joiETabOPM9FW2YwBRvANVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705814325; c=relaxed/simple; bh=UFTWkqX6bnktQloDzscK9PYzEVaNTQz67zW0Sog3Ui8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=U2w9v5ItA37wTLutiFKk/GoQdZ+tpgPa8Vcb+2XnvPhk+8eYnabJn2fZMnthfVFlT9AQGdKaDgrP9y+DXJ5TeHhIfeqCeGJBsylQTYzGr96XkImShrfGzYDrwPPJAVahK/NhuH+0gfTeOKsde1CXvPr61wNCZkINgwSOdbsQwsQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=znEoVl01; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=EpNABUkQ/ZpQnYGH4JyM/iICjAozI40BQcRt+WngSNU=; b=znEoVl0105CY16oSOWr1I1fFXh TQkHYZeFXRMclH0WBPFsfm2i6Msf+8Q1hUdj6ngm7FWKGuGXvPKd1Ks7XmPPfLleU0nUHj3zv6OSm E8Slr9DuSaXFDMk9VW2xAehPlo7hoKcfAFDqPSmQ+TbYlyZjG1g3FT/StW257jw4ds2lfiC1M2B2p 3CgweM7Y7HTWf4YAIbWZ7raZ2lyv5Q9ZfT0P+N6iL1S4LGLnEz9pfnp3D2X1BwYbh/GSR+Wjpp3pk MIgNf7ZxEB3BJW6ovyZ8AAllwWlCdVM4OhoKH7rLpdgn1TejzDECrj7jKWxyeKZUQDcrKD4mYOWdH K3f0mu0g==; Received: from [50.53.50.0] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rRQEA-008uL5-2x; Sun, 21 Jan 2024 05:18:38 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , =?UTF-8?q?Emilio=20L=C3=B3pez?= , 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: [PATCH] clk: sunxi: a20-gmac: fix kernel-doc warnings Date: Sat, 20 Jan 2024 21:18:35 -0800 Message-ID: <20240121051837.17564-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 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: 8bit Move the function kernel-doc comment to be immediately before the function implementation, then add a function parameter description to prevent kernel-doc warnings: clk-a20-gmac.c:43: warning: expecting prototype for sun7i_a20_gmac_clk_setup(). Prototype was for SUN7I_A20_GMAC_GPIT() instead clk-a20-gmac.c:53: warning: Function parameter or struct member 'node' not described in 'sun7i_a20_gmac_clk_setup' Signed-off-by: Randy Dunlap Cc: Emilio López 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(-) diff -- a/drivers/clk/sunxi/clk-a20-gmac.c b/drivers/clk/sunxi/clk-a20-gmac.c --- a/drivers/clk/sunxi/clk-a20-gmac.c +++ b/drivers/clk/sunxi/clk-a20-gmac.c @@ -15,8 +15,19 @@ static DEFINE_SPINLOCK(gmac_lock); + +#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] = { + 0x00, /* Select mii_phy_tx_clk */ + 0x02, /* Select gmac_int_tx_clk */ +}; + /** * sun7i_a20_gmac_clk_setup - Setup function for A20/A31 GMAC clock module + * @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] = { - 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;