diff options
author | John Johansen <john.johansen@canonical.com> | 2024-11-10 15:29:31 +0300 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2024-11-27 06:21:06 +0300 |
commit | 04b5f0a5bfee5a5886dc19296c90d9a6964275e4 (patch) | |
tree | 0d6133af513aa2e3e63b293ae9bc46ca7638abb5 /rust/helpers/build_bug.c | |
parent | 8acf7ad02d1b1bc6dbb1fc78a295582d0d336502 (diff) | |
download | linux-04b5f0a5bfee5a5886dc19296c90d9a6964275e4.tar.xz |
apparmor: lift new_profile declaration to remove C23 extension warning
the kernel test robot reports a C23 extension
warning: label followed by a declaration is a C23 extension
[-Wc23-extensions]
696 | struct aa_profile *new_profile = NULL;
Instead of adding a null statement creating a C99 style inline var
declaration lift the label declaration out of the block so that it no
longer immediatedly follows the label.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202411101808.AI8YG6cs-lkp@intel.com/
Fixes: ee650b3820f3 ("apparmor: properly handle cx/px lookup failure for complain")
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions