From patchwork Wed Nov 1 01:44:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 160420 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:abcd:0:b0:403:3b70:6f57 with SMTP id f13csp133821vqx; Tue, 31 Oct 2023 18:46:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+vIXsxqu1oQ7GnCNAVGtAvf6mgRF4n3YhKB+DFLU2CgGD765ndEfqdIB5oP8A6OmD7TYe X-Received: by 2002:a05:6a20:8e01:b0:16b:80d3:7f10 with SMTP id y1-20020a056a208e0100b0016b80d37f10mr14029016pzj.34.1698803172584; Tue, 31 Oct 2023 18:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698803172; cv=none; d=google.com; s=arc-20160816; b=ciBHe7NVkiEcozIVaATQim39iey+fE9MxpQ2UMmZuKrHPgy94Nxyinwr2hsW6a1zG/ HEBSmorg2LKGtxZR8HJ4YJwA9OaLDJCoXJrjKlGy30nkJZkbmqhG+9h3nPLeNLxfWsgO ewzHuu+bSsDrTJJHV8wq6GAs9fbkTvry6bI9d4yXms0UW4XTgK6u4UWs6EA7IPkvnaT4 AlmebFPzZ653Pe3JMvkaC1wtDPzAm/PM1eiC0wiCrTcWox+hF31JLRAtWawzW5PCTGyc z0zX4084BSwpb5yZjIKtoF+oRavOkryDx4/qWcXbVLCZ4b1h4J45cqChBCCggwaEsOk4 IMtA== 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=M3gbiu9ruOrUfIifPiRPf8B1842VWk8jRpIQ27l3dp0=; fh=AbKlYHJNV4C42+iAmdJHptWLhI2ImAA9gD54kgS8Uq8=; b=0BYT693WwWkKlP+Y1H7pgqNbBFc4g4E1zEo94WweLJSQrojecDFoli+CxIJ2qi57px h6M8RWCYQp2rbF2tjlOrkVC4+iKbXXZra3r8zu72dXM6qonxOenR0lScbnOvhAfAWX9j euQArnGs0tSYSxku6GHJ9SEwrq7lzgNa7O/3RgTMBXFGUb0Ad+gRq/N82GVzREUfO7Ew jcsvk5d1U4Wxtfngyw9SbqxinF+sXnay5sbk9pimOtq/gfYDNJqlYDa1sNYNIURaqOyB ooWANGlSOt5exlMum5ixr7QU3TeV6FzQ//Di0jj3q2pn5oRDX4dDy4sl7vZREH74XpFb surw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id lr12-20020a17090b4b8c00b0027ce8bab3b4si1990076pjb.113.2023.10.31.18.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 18:46:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 0BB9A806AFC6; Tue, 31 Oct 2023 18:45:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377198AbjKABpD (ORCPT + 34 others); Tue, 31 Oct 2023 21:45:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377083AbjKABpC (ORCPT ); Tue, 31 Oct 2023 21:45:02 -0400 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71AFFF4 for ; Tue, 31 Oct 2023 18:44:56 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VvIuiDO_1698803091; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VvIuiDO_1698803091) by smtp.aliyun-inc.com; Wed, 01 Nov 2023 09:44:52 +0800 From: Yang Li To: morbidrsa@gmail.com Cc: linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] mcb: Fix some kernel-doc comments Date: Wed, 1 Nov 2023 09:44:50 +0800 Message-Id: <20231101014450.78818-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 31 Oct 2023 18:45:33 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781324235650971977 X-GMAIL-MSGID: 1781324235650971977 Fix some kernel-doc comments to silence the warnings: drivers/mcb/mcb-core.c:270: warning: Function parameter or member 'carrier' not described in 'mcb_alloc_bus' drivers/mcb/mcb-core.c:336: warning: expecting prototype for mcb_bus_put(). Prototype was for mcb_bus_get() instead drivers/mcb/mcb-core.c:463: warning: Function parameter or member 'mem' not described in 'mcb_release_mem' drivers/mcb/mcb-core.c:463: warning: Excess function parameter 'dev' description in 'mcb_release_mem' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7105 Signed-off-by: Yang Li Acked-by: Randy Dunlap --- drivers/mcb/mcb-core.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/mcb/mcb-core.c b/drivers/mcb/mcb-core.c index ba4530459de8..7044e96c4434 100644 --- a/drivers/mcb/mcb-core.c +++ b/drivers/mcb/mcb-core.c @@ -264,7 +264,7 @@ static void mcb_free_bus(struct device *dev) /** * mcb_alloc_bus() - Allocate a new @mcb_bus * - * Allocate a new @mcb_bus. + * @carrier: pointer to carrier device */ struct mcb_bus *mcb_alloc_bus(struct device *carrier) { @@ -327,7 +327,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,9 +455,8 @@ EXPORT_SYMBOL_NS_GPL(mcb_request_mem, MCB); /** * mcb_release_mem() - Release memory requested by device - * @dev: The @mcb_device that requested the memory * - * Release memory that was prior requested via @mcb_request_mem(). + * @mem: memory resource */ void mcb_release_mem(struct resource *mem) {