Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2003443rwb; Sat, 8 Oct 2022 00:04:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5di3lN6tFoF49QRlQX6a7746Lqj2i1SlcdtQk490MXhkavOtpmgFCTpLhDRGOMqKVzjrJz X-Received: by 2002:a63:5d50:0:b0:45f:f5c7:de9b with SMTP id o16-20020a635d50000000b0045ff5c7de9bmr2441044pgm.10.1665212678606; Sat, 08 Oct 2022 00:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665212678; cv=none; d=google.com; s=arc-20160816; b=ZTsHxW2trSui2EtjHUnop99PUG1ZdZOs6HODRNZEvCZPl05WlWtRwQasF2eg6TrqMj X8EOKJ4D/qW/VjF3RuH0lVq+BcAN0XFtPziN9aL3C6L7iciFkhnTZ5GU99NMF1OGHheZ qLbQSZ95xn+2d80bLNi6v1RvpVYkg0OAShc+37QmVQUi0DsUCJjrwlxEgFEFRkOKkdyv Y33PAgVPHwMPJ3NuHw8KyhVljMcpZONopq9yFcAtNmMPMo8OlVlK+sCCdA+Uc37alFWT xvR11eKbmcfyPXP7tMyiBASyEbtWLnWNjgvKtGVZnBmZoK23RrOPWmyHTDIWXhTlVNz9 o+hw== 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=Mx75b3rFVDnwfNW/Y77tDLFz0D6RUQgU1D1iZZIW5bQ=; b=sRnwqyna4GR8i6PNkiTW7TSRsMQI9d9B5m3R2aCA0k4iE2ASVCgiHPO5d7/v2w9Rwd EFC0A9OQpxyvmtQrx89qVHFMT6WKQsX1SQZHbHCAJSL84wM/cQpoCCZrkbWDimTfbqtG wtKot/EtmiiaGcD802Qpj7mzofXh8qczV11/CR2OVYmJ1zpmysk5IY+kihw378bKJ/4w YjPagm+4EPyeuXudF+1p1Md36DlW2AURyPNOnaX0I8vKGsKDWxCAjlis+Ic9OKW2Umyq rWjcL71XA3ck0LH7jzQlRsj5jwnHZhoqunoid++PNcep/wCDRavZE9ef97Hswq3eksU0 8VTw== 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 o37-20020a635d65000000b0041b7a0b673fsi4847596pgm.449.2022.10.08.00.04.22; Sat, 08 Oct 2022 00:04:38 -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 S229619AbiJHG6L (ORCPT + 99 others); Sat, 8 Oct 2022 02:58:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiJHG6K (ORCPT ); Sat, 8 Oct 2022 02:58:10 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CFE874E2E for ; Fri, 7 Oct 2022 23:58:08 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R821e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VRZwHym_1665212282; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VRZwHym_1665212282) by smtp.aliyun-inc.com; Sat, 08 Oct 2022 14:58:05 +0800 From: Jiapeng Chong To: rostedt@goodmis.org Cc: mhiramat@kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] ring-buffer: Fix kernel-doc Date: Sat, 8 Oct 2022 14:56:24 +0800 Message-Id: <20221008065624.40998-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 --- 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 * @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