aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/gcc-generate-rtl-pass.h
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2021-10-13 17:28:48 +0000
committerPaul Moore <[email protected]>2021-10-14 20:07:53 +0000
commit86dd9fd52e1449084c58c1ebb1f099a2ccc85091 (patch)
tree8965793c663a716fd61bc2f2cc8b61209e62de03 /scripts/gcc-plugins/gcc-generate-rtl-pass.h
parentselinux: fix all of the W=1 build warnings (diff)
downloadkernel-86dd9fd52e1449084c58c1ebb1f099a2ccc85091.tar.gz
kernel-86dd9fd52e1449084c58c1ebb1f099a2ccc85091.zip
LSM: Avoid warnings about potentially unused hook variables
Building with W=1 shows many unused const variable warnings. These can be silenced, as we're well aware of their being potentially unused: ./include/linux/lsm_hook_defs.h:36:18: error: 'ptrace_access_check_default' defined but not used [-Werror=unused-const-variable=] 36 | LSM_HOOK(int, 0, ptrace_access_check, struct task_struct *child, | ^~~~~~~~~~~~~~~~~~~ security/security.c:706:32: note: in definition of macro 'LSM_RET_DEFAULT' 706 | #define LSM_RET_DEFAULT(NAME) (NAME##_default) | ^~~~ security/security.c:711:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int' 711 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME) | ^~~~~~~~~~~~~~~~~~~~~~~~ ./include/linux/lsm_hook_defs.h:36:1: note: in expansion of macro 'LSM_HOOK' 36 | LSM_HOOK(int, 0, ptrace_access_check, struct task_struct *child, | ^~~~~~~~ Cc: James Morris <[email protected]> Cc: "Serge E. Hallyn" <[email protected]> Cc: Paul Moore <[email protected]> Cc: Casey Schaufler <[email protected]> Cc: KP Singh <[email protected]> Cc: [email protected] Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/linux-mm/[email protected]/ Fixes: 98e828a0650f ("security: Refactor declaration of LSM hooks") Signed-off-by: Kees Cook <[email protected]> Acked-by: James Morris <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions