Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1269880rwb; Sun, 6 Nov 2022 22:42:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf53tulFF5ySUoxX89mDAcqiGPwguOa/3xexNVBrEez7EPETRittQRMaAmJME8VcWQoS1Khk X-Received: by 2002:a17:907:9051:b0:7ae:6f73:a92e with SMTP id az17-20020a170907905100b007ae6f73a92emr1475818ejc.553.1667803326696; Sun, 06 Nov 2022 22:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667803326; cv=none; d=google.com; s=arc-20160816; b=BeYcDOdGGdc7uAPPMMGPlcvxRvCUHe16t3oBE5ADadyusMCfAeJgekh1myhuf4G6dz I1b/9Px6D5bj+35mhGOvg5fyX4aVe8WmfwhCrrz4Cd+2ge7r3db50Sy9lW8+CUKRjIUx oU64Ecg2uO1euAIHEnGywmMNjAJB7Fh3jdi05qm2SOXRrlpaRp0ANgVxDZ+xaEQBudLJ bTK6qhkKONg/PchxzOz0GfK62b88FTBLfZOmQ+8QN6wvJt0FLkXb9nfNg3XkkaVUghy7 C2nECbU1mVN8hwuJuvcVbSP+12iYBfiebhpIFugZpH5WDNsKWP+nUyHx4KQBhdKamVW1 Nqmg== 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=sDgkwbk6hypIImswagZePXP8N1cYyNcgpr8gEuKI7ZQ=; b=By/w54GaCWxb7+BUNnOqlrzn5U2HrWR8G+/CsRY4Q5/HCJeGvbZJujF1O/+rWNXzHJ 3TOtWmntauTB4gcH1Io55dy2Sq5GVzrMqMvk79lCnh7IHOR6dSxxAGa2Cnd82cwTeLZC 0ej4PwoEL34lev4stWCjqCRmzcvCPvvLb6iY/KKKOyx4WLPbvAgyj7EBLE1bwEkqtS6B t16qlYz+bHH6NCYOsOescoWPR5Emkt3cP9bwj1wSEnAw4Ydm/tSncw+VH0G4wfi7QNwd c81jObpkOd8XYq9nBnsQgqPJ5gjH4yPwF6bQycZbopvC8pPKL6Kyy7iRJTu+VwSPqJbA weuw== 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 dr12-20020a170907720c00b0078315844537si8849791ejc.378.2022.11.06.22.41.44; Sun, 06 Nov 2022 22:42:06 -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; 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 S231436AbiKGG0v (ORCPT + 95 others); Mon, 7 Nov 2022 01:26:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231317AbiKGG0b (ORCPT ); Mon, 7 Nov 2022 01:26:31 -0500 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 7CF2712AFA; Sun, 6 Nov 2022 22:26:28 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0VU6xedu_1667802385; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VU6xedu_1667802385) by smtp.aliyun-inc.com; Mon, 07 Nov 2022 14:26:26 +0800 From: Yang Li To: kuba@kernel.org Cc: davem@davemloft.net, fw@strlen.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] lib: Fix some kernel-doc comments Date: Mon, 7 Nov 2022 14:26:23 +0800 Message-Id: <20221107062623.6709-1-yang.lee@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 Make the description of @policy to @p in nla_policy_len() to clear the below warnings: lib/nlattr.c:660: warning: Function parameter or member 'p' not described in 'nla_policy_len' lib/nlattr.c:660: warning: Excess function parameter 'policy' description in 'nla_policy_len' Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2736 Reported-by: Abaci Robot Signed-off-by: Yang Li --- lib/nlattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nlattr.c b/lib/nlattr.c index b67a53e29b8f..9055e8b4d144 100644 --- a/lib/nlattr.c +++ b/lib/nlattr.c @@ -646,7 +646,7 @@ EXPORT_SYMBOL(__nla_validate); /** * nla_policy_len - Determine the max. length of a policy - * @policy: policy to use + * @p: policy to use * @n: number of policies * * Determines the max. length of the policy. It is currently used -- 2.20.1.7.g153144c