Skip to content

Commit f378973

Browse files
Yang Lijrjohansen
authored andcommitted
apparmor: Fix some kernel-doc comments
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 <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent a3f215e commit f378973

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

security/apparmor/policy_ns.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns)
5454
}
5555

5656
/**
57-
* aa_na_name - Find the ns name to display for @view from @curr
58-
* @curr - current namespace (NOT NULL)
59-
* @view - namespace attempting to view (NOT NULL)
60-
* @subns - are subns visible
57+
* aa_ns_name - Find the ns name to display for @view from @curr
58+
* @curr: current namespace (NOT NULL)
59+
* @view: namespace attempting to view (NOT NULL)
60+
* @subns: are subns visible
6161
*
6262
* Returns: name of @view visible from @curr
6363
*/
@@ -200,7 +200,7 @@ struct aa_ns *aa_find_ns(struct aa_ns *root, const char *name)
200200

201201
/**
202202
* __aa_lookupn_ns - lookup the namespace matching @hname
203-
* @base: base list to start looking up profile name from (NOT NULL)
203+
* @view: namespace to search in (NOT NULL)
204204
* @hname: hierarchical ns name (NOT NULL)
205205
* @n: length of @hname
206206
*
@@ -285,7 +285,7 @@ static struct aa_ns *__aa_create_ns(struct aa_ns *parent, const char *name,
285285
}
286286

287287
/**
288-
* aa_create_ns - create an ns, fail if it already exists
288+
* __aa_find_or_create_ns - create an ns, fail if it already exists
289289
* @parent: the parent of the namespace being created
290290
* @name: the name of the namespace
291291
* @dir: if not null the dir to put the ns entries in

0 commit comments

Comments
 (0)