# \[PATCH -next\] apparmor: fix doc warning

- Subsystems: SECURITY SUBSYSTEM, APPARMOR SECURITY MODULE, THE REST
- Maintainers: Paul Moore, James Morris, "Serge E. Hallyn", John Johansen, John Johansen, Georgia Garcia, Linus Torvalds
- List: linux-security-module
- 2 messages, 2 authors
- Page: https://ratatoskr.run/linux-security-module/2021/06/1404286/t

## \[PATCH -next\] apparmor: fix doc warning

- From: ChenXiaoSong \<hidden\>
- Date: 2021-06-07 06:24:08 
- Message: https://ratatoskr.run/linux-security-module/2021/06/1404286.md

```text
Fix gcc W=1 warning:

security/apparmor/apparmorfs.c:2125: warning: Function parameter or member 'p' not described in '__next_profile'

Signed-off-by: ChenXiaoSong <redacted>
---
 security/apparmor/apparmorfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c
index 5bb9b9910aee..4720b8b9239c 100644
--- a/security/apparmor/apparmorfs.c
+++ b/security/apparmor/apparmorfs.c
@@ -2114,7 +2114,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
  *
-- 
2.25.4

```

## Re: \[PATCH -next\] apparmor: fix doc warning

- From: John Johansen \<john.johansen@canonical.com\>
- Date: 2021-06-08 06:26:22 
- Message: https://ratatoskr.run/linux-security-module/2021/06/1405963.md

```text
On 6/6/21 11:30 PM, ChenXiaoSong wrote:
> Fix gcc W=1 warning:
> 
> security/apparmor/apparmorfs.c:2125: warning: Function parameter or member 'p' not described in '__next_profile'
> 
> Signed-off-by: ChenXiaoSong <redacted>

Thanks I have pulled this into my tree

> ---
>  security/apparmor/apparmorfs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c
> index 5bb9b9910aee..4720b8b9239c 100644
> --- a/security/apparmor/apparmorfs.c
> +++ b/security/apparmor/apparmorfs.c
> @@ -2114,7 +2114,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
>   *
> 

```
