# \[PATCH\] apparmor: Remove the repeated declaration

- 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/05/16283178/t

## \[PATCH\] apparmor: Remove the repeated declaration

- From: Shaokun Zhang \<hidden\>
- Date: 2021-05-29 08:41:03 
- Message: https://ratatoskr.run/linux-security-module/2021/05/16283178.md

```text
Function 'aa_labelset_destroy' and 'aa_labelset_init' are declared
twice, so remove the repeated declaration and unnecessary blank line.

Cc: John Johansen <john.johansen@canonical.com>
Cc: James Morris <jmorris@namei.org>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Signed-off-by: Shaokun Zhang <redacted>
---
 security/apparmor/include/label.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/security/apparmor/include/label.h b/security/apparmor/include/label.h
index 1e90384b1523..18b290f73b8b 100644
--- a/security/apparmor/include/label.h
+++ b/security/apparmor/include/label.h
@@ -77,10 +77,6 @@ struct aa_labelset {
 #define __labelset_for_each(LS, N) \
 	for ((N) = rb_first(&(LS)->root); (N); (N) = rb_next(N))
 
-void aa_labelset_destroy(struct aa_labelset *ls);
-void aa_labelset_init(struct aa_labelset *ls);
-
-
 enum label_flags {
 	FLAG_HAT = 1,			/* profile is a hat */
 	FLAG_UNCONFINED = 2,		/* label unconfined only if all */
-- 
2.7.4

```

## Re: \[PATCH\] apparmor: Remove the repeated declaration

- From: John Johansen \<john.johansen@canonical.com\>
- Date: 2021-06-01 22:49:02 
- Message: https://ratatoskr.run/linux-security-module/2021/06/16283179.md

```text
On 5/29/21 1:40 AM, Shaokun Zhang wrote:
> Function 'aa_labelset_destroy' and 'aa_labelset_init' are declared
> twice, so remove the repeated declaration and unnecessary blank line.
> 
> Cc: John Johansen <john.johansen@canonical.com>
> Cc: James Morris <jmorris@namei.org>
> Cc: "Serge E. Hallyn" <serge@hallyn.com>
> Signed-off-by: Shaokun Zhang <redacted>

Thanks,

Acked-by: John Johansen <john.johansen@canonical.com>

I have pulled this into my tree

> ---
>  security/apparmor/include/label.h | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/security/apparmor/include/label.h b/security/apparmor/include/label.h
> index 1e90384b1523..18b290f73b8b 100644
> --- a/security/apparmor/include/label.h
> +++ b/security/apparmor/include/label.h
> @@ -77,10 +77,6 @@ struct aa_labelset {
>  #define __labelset_for_each(LS, N) \
>  	for ((N) = rb_first(&(LS)->root); (N); (N) = rb_next(N))
>  
> -void aa_labelset_destroy(struct aa_labelset *ls);
> -void aa_labelset_init(struct aa_labelset *ls);
> -
> -
>  enum label_flags {
>  	FLAG_HAT = 1,			/* profile is a hat */
>  	FLAG_UNCONFINED = 2,		/* label unconfined only if all */
> 

```
