Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp379771pxk; Thu, 17 Sep 2020 05:44:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhNF+CCZzkRSDvF0fQfQuI4DH8nqnOU9K3pem0A4kQhBA0CDO29Q9sVoACEGyNXDoAsdAh X-Received: by 2002:a17:907:94cf:: with SMTP id dn15mr31271773ejc.114.1600346697888; Thu, 17 Sep 2020 05:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600346697; cv=none; d=google.com; s=arc-20160816; b=VzuuLap04wU/LzBt5wXoip65wqhiIb6u8mNF3+pqd2hzfylRjVb9V8GKluSqTnUZTg O0aVgwiiBsBP1m4xt/nbqYMkXtL1HlNqZW6X+hJdZTH15PBCz6QUzWvvLnsY/FeNXD8Y RyTNPWAXM87rtn+6bYgKdGSjD5ZMJWSSBYMryI3S4jAplG/3xtbYufx/kuyb69sRMw5d +GHqJNYe7H0cS1+BK2F+am3oXQCOxvCFs+URsY9hI1oP4r0uAL4K5ndVCMMucuKv3p21 IKyAQHgtpcm3cJiOwHrzaV1l8mq06NsSUfhb8rzcQ5PY0keZnxZotcYIcM4yuSTlTFp6 vylQ== 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=RTa2h92FZRGaAkrTxNKhv5t2dL1eQinkCjmfPh3DQx0=; b=MVH4NIFTQiV1JoarfyIbuWpBaBChxKepCw+W1DGIzoqwtBfSLQKs/oPufBvbtjUf/E XLY6NWmcVbMZLh1ukYzWhwKV0o8n/XeBqQL0mTIOTfYQ0lipn9FJhFqCG5V2H+d1PvS2 qaWoBzvDXRl+xGuro8Uf7H62FT0681qnwJKbgC8gqH8EyM/o33Se8ZhSxLSiqud83/tU YnSs+awvRGXM8q/GwKRBQHISMwMAEr4SBfLtL+r7r9LzEhDmL9nYfr5KneBbBIWsHh49 VuDHR5TYEP3o19geZDqdLQsQpJUe0X+e1OlI8pRG8MrL7/3+PJCndxYZN/MWdd3cpCTS ek+Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u12si13490910edy.390.2020.09.17.05.44.34; Thu, 17 Sep 2020 05:44:57 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726945AbgIQMnW (ORCPT + 99 others); Thu, 17 Sep 2020 08:43:22 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56492 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727033AbgIQMkL (ORCPT ); Thu, 17 Sep 2020 08:40:11 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 54A5E59A57131FDCA942; Thu, 17 Sep 2020 20:22:26 +0800 (CST) Received: from huawei.com (10.175.104.82) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 17 Sep 2020 20:22:25 +0800 From: Huang Guobin To: , , CC: , Subject: [PATCH -next] apparmor: Fix several kernel-doc warnings Date: Thu, 17 Sep 2020 08:32:50 -0400 Message-ID: <20200917123250.206639-1-huangguobin4@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.104.82] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): security/apparmor/apparmorfs.c:2127: warning: Excess function parameter 'profile' description in '__next_profile' security/apparmor/domain.c:1292: warning: Excess function parameter 'onexec' description in 'aa_change_profile' security/apparmor/domain.c:136: warning: Excess function parameter 'start' description in 'label_compound_match' Rename profile to p. @onexec in 'aa_change_profile' and @start in 'label_compound_match' are not in use, Remove it. Signed-off-by: Huang Guobin --- security/apparmor/apparmorfs.c | 2 +- security/apparmor/domain.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index 5fd4a64e431f..f00a372be7b6 100644 --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c @@ -2116,7 +2116,7 @@ static struct aa_profile *__first_profile(struct aa_ns *root, /** * __next_profile - step to the next profile in a profile tree - * @profile: current profile in tree (NOT NULL) + * @p: current profile in tree (NOT NULL) * * Perform a depth first traversal on the profile tree in a namespace * diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c index f919ebd042fd..12a9d80cd63a 100644 --- a/security/apparmor/domain.c +++ b/security/apparmor/domain.c @@ -178,7 +178,6 @@ static int label_compound_match(struct aa_profile *profile, * @profile: profile to find perms for * @label: label to check access permissions for * @stack: whether this is a stacking request - * @start: state to start match in * @subns: whether to do permission checks on components in a subns * @request: permissions to request * @perms: an initialized perms struct to add accumulation to @@ -1277,14 +1276,11 @@ static int change_profile_perms_wrapper(const char *op, const char *name, /** * aa_change_profile - perform a one-way profile transition * @fqname: name of profile may include namespace (NOT NULL) - * @onexec: whether this transition is to take place immediately or at exec * @flags: flags affecting change behavior * * Change to new profile @name. Unlike with hats, there is no way * to change back. If @name isn't specified the current profile name is * used. - * If @onexec then the transition is delayed until - * the next exec. * * Returns %0 on success, error otherwise. */ -- 2.25.1