Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3016923imw; Sun, 17 Jul 2022 23:44:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vhAv7LIDSb+sIf0NIhcXxUCoDs+UpeyF6/MyMICQJKYes+4eEzKGQm7QO0OVQTnjCURmt8 X-Received: by 2002:a17:90a:f686:b0:1ef:831d:fd48 with SMTP id cl6-20020a17090af68600b001ef831dfd48mr30783361pjb.183.1658126687062; Sun, 17 Jul 2022 23:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658126687; cv=none; d=google.com; s=arc-20160816; b=VIohNuE8nYOw4d7KQygARuH1MEKr9nAmyLlfnFBfvHJPNrRPzVZSC08j3K6kkkhh66 3sgkGBPEzrxLbUFjMJOmSTkOGAfv37DJMGxPACE5GfI5celUYC7tNa4JDY6B+Bl4NozZ I7KZpznOdC+EM0GFE33trzzpNiy7fHLhkiAgbAzgrWE3A3v4lZuw9tW8oyW1f9OU8cMf dlBZ0nuJgYzHEnuYyY734XGB22Ado2SByCrHsaxlN2vakKQuNoFkBdQuaatm9aNUSdfW KHtqnSuUwb0g5g6GJC4bawjw3mpvnch0bmTi7ok6gLQYoB75vURGT/P61mnkJo87sePt LMeQ== 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=K56Hy3kgPJCFc6isZozKt0tPR9/jsye/UIzkqxXD+yg=; b=MX/Q7p23hfIfWEeZfmZ+EDSlt8wNKjOhTZNcyGfMsRC3dC6tRTHGdArFuDNxpNuqlZ 6f7nWBr0+Vh4FSTvuLxC6JXAqa/+8bW778B2lIUmgxTs9gO3PAbI8Ql0PZyiVY5iQwiq zF9NLOTY5aBNRlwnKMDYRHZ5ezAlUNr3r6mtlw/51aSTxqefkdJ0h+Co0J02//ZAOLL4 LM8F8FUiTSbFE7RRaRd35mJM/M9vyytiV/q3+2YV+c0MDY17oVZXoaQK3pscJQKIi5zx TuYhcMvAVUsa2LJOoEopTlERtgbfzqHCxuyHF1ngB7wF8gxqwmgzmDjOZQB2Q0GUD4Vs ZD1Q== 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 i10-20020a17090ad34a00b001f09f319fe2si12981034pjx.57.2022.07.17.23.44.32; Sun, 17 Jul 2022 23:44:47 -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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229585AbiGRGa3 (ORCPT + 99 others); Mon, 18 Jul 2022 02:30:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232841AbiGRGa1 (ORCPT ); Mon, 18 Jul 2022 02:30:27 -0400 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAAB315FFB; Sun, 17 Jul 2022 23:30:26 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0VJe-3rM_1658125823; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VJe-3rM_1658125823) by smtp.aliyun-inc.com; Mon, 18 Jul 2022 14:30:24 +0800 From: Yang Li To: john.johansen@canonical.com Cc: paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] apparmor: Fix some kernel-doc comments Date: Mon, 18 Jul 2022 14:30:22 +0800 Message-Id: <20220718063022.129998-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,RCVD_IN_MSPIKE_H2, 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 Remove warnings found by running scripts/kernel-doc, which is caused by using 'make W=1'. security/apparmor/policy_ns.c:65: warning: Function parameter or member 'curr' not described in 'aa_ns_name' security/apparmor/policy_ns.c:65: warning: Function parameter or member 'view' not described in 'aa_ns_name' security/apparmor/policy_ns.c:65: warning: Function parameter or member 'subns' not described in 'aa_ns_name' security/apparmor/policy_ns.c:65: warning: expecting prototype for aa_na_name(). Prototype was for aa_ns_name() instead security/apparmor/policy_ns.c:214: warning: Function parameter or member 'view' not described in '__aa_lookupn_ns' security/apparmor/policy_ns.c:214: warning: Excess function parameter 'base' description in '__aa_lookupn_ns' security/apparmor/policy_ns.c:297: warning: expecting prototype for aa_create_ns(). Prototype was for __aa_find_or_create_ns() instead Reported-by: Abaci Robot Signed-off-by: Yang Li --- security/apparmor/policy_ns.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/security/apparmor/policy_ns.c b/security/apparmor/policy_ns.c index 300953a02a24..0ef268d6554d 100644 --- a/security/apparmor/policy_ns.c +++ b/security/apparmor/policy_ns.c @@ -54,10 +54,10 @@ bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns) } /** - * aa_na_name - Find the ns name to display for @view from @curr - * @curr - current namespace (NOT NULL) - * @view - namespace attempting to view (NOT NULL) - * @subns - are subns visible + * aa_ns_name - Find the ns name to display for @view from @curr + * @curr: current namespace (NOT NULL) + * @view: namespace attempting to view (NOT NULL) + * @subns: are subns visible * * Returns: name of @view visible from @curr */ @@ -200,7 +200,7 @@ struct aa_ns *aa_find_ns(struct aa_ns *root, const char *name) /** * __aa_lookupn_ns - lookup the namespace matching @hname - * @base: base list to start looking up profile name from (NOT NULL) + * @view: namespace to search in (NOT NULL) * @hname: hierarchical ns name (NOT NULL) * @n: length of @hname * @@ -285,7 +285,7 @@ static struct aa_ns *__aa_create_ns(struct aa_ns *parent, const char *name, } /** - * aa_create_ns - create an ns, fail if it already exists + * __aa_find_or_create_ns - create an ns, fail if it already exists * @parent: the parent of the namespace being created * @name: the name of the namespace * @dir: if not null the dir to put the ns entries in -- 2.20.1.7.g153144c