From patchwork Wed Dec 6 05:58:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 174302 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp3903754vqy; Tue, 5 Dec 2023 21:58:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFnrJPDf70y2ULWuZtLHcSSEEbDl4ONZwT1PmeJRZGfAhbKxZnZ9oC8skBiQxTC/NEBFKFF X-Received: by 2002:a05:6a20:da92:b0:18f:cbdd:3244 with SMTP id iy18-20020a056a20da9200b0018fcbdd3244mr546684pzb.47.1701842324063; Tue, 05 Dec 2023 21:58:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701842324; cv=none; d=google.com; s=arc-20160816; b=sze6unjM7DKRs5tmStT9f23SR9DcI5sT74iDZ65rCi2qhn0xGSv5uHSLC9AAy3pB3Z W9GyYCyV4igAf1lwXESYTmH9m5pYy7nR22r4/PTX87q62vIX6W40YjGa4Pb738gPBAqY 0dTg7FvkqaQsClCli57uApZjhZbg7+YFqGtDfuWDdmV81uJB8RZxlwrDYowLsrtwtLHY DQQzHExzEmMa8TZVbvCqOixaIl1RfCvbqivw+nB8jeIAwN+YAoT0Wr4gmxyvbgLmVBZk G2yJ7mL8KAy9RrVQW3ZQPEuZInycdFhdmxZv5Avdd5QHu3r/x24sYV/0dirmTq3lR/a0 RWQA== 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=d3EMvhOd/gkgySUbvhifBSOZgHXqJpdkJdfMLFJiduw=; fh=1teMy/eMrVSZL90agus5w+itwE1tYfvXGJ2RVI/Iv+M=; b=Epi0APHIu9KepKkPGVSpacxeatGWj0H1FvRTtV6ter3W3qXGXW1g4RkBKbRHITa3Ds lnSiVJ/KL5AlMF3+a1Oojh+3hCdiNBXI1LNTsUF54VhFWi9z98XnPCIvn6+5WPqVOd6a 2OnFQCRHbsV90pfDDu/pzu3J/VwFzGQQwSL2+zkZGCBFHbk9gXaqT1c2Mksj26sLgSHt HvNZTnt3hxZ989a7vYFE0uvKj/Zf6G9vEdOb5ZLsdKTDEmGsjpeAsXYRjzTygBNTB27F LQK1BTHF0C4gPMteJAuFE+QpK1djcsz/qIzCYenSXBVqXdB23+YWAv/thHisWEnM6UcD shkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="ck/rQmiZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id fb21-20020a056a002d9500b006cd84368e8dsi10851142pfb.190.2023.12.05.21.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 21:58:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="ck/rQmiZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 902FC803F942; Tue, 5 Dec 2023 21:58:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376862AbjLFF6S (ORCPT + 99 others); Wed, 6 Dec 2023 00:58:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376863AbjLFF6Q (ORCPT ); Wed, 6 Dec 2023 00:58:16 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 749EBD49 for ; Tue, 5 Dec 2023 21:58:22 -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=d3EMvhOd/gkgySUbvhifBSOZgHXqJpdkJdfMLFJiduw=; b=ck/rQmiZQL2DrfqNtfcK28gLF7 E7hHCqXBCO0GytNzNvuMCq4St+7MfGB2Ca3zot1qt6d2yClAob28r2Vuy/CDJHyOCzUkUmLQaPRPI 47S8JcskLx3RFrhIwc/kq+1bfypx8EeqJU9xADLyuot6X+MR02c3i8jSBm96Xcux1XKr6ANXm45Pm SnrKtYturV8P3RevMoXfFuGajDm51o3buUEuc7izCVYgBh+N+Q4SF5apPk2LM+I7iqXUFr/TXd2oP bp5aDzTtC1fnjKE8c9DSU5tnoHjtgk6pNPDA3y9JI0tv78i+sDa9wgE42xDPRhFhkqgQmdX31AkGp g6qJEIMw==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rAkvN-0098pS-33; Wed, 06 Dec 2023 05:58:21 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Johannes Thumshirn , Greg Kroah-Hartman Subject: [PATCH] mcb: core: fix kernel-doc warnings Date: Tue, 5 Dec 2023 21:58:21 -0800 Message-ID: <20231206055821.17284-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 05 Dec 2023 21:58:41 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784511016808334336 X-GMAIL-MSGID: 1784511016808334336 Correct function comments to prevent warnings from scripts/kernel-doc. mcb-core.c:270: warning: Function parameter or member 'carrier' not described in 'mcb_alloc_bus' mcb-core.c:336: warning: expecting prototype for mcb_bus_put(). Prototype was for mcb_bus_get() instead mcb-core.c:463: warning: Function parameter or member 'mem' not described in 'mcb_release_mem' mcb-core.c:463: warning: Excess function parameter 'dev' description in 'mcb_release_mem' Signed-off-by: Randy Dunlap Cc: Johannes Thumshirn Cc: Greg Kroah-Hartman --- drivers/mcb/mcb-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -- a/drivers/mcb/mcb-core.c b/drivers/mcb/mcb-core.c --- a/drivers/mcb/mcb-core.c +++ b/drivers/mcb/mcb-core.c @@ -263,6 +263,7 @@ static void mcb_free_bus(struct device * /** * mcb_alloc_bus() - Allocate a new @mcb_bus + * @carrier: generic &struct device for the carrier device * * Allocate a new @mcb_bus. */ @@ -327,7 +328,7 @@ void mcb_release_bus(struct mcb_bus *bus EXPORT_SYMBOL_NS_GPL(mcb_release_bus, MCB); /** - * mcb_bus_put() - Increment refcnt + * mcb_bus_get() - Increment refcnt * @bus: The @mcb_bus * * Get a @mcb_bus' ref @@ -455,7 +456,7 @@ EXPORT_SYMBOL_NS_GPL(mcb_request_mem, MC /** * mcb_release_mem() - Release memory requested by device - * @dev: The @mcb_device that requested the memory + * @mem: The memory resource to be released * * Release memory that was prior requested via @mcb_request_mem(). */