Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2748635rwb; Sat, 8 Oct 2022 13:35:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5J9ogwpwVztN44ZGSZPIXupChIn4Mpcnb312PnZdYysQ+OV/2XseRRLjxusWYu9wrllATL X-Received: by 2002:a63:2c4c:0:b0:434:e001:89fd with SMTP id s73-20020a632c4c000000b00434e00189fdmr10059496pgs.444.1665261356861; Sat, 08 Oct 2022 13:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665261356; cv=none; d=google.com; s=arc-20160816; b=chEoWD/FUPra+AvYgGZ6YsZslFYSBOa4L2wzGNfzbEQBURMCHqKCXildD2W/J8b0iW qtZSh7XEeyQrqtWtVQaUZRrosn8rjYGOSwqvw9NfFba5DCfFnbzzOIorz360eiu0Yr6b GSCVJX5R2W3bYoRSlwNF4hBHf80VH+tj0YCIRj7fYip5F/p0T7UE7AHbImbrnKqnkass SqBK/i/iyyJq38thmN2n4b3Em2D72sls/ooYm3Fd8rmhM59uQyaNVV/ZaZThwHC+yLuv TaSWZGDD8YxeMF8zO5sP2lTH2rTL+Z5DNSKlH/5f+7JHqETOstdcvO6/xIehWN9D+W24 EdBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=yUK2aGny3GjlgFCcaNJE2xQQCUdQvneXaxR0sLqil3g=; b=jKs73y6o+4hVrHOL6ZsqEM94DHrP+zOk/LJGZ8AprcM3A/NsqB2tTmoastuuYHTYGP UKAJSoLDoD9F+9cmOBI0C8exTy031WwzOfIO/WvGrmV8wpofOJ9KB/QNlGTR6eYWZ8Bl +mkfXGm7JUxGwbuBngHeRlIATnn3E0f3N6netRdVDMvC9aKGZDM/bjeCgujZ71jTSQId lJ8pPoxOw4vK5NI3CpXbjqTvYh+AQu/8HOxsYRnk5VIj2rnZU7Az2jjLI9JKQ2DHVSie CWVwYYuzZLemHJDn7GGESvMSoeYI0AqVuAP/Mm+Rp3uO8AWL/cqmqBqmJNj7NmC7RTpR qhaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a63ee12000000b004449e02100esi655485pgi.510.2022.10.08.13.35.44; Sat, 08 Oct 2022 13:35:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbiJHUSR (ORCPT + 99 others); Sat, 8 Oct 2022 16:18:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbiJHUSP (ORCPT ); Sat, 8 Oct 2022 16:18:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6385032058 for ; Sat, 8 Oct 2022 13:18:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0D8DEB80BED for ; Sat, 8 Oct 2022 20:18:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AEC6C433C1; Sat, 8 Oct 2022 20:18:10 +0000 (UTC) Date: Sat, 8 Oct 2022 16:18:06 -0400 From: Steven Rostedt To: Jiapeng Chong Cc: mhiramat@kernel.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH] ring-buffer: Fix kernel-doc Message-ID: <20221008161806.62d8dec9@rorschach.local.home> In-Reply-To: <20221008065624.40998-1-jiapeng.chong@linux.alibaba.com> References: <20221008065624.40998-1-jiapeng.chong@linux.alibaba.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 8 Oct 2022 14:56:24 +0800 Jiapeng Chong wrote: > kernel/trace/ring_buffer.c:895: warning: expecting prototype for ring_buffer_nr_pages_dirty(). Prototype was for ring_buffer_nr_dirty_pages() instead. > kernel/trace/ring_buffer.c:5313: warning: expecting prototype for ring_buffer_reset_cpu(). Prototype was for ring_buffer_reset_online_cpus() instead. > kernel/trace/ring_buffer.c:5382: warning: expecting prototype for rind_buffer_empty(). Prototype was for ring_buffer_empty() instead. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2340 > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > kernel/trace/ring_buffer.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c > index c3f354cfc5ba..89fb203b04b3 100644 > --- a/kernel/trace/ring_buffer.c > +++ b/kernel/trace/ring_buffer.c > @@ -885,7 +885,7 @@ size_t ring_buffer_nr_pages(struct trace_buffer *buffer, int cpu) > } > > /** > - * ring_buffer_nr_pages_dirty - get the number of used pages in the ring buffer > + * ring_buffer_nr_dirty_pages() - get the number of use_ pages in the ring buffer Get rid of the parenthesis, that's not how kernel doc works. -- Steve > * @buffer: The ring_buffer to get the number of pages from > * @cpu: The cpu of the ring_buffer to get the number of pages from > * > @@ -5305,7 +5305,7 @@ void ring_buffer_reset_cpu(struct trace_buffer *buffer, int cpu) > EXPORT_SYMBOL_GPL(ring_buffer_reset_cpu); > > /** > - * ring_buffer_reset_cpu - reset a ring buffer per CPU buffer > + * ring_buffer_reset_online_cpus() - reset a ring buffer per CPU buffer > * @buffer: The ring buffer to reset a per cpu buffer of > * @cpu: The CPU buffer to be reset > */ > @@ -5375,7 +5375,7 @@ void ring_buffer_reset(struct trace_buffer *buffer) > EXPORT_SYMBOL_GPL(ring_buffer_reset); > > /** > - * rind_buffer_empty - is the ring buffer empty? > + * ring_buffer_empty() - is the ring buffer empty? > * @buffer: The ring buffer to test > */ > bool ring_buffer_empty(struct trace_buffer *buffer)