From patchwork Fri Jan 13 06:40:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 43011 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp121827wrt; Thu, 12 Jan 2023 22:57:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXti00BJQA86N4aR0uhwfu3c++lCRfhLM33LBE92lYTeszgmp0K5g5ox7ZcRI8ha/xRWaeUw X-Received: by 2002:a17:906:a82:b0:81b:f931:cb08 with SMTP id y2-20020a1709060a8200b0081bf931cb08mr1932021ejf.47.1673593040938; Thu, 12 Jan 2023 22:57:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673593040; cv=none; d=google.com; s=arc-20160816; b=lhXUNSBcEh9mTtEmW22tV6FpblYLJ1F0TRTjrBgdlddQEqRl4gI3u3cvBlW8cL4O9s reqj37LFn+EPQjwsGuqf3/XdxCAcMPs/pvCNV9p57yEQjOns2hW/iMbNMsK7847bB+rx AgURKOvrjCWn3WySMCMM37mOplpHYwTnh51pgCwdMFebQUumZ4fMy1BMIMGooGsmL55g w0cGm6/ZMYlEEJGeM3n2/y8B+9Sf8dj+c9JqRmV3kZ5DPO5pxvh5HiMjerLxq4BhYEkk onRm5YMWDjhBRo7bClzY8TiK5p8rsED2frD0SrtjWwbdIsDzHsNz5yRVv+lBlwhrgdCz obaQ== 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:dkim-signature; bh=P7399dbYs0Tw8a+sTJ+KEI7OA4SqtAFmQ3Hydkj1ODQ=; b=YcGkQ+ch/yAtQBYHzycVg9sdMOUprzEljhUFYMobCya6tiIS75uGaKYi8wvQRLexXL 2dwUqpn4VuX1eD2ohY7g3/8QpKjTBb9DnXu2fKuRuPyNismwpJoidKylh0EgVWHi4QA4 phsP4BOSkK6c/OkZOU33TcZDDLOv9o80FWFk9ao1CWbR7Tn1nv4lXyQubZwSbzV9FEv3 62yFgwvQ0po21pYUbxLpZnRmyNo6xVHX9uLEbSqBs24nMfUJZ0f4Xlpjx1tQq+WDZEpS W//JouFHuIUDCfNenFAP5L3biTZ7rzNxDCgThJLCN5yDXEuaaC/gsoHJxd0xKTrYPYyh nctw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=nvUNQcqW; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs13-20020a170906dc8d00b0085ca2799665si10399519ejc.133.2023.01.12.22.56.57; Thu, 12 Jan 2023 22:57:20 -0800 (PST) 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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=nvUNQcqW; 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 S240757AbjAMG4R (ORCPT + 99 others); Fri, 13 Jan 2023 01:56:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232051AbjAMGzG (ORCPT ); Fri, 13 Jan 2023 01:55:06 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B63480AF6 for ; Thu, 12 Jan 2023 22:40:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=P7399dbYs0Tw8a+sTJ+KEI7OA4SqtAFmQ3Hydkj1ODQ=; b=nvUNQcqWRe4hfVV2Obyz4zw31C o6Wb/RyMiSNy5DxXXsAkZah7S0NKeIm0w/kMvli94hzvAK/UV5PAHfU2zPkQzVlKf/A4x1sYne+hP GyY5nOjo/1n3YuDsii3d/qLd7sE3DPNb3U5GgmDybS2cV+nfE9O9FBo5AwOpdPU+8VgWUVJq46dmt Q1Lmuh24Vqvbe1yjb7RFMbeiL262iFgsCn/l3R+cVlBLfV8funOY9Y0vt3FKplF0UrzpVcpSBOCrW TT1EqsckCp/sh43n/YSF8HlK6EIVgjaPFcaW68HZkU9HWh4ZsqxO9J9+hc1P3i2hyXTmjcaRWKBWQ zP80Wocw==; Received: from [2601:1c2:d80:3110::9307] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGDjZ-000qaq-Fq; Fri, 13 Jan 2023 06:40:13 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Richard Weinberger , Miquel Raynal , Vignesh Raghavendra , linux-mtd@lists.infradead.org Subject: [PATCH] ubi: use correct names in function kernel-doc comments Date: Thu, 12 Jan 2023 22:40:12 -0800 Message-Id: <20230113064012.25071-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754889496840976153?= X-GMAIL-MSGID: =?utf-8?q?1754889496840976153?= Fix kernel-doc warnings by using the correct function names in their kernel-doc notation: drivers/mtd/ubi/eba.c:72: warning: expecting prototype for next_sqnum(). Prototype was for ubi_next_sqnum() instead drivers/mtd/ubi/wl.c:176: warning: expecting prototype for wl_tree_destroy(). Prototype was for wl_entry_destroy() instead drivers/mtd/ubi/misc.c:24: warning: expecting prototype for calc_data_len(). Prototype was for ubi_calc_data_len() instead Signed-off-by: Randy Dunlap Cc: Richard Weinberger Cc: Miquel Raynal Cc: Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org --- drivers/mtd/ubi/eba.c | 2 +- drivers/mtd/ubi/misc.c | 2 +- drivers/mtd/ubi/wl.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff -- a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c --- a/drivers/mtd/ubi/eba.c +++ b/drivers/mtd/ubi/eba.c @@ -61,7 +61,7 @@ struct ubi_eba_table { }; /** - * next_sqnum - get next sequence number. + * ubi_next_sqnum - get next sequence number. * @ubi: UBI device description object * * This function returns next sequence number to use, which is just the current diff -- a/drivers/mtd/ubi/misc.c b/drivers/mtd/ubi/misc.c --- a/drivers/mtd/ubi/misc.c +++ b/drivers/mtd/ubi/misc.c @@ -10,7 +10,7 @@ #include "ubi.h" /** - * calc_data_len - calculate how much real data is stored in a buffer. + * ubi_calc_data_len - calculate how much real data is stored in a buffer. * @ubi: UBI device description object * @buf: a buffer with the contents of the physical eraseblock * @length: the buffer length diff -- a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c @@ -165,7 +165,7 @@ static void wl_tree_add(struct ubi_wl_en } /** - * wl_tree_destroy - destroy a wear-leveling entry. + * wl_entry_destroy - destroy a wear-leveling entry. * @ubi: UBI device description object * @e: the wear-leveling entry to add *