Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2996534rwb; Sat, 8 Oct 2022 19:19:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5RgdMv3dNK8ScJfT7GU9iXD7mIX2a8Xiux664FKPyfEYF2XWSARiKWyn1P2j3GmHZUT3Jg X-Received: by 2002:a17:907:9812:b0:781:bbff:1d20 with SMTP id ji18-20020a170907981200b00781bbff1d20mr9901478ejc.33.1665281965141; Sat, 08 Oct 2022 19:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665281965; cv=none; d=google.com; s=arc-20160816; b=c+64dWx/e5tzMm46qqZ5O7MvqXrYE/Elhg0xqeqb6qQhqrHObfR8juU6h6WDei298L cAVMgoZAA7ac1flGyEbT1EANmfZ/A0EF587i56OAud5uR2V7vrN11BJWnZ8nZXswlM6y 6Hn30vol2RqfgHiuJ8WYEjZLrPGOrXQsF+F70snL78g7VjC4Dj2RnD/QnT9Bbh+4VgGp V9D8c2s07d/WLCQoJCZZAIeJ1lNb1lAJNuc7xDrCGG9A4QfgQXK7JYrwv97SJQVtXPfC LEx07uLtFRMc4GHTE/NSVSLYsCNLdhflLSQbJGiseHuYU6uVepVjGGjpo2/j6xe3x8G2 zqTw== 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 :message-id:date:subject:cc:to:from; bh=urzzOq0NhBSQA5tKcIcJ5Nr4KNH9s85ZoajYErXD8u0=; b=fncEJLNZbOMKP0svWP0l2UZ54LO/FOT18zxITQswmZsaSfof4d71zo7LZsjq5EMt2L 1HKYRhrIyjZBDUtg0mg5wPILkMtMh2YTtg7+wYY7ATEB7UQy/gwdhpCILM4P4OexSLpa jbs30/4PJT0+oiTVYvHM2fiqc58vdBND0jtSiYtYDYYNbN9Rt815rqPk05wgI2IyRhK0 Lsf7GUJt0LFYT/tZuvxj171XqebafD2i4yVoZzr75r5YmBsdXZn+H9oToPOw8aCVFsqi b1PGU33yuHe2SAaULWVkOtY5JuT6GcmHAARq9PZRpDzSqPi/nySD6eJsMWFdp+Xlom8+ s0rQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a170906b10c00b0073d581b0906si6400425ejy.278.2022.10.08.19.19.00; Sat, 08 Oct 2022 19:19:25 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229787AbiJICOn (ORCPT + 99 others); Sat, 8 Oct 2022 22:14:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229795AbiJICOj (ORCPT ); Sat, 8 Oct 2022 22:14:39 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38B16B79 for ; Sat, 8 Oct 2022 19:14:37 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R411e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VRgG7Hn_1665281594; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VRgG7Hn_1665281594) by smtp.aliyun-inc.com; Sun, 09 Oct 2022 10:14:35 +0800 From: Jiapeng Chong To: rostedt@goodmis.org Cc: mhiramat@kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH v2] ring-buffer: Fix kernel-doc Date: Sun, 9 Oct 2022 10:06:42 +0800 Message-Id: <20221009020642.12506-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 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 --- Changes in v2: -Get rid of the parenthesis. 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..199759c73519 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 used pages in the ring buffer * @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) -- 2.20.1.7.g153144c