Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1969047rdb; Sun, 21 Jan 2024 01:14:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHU4e4WNQvWVN34bz/HJUS7Kg2fYTMOoby/zN8R3DaNlm2uvtDC940Bs8JnGfghXD0jPR4p X-Received: by 2002:a92:d352:0:b0:361:a982:3aef with SMTP id a18-20020a92d352000000b00361a9823aefmr3736439ilh.64.1705828474740; Sun, 21 Jan 2024 01:14:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705828474; cv=pass; d=google.com; s=arc-20160816; b=NicomQe5QOMhzeB5XvnCzSiu7wX95YWtdF7egAZKEeQ5MEFAiVWIME5xbue4LofSM3 m4X1kwv63ftZhWL8+cZsXo0XYfFd28rPgOSngB3CVWwWurUJFTfsy1tpxyAkZ4ENdBkd t05h3scCieo9FWTs7KMjn+LTKTWWHI4UfpxcRdX4kFBCd6irITEQToaVm/7FwOWTOqts VE4qE91A3PVLIlRix6MPWrDSymT0sXoMderPVYOrWSmrKMmlI59YDQ/m3aZKJfdtfeLg C3nYovyREBW8Z9Z44ra0BsRs0EXPZ95NS93VgN469xaDv979lNLFTwZFWUiCyiWvCpyz mx+g== 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=DG9d2kLJoo+UCrnUD4R0HJVXaKa26B5GHvpgiXimCgA=; fh=K2TqNGTdaTUv/IriVFJeR3RyuzN8iYI9rRBFJFhXdbg=; b=ma8vrWYXfmw+FvONXZlidho8RdBaPVcwd6xWq8WuNn1Aw+V58znH8DQuTciIisbgno WFnBWJD/DWevC6Iz82d/C5JKCIiLeSadKmBxSiUgWhLY4VIgfjKes1PTSBB7hOZFV1AQ pPmQuUbmiDxYFlCH0CivYWTFbVeVdf4BpVbZBNilJD45dyCKfFwwqcUfv1AgeREl0aqv 6tAsqABQ8NF+BzzAxE5RdoEAMk77Fa3hqwWDzjmPEAaJhye4hRBpkBDFC3J6RvmWBMIR CBoj+n3YJkGISrYiQT0RPJJ/cpW7TWKpEbdbBB8/+RVzfiwJS9YfAuNuEEfWnZb+2gPZ niSA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=OFLjP3E9; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-31971-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31971-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 r7-20020a63ce47000000b005cd8123afb5si6289179pgi.547.2024.01.21.01.14.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 01:14:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31971-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=OFLjP3E9; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-31971-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31971-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 C80AFB22999 for ; Sun, 21 Jan 2024 05:19:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6052D364CF; Sun, 21 Jan 2024 05:18:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="OFLjP3E9" 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 03092364B1; Sun, 21 Jan 2024 05:18:46 +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=1705814328; cv=none; b=fwj8ey6+GLPGjlyToTYm/Ej0L6YaDzQO7pm75z+zokN1vl/LJ9FWtyLru7x2BWcUQxiC3Ynxoqn5eDnBH1YofqSXxuENKI/5HDirZnSy1IJSmX6p8HFJAmmLZbXtCUsuiDs6VQpCMYROe0qalcUKCJ6liAXyfT7QMiyOJIsFjGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705814328; c=relaxed/simple; bh=hsLzJQ0rjE0NKaalRlXuR3w1rqawiIH9+0ZgHTrJpNc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=tbKOpAEPXa3jm8y8eMqPnpSn5w0JQ+G6z48DzVT7nORL6jb7N+aGI5LdGd8jTNasBkl6Q2MUxDIda2a6eBwhBpzyfffkB42CLZxnIuvu2v2d/mclAbwqaqcytQZhoT+CMkYQrGe3UfgJoQWS4/8ktvwT7NK+C3Gomn4+c1taIrk= 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=OFLjP3E9; 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=DG9d2kLJoo+UCrnUD4R0HJVXaKa26B5GHvpgiXimCgA=; b=OFLjP3E9USROZf++sX2F6XpRc+ +9P7nkP2qJwip9svA44AVQJjtB8RHvY0cYjoxiwyLopI83NkwCtymQbMLk/AeaPy4mhJhikGYAB2e ZLRIJB+3hA+KoWxtngquW2LPWQyiTxNG14jQR5IN8qrMN7qppGhl7rzOg1EcBlvDosA4pFPdKpk0Z U1/v3iv6kgDDzvEuQTenn9dnQBUB/OKiKFV47CkSq8dxg7bD5w0K37HOt8mXllO9S7DMoNoTwUNKE iMqmco9vuqg/NdJpwR10c6dEYZOyI+EcIuEXy8mTwLO9pyCpwnhhtoCZ0cQ/gHq2R7g4l0D4eLDXr qnKTvcQQ==; Received: from [50.53.50.0] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rRQEI-008uM0-10; Sun, 21 Jan 2024 05:18:46 +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: sun9i-cpus: fix kernel-doc warnings Date: Sat, 20 Jan 2024 21:18:44 -0800 Message-ID: <20240121051845.17603-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 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: drivers/clk/sunxi/clk-sun9i-cpus.c:25: warning: expecting prototype for sun9i_a80_cpus_clk_setup(). Prototype was for SUN9I_CPUS_MAX_PARENTS() instead clk-sun9i-cpus.c:184: warning: Function parameter or struct member 'node' not described in 'sun9i_a80_cpus_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-sun9i-cpus.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff -- a/drivers/clk/sunxi/clk-sun9i-cpus.c b/drivers/clk/sunxi/clk-sun9i-cpus.c --- a/drivers/clk/sunxi/clk-sun9i-cpus.c +++ b/drivers/clk/sunxi/clk-sun9i-cpus.c @@ -18,9 +18,6 @@ static DEFINE_SPINLOCK(sun9i_a80_cpus_lock); -/** - * sun9i_a80_cpus_clk_setup() - Setup function for a80 cpus composite clk - */ #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 = sun9i_a80_cpus_clk_set_rate, }; +/** + * 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 = node->name;