Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp952184pxb; Thu, 12 Nov 2020 23:30:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkDK/I3bOLSfmYwEYIZ4ntgE+BkaEa+AtuWHFsh1Pg/ciU1+6SYShNUXZ+6RJc7ATI8P7H X-Received: by 2002:a17:906:cd0f:: with SMTP id oz15mr753415ejb.228.1605252605029; Thu, 12 Nov 2020 23:30:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605252605; cv=none; d=google.com; s=arc-20160816; b=LNJpJBT9WWxSAmYD0oZmJH2osQXHiyDLH8kQNNmvn9KZkIS/TlTbijUaUGV/sNRmmK EyDcr/VU4c8Ld+sHCvWFx9iG4Er2i5dhHexpzBI7VUIyfj1OgnWodIEvlcd9z7Ng5OQy Hjw6KdIyz0sWWi7cqfB0DkylcrkumvBdFC1bBVHtn9MkoHq+gwurheHp+Yo9L0Z0OFjm 0QasDB4TmWpcNvJR7zZpkApbPKBkvyvpZdpPJeGRD0pjv7cNNDHZrgVQlTOAU8r6u88d ZqD2XoaOpn/R3cg2RyZlf8huBH/yR6SwSa8fLF+GSebmmGtHRriPM7q4FlsmGjuCB5kW U5JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:message-id:date:subject:cc:from; bh=yF/wRg7KJkfdQ2P6ljuIt7nFjVcKVv+q9BxyrttZMWE=; b=yM8/efqZkSu2OLkGWRUudnFJVs6UmSUvdTS+e1lkyF9fVNMC+IHnvl/xc0zRQTbWeW uuHfvo+CdhvxORx7v6RVSEfnwyc41a58mWTf7VMOuugtr4aByVnia5vCOUMv0tKhKcsq Efkm6vh4qox+VxfSMV4luMmOr0Q3uk8FsGxYGgxBqI+0aewJGHJglc3SGzcxZhYFmZvr 6tA9aEtWLDofNwZVKE5JoLEGnfTFaBl3BCmC3cGvg1Kd7iEVO39kgr+8q7ss4u6/hBxz 479sBP5vbIV2ucF8aoesOtx123TOlJXUeQJoD3t2+dU+0XiJW+zVrqpFNI8vhoQ5QhRc 8IPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s6si5633554ejb.276.2020.11.12.23.29.42; Thu, 12 Nov 2020 23:30:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726362AbgKMH1b (ORCPT + 99 others); Fri, 13 Nov 2020 02:27:31 -0500 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:47857 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbgKMH1b (ORCPT ); Fri, 13 Nov 2020 02:27:31 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UFAj9js_1605252447; Received: from aliy80.localdomain(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UFAj9js_1605252447) by smtp.aliyun-inc.com(127.0.0.1); Fri, 13 Nov 2020 15:27:27 +0800 From: Alex Shi Cc: Casey Schaufler , James Morris , "Serge E. Hallyn" , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Smack: fix kernel-doc interface on functions Date: Fri, 13 Nov 2020 15:26:59 +0800 Message-Id: <1605252419-64251-1-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The are some kernel-doc interface issues: security/smack/smackfs.c:1950: warning: Function parameter or member 'list' not described in 'smk_parse_label_list' security/smack/smackfs.c:1950: warning: Excess function parameter 'private' description in 'smk_parse_label_list' security/smack/smackfs.c:1979: warning: Function parameter or member 'list' not described in 'smk_destroy_label_list' security/smack/smackfs.c:1979: warning: Excess function parameter 'head' description in 'smk_destroy_label_list' security/smack/smackfs.c:2141: warning: Function parameter or member 'count' not described in 'smk_read_logging' security/smack/smackfs.c:2141: warning: Excess function parameter 'cn' description in 'smk_read_logging' security/smack/smackfs.c:2278: warning: Function parameter or member 'format' not described in 'smk_user_access' Correct them in this patch. Signed-off-by: Alex Shi Cc: Casey Schaufler Cc: James Morris Cc: "Serge E. Hallyn" Cc: linux-security-module@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- security/smack/smackfs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c index e567b4baf3a0..5d44b7d258ef 100644 --- a/security/smack/smackfs.c +++ b/security/smack/smackfs.c @@ -1942,7 +1942,7 @@ static void smk_list_swap_rcu(struct list_head *public, * smk_parse_label_list - parse list of Smack labels, separated by spaces * * @data: the string to parse - * @private: destination list + * @list: destination list * * Returns zero on success or error code, as appropriate */ @@ -1973,7 +1973,7 @@ static int smk_parse_label_list(char *data, struct list_head *list) /** * smk_destroy_label_list - destroy a list of smack_known_list_elem - * @head: header pointer of the list to destroy + * @list: header pointer of the list to destroy */ void smk_destroy_label_list(struct list_head *list) { @@ -2131,7 +2131,7 @@ static const struct file_operations smk_unconfined_ops = { * smk_read_logging - read() for /smack/logging * @filp: file pointer, not actually used * @buf: where to put the result - * @cn: maximum to send along + * @count: maximum to send along * @ppos: where to start * * Returns number of bytes read or error code, as appropriate @@ -2272,6 +2272,7 @@ static const struct file_operations smk_load_self_ops = { * @buf: data from user space * @count: bytes sent * @ppos: where to start - must be 0 + * @format: /smack/load or /smack/load2 or /smack/change-rule format. */ static ssize_t smk_user_access(struct file *file, const char __user *buf, size_t count, loff_t *ppos, int format) -- 2.29.GIT