Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp74998rwe; Tue, 23 Aug 2022 18:46:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR7v+1gEMKaLkVwlvuBNs6oRvY2Jbgyc2dvIQUoh0vBMGFmuVZ5YV+uRbWxHM+6GHn/spKGO X-Received: by 2002:a05:6402:4311:b0:447:9fb:b710 with SMTP id m17-20020a056402431100b0044709fbb710mr5564202edc.272.1661305608950; Tue, 23 Aug 2022 18:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661305608; cv=none; d=google.com; s=arc-20160816; b=odSp1xRtAG3bVBs0/gbGXIyQWD3AcgR/6appIZK9biw7gaWPAL8BZkYeSV44sG91Ws ypJiMrF7JFEgVL//8OHXqhO1nDS+GA7jT9feCOzngGAB98FtDYqSQ3QIh9tCKlpFEkES XMpgrfw824TRgY5CmTEaNwmc73wyEUwFh6z4mCXR8Pw6NQi3kgK7Ed2oSIsrHcef6ifY 5yqrdRYOKZFu24tDPZVLgjVX/qGZ5AdgrU57si1CrqQfWjdaKfhlY4SGiQTxIjIJXiJx f8xP+0cJOaQDL9Vw7aMcJDqDK1eRvCnPsPOZ/kUD/GaFcf7PX1T9THuuQEP6i1SnPlzg ToLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=fBJwL1RfaY5Rm3CUH3e5Txp6+em5mmqFEPp4MlVX7jw=; b=NQX5TqJkTNPfW246tQjobnoDtV8ioW3Sinyl7YMyHzIfyUmAj9gLevy1eF9wlOrVb7 TyDiIyAn2d8g9SiF7JC+NF2KTpwu2qCjIS6jGTCUqx/ggFbGYMlORHdgmeTIizqSu0wi GaQmCDgepvrxoathenhP9uiy4AaF7kzGghpKxocDLhO7b78IYN4RPtKwHc6whQkYwdzm WVnpku/nWKCskFUj6ahjyrEg5WR6epAnNejFLN/AnvbjFelR9qbzx2Wl3TEt71Hyy/yk yu/ui3OGWqpzqRJXoCBdfcXwsxh4si1ayvSLQsKkXdyNd9TpiI2gtSeRrcYUq4hqc0cL kvew== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n12-20020a50934c000000b004463231c8b8si3018340eda.311.2022.08.23.18.46.16; Tue, 23 Aug 2022 18:46:48 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232965AbiHXBdl (ORCPT + 99 others); Tue, 23 Aug 2022 21:33:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230503AbiHXBdk (ORCPT ); Tue, 23 Aug 2022 21:33:40 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89C514D82B; Tue, 23 Aug 2022 18:33:39 -0700 (PDT) Received: from dggpeml500026.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MC7mc2Z3WzXdh2; Wed, 24 Aug 2022 09:29:20 +0800 (CST) Received: from huawei.com (10.175.101.6) by dggpeml500026.china.huawei.com (7.185.36.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 24 Aug 2022 09:33:37 +0800 From: Zhengchao Shao To: , , , , , CC: , , Subject: [PATCH net-next] netlink: fix some kernel-doc comments Date: Wed, 24 Aug 2022 09:36:21 +0800 Message-ID: <20220824013621.365103-1-shaozhengchao@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500026.china.huawei.com (7.185.36.106) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Modify the comment of input parameter of nlmsg_ and nla_ function. Signed-off-by: Zhengchao Shao --- include/net/netlink.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/net/netlink.h b/include/net/netlink.h index 7a2a9d3144ba..e658d18afa67 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h @@ -741,6 +741,7 @@ static inline int __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, * @hdrlen: length of family specific header * @tb: destination array with maxtype+1 elements * @maxtype: maximum attribute type to be expected + * @policy: validation policy * @extack: extended ACK report struct * * See nla_parse() @@ -760,6 +761,7 @@ static inline int nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, * @hdrlen: length of family specific header * @tb: destination array with maxtype+1 elements * @maxtype: maximum attribute type to be expected + * @policy: validation policy * @extack: extended ACK report struct * * See nla_parse_deprecated() @@ -779,6 +781,7 @@ static inline int nlmsg_parse_deprecated(const struct nlmsghdr *nlh, int hdrlen, * @hdrlen: length of family specific header * @tb: destination array with maxtype+1 elements * @maxtype: maximum attribute type to be expected + * @policy: validation policy * @extack: extended ACK report struct * * See nla_parse_deprecated_strict() @@ -814,7 +817,6 @@ static inline struct nlattr *nlmsg_find_attr(const struct nlmsghdr *nlh, * @len: length of attribute stream * @maxtype: maximum attribute type to be expected * @policy: validation policy - * @validate: validation strictness * @extack: extended ACK report struct * * Validates all attributes in the specified attribute stream against the -- 2.17.1