diff mbox series

[-next,10/11] apparmor: Fix kernel-doc warnings in apparmor/policy_compat.c

Message ID 20230625011349.1457810-11-cuigaosheng1@huawei.com (mailing list archive)
State Handled Elsewhere
Headers show
Series Fix kernel-doc warnings in apparmor | expand

Commit Message

Gaosheng Cui June 25, 2023, 1:13 a.m. UTC
Fix kernel-doc warnings:

security/apparmor/policy_compat.c:151: warning: Function parameter
or member 'size' not described in 'compute_fperms'

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 security/apparmor/policy_compat.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Georgia Garcia July 7, 2023, 1:56 p.m. UTC | #1
Hi, Gaosheng Cui

On Sun, 2023-06-25 at 09:13 +0800, Gaosheng Cui wrote:
> Fix kernel-doc warnings:
> 
> security/apparmor/policy_compat.c:151: warning: Function parameter
> or member 'size' not described in 'compute_fperms'
> 
> Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
> ---
>  security/apparmor/policy_compat.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/security/apparmor/policy_compat.c b/security/apparmor/policy_compat.c
> index 0cb02da8a319..18e4ddccf623 100644
> --- a/security/apparmor/policy_compat.c
> +++ b/security/apparmor/policy_compat.c
> @@ -143,6 +143,7 @@ static struct aa_perms compute_fperms_other(struct aa_dfa *dfa,
>   * compute_fperms - convert dfa compressed perms to internal perms and store
>   *		    them so they can be retrieved later.
>   * @dfa: a dfa using fperms to remap to internal permissions
> + * @size: the permission table size

I believe the size is returned, right?

>   *
>   * Returns: remapped perm table
>   */

Thanks,
Georgia
diff mbox series

Patch

diff --git a/security/apparmor/policy_compat.c b/security/apparmor/policy_compat.c
index 0cb02da8a319..18e4ddccf623 100644
--- a/security/apparmor/policy_compat.c
+++ b/security/apparmor/policy_compat.c
@@ -143,6 +143,7 @@  static struct aa_perms compute_fperms_other(struct aa_dfa *dfa,
  * compute_fperms - convert dfa compressed perms to internal perms and store
  *		    them so they can be retrieved later.
  * @dfa: a dfa using fperms to remap to internal permissions
+ * @size: the permission table size
  *
  * Returns: remapped perm table
  */