Skip to content

Commit

Permalink
apparmor: Fix kernel-doc warnings in apparmor/match.c
Browse files Browse the repository at this point in the history
Fix kernel-doc warnings:

security/apparmor/match.c:148: warning: Function parameter or member
'tables' not described in 'verify_table_headers'
security/apparmor/match.c:289: warning: Excess function parameter
'kr' description in 'aa_dfa_free_kref'
security/apparmor/match.c:289: warning: Function parameter or member
'kref' not described in 'aa_dfa_free_kref'

Signed-off-by: Gaosheng Cui <[email protected]>
Signed-off-by: John Johansen <[email protected]>
  • Loading branch information
gscui authored and John Johansen committed Jul 10, 2023
1 parent 8921482 commit 7abbbd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/apparmor/match.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static struct table_header *unpack_table(char *blob, size_t bsize)

/**
* verify_table_headers - verify that the tables headers are as expected
* @tables - array of dfa tables to check (NOT NULL)
* @tables: array of dfa tables to check (NOT NULL)
* @flags: flags controlling what type of accept table are acceptable
*
* Assumes dfa has gone through the first pass verification done by unpacking
Expand Down Expand Up @@ -283,7 +283,7 @@ static void dfa_free(struct aa_dfa *dfa)

/**
* aa_dfa_free_kref - free aa_dfa by kref (called by aa_put_dfa)
* @kr: kref callback for freeing of a dfa (NOT NULL)
* @kref: kref callback for freeing of a dfa (NOT NULL)
*/
void aa_dfa_free_kref(struct kref *kref)
{
Expand Down

0 comments on commit 7abbbd5

Please sign in to comment.