Commit 9a1f37eb authored by Peter Zijlstra's avatar Peter Zijlstra

apparmor: Free up __cleanup() name

In order to use __cleanup for __attribute__((__cleanup__(func))) the
name must not be used for anything else. Avoid the conflict.
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarJohn Johansen <john.johansen@canonical.com>
Link: https://lkml.kernel.org/r/20230612093537.536441207%40infradead.org
parent f62141ac
...@@ -232,7 +232,7 @@ void aa_policy_destroy(struct aa_policy *policy); ...@@ -232,7 +232,7 @@ void aa_policy_destroy(struct aa_policy *policy);
*/ */
#define fn_label_build(L, P, GFP, FN) \ #define fn_label_build(L, P, GFP, FN) \
({ \ ({ \
__label__ __cleanup, __done; \ __label__ __do_cleanup, __done; \
struct aa_label *__new_; \ struct aa_label *__new_; \
\ \
if ((L)->size > 1) { \ if ((L)->size > 1) { \
...@@ -250,7 +250,7 @@ void aa_policy_destroy(struct aa_policy *policy); ...@@ -250,7 +250,7 @@ void aa_policy_destroy(struct aa_policy *policy);
__new_ = (FN); \ __new_ = (FN); \
AA_BUG(!__new_); \ AA_BUG(!__new_); \
if (IS_ERR(__new_)) \ if (IS_ERR(__new_)) \
goto __cleanup; \ goto __do_cleanup; \
__lvec[__j++] = __new_; \ __lvec[__j++] = __new_; \
} \ } \
for (__j = __count = 0; __j < (L)->size; __j++) \ for (__j = __count = 0; __j < (L)->size; __j++) \
...@@ -272,7 +272,7 @@ void aa_policy_destroy(struct aa_policy *policy); ...@@ -272,7 +272,7 @@ void aa_policy_destroy(struct aa_policy *policy);
vec_cleanup(profile, __pvec, __count); \ vec_cleanup(profile, __pvec, __count); \
} else \ } else \
__new_ = NULL; \ __new_ = NULL; \
__cleanup: \ __do_cleanup: \
vec_cleanup(label, __lvec, (L)->size); \ vec_cleanup(label, __lvec, (L)->size); \
} else { \ } else { \
(P) = labels_profile(L); \ (P) = labels_profile(L); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment