tree: https://github.com/SELinuxProject/selinux-kernel next head: f5d0e5e9d72d3a06018efbfa3adccc0e09a129f9 commit: cdc1404a40461faba23c5a5ad40adcc7eecc1580 [6/10] lsm,io_uring: add LSM hooks to io_uring config: s390-allyesconfig (attached as .config) compiler: s390-linux-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/SELinuxProject/selinux-kernel/commit/cdc1404a40461faba23c5a5ad40adcc7eecc1580 git remote add selinuxproject-selinux https://github.com/SELinuxProject/selinux-kernel git fetch --no-tags selinuxproject-selinux next git checkout cdc1404a40461faba23c5a5ad40adcc7eecc1580 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=s390 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> include/linux/lsm_hook_defs.h:408:18: error: 'uring_sqpoll_default' defined but not used [-Werror=unused-const-variable=] 408 | LSM_HOOK(int, 0, uring_sqpoll, void) | ^~~~~~~~~~~~ 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:408:1: note: in expansion of macro 'LSM_HOOK' 408 | LSM_HOOK(int, 0, uring_sqpoll, void) | ^~~~~~~~ >> include/linux/lsm_hook_defs.h:407:18: error: 'uring_override_creds_default' defined but not used [-Werror=unused-const-variable=] 407 | LSM_HOOK(int, 0, uring_override_creds, const struct cred *new) | ^~~~~~~~~~~~~~~~~~~~ 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:407:1: note: in expansion of macro 'LSM_HOOK' 407 | LSM_HOOK(int, 0, uring_override_creds, const struct cred *new) | ^~~~~~~~ include/linux/lsm_hook_defs.h:403:18: error: 'perf_event_write_default' defined but not used [-Werror=unused-const-variable=] 403 | LSM_HOOK(int, 0, perf_event_write, struct perf_event *event) | ^~~~~~~~~~~~~~~~ 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:403:1: note: in expansion of macro 'LSM_HOOK' 403 | LSM_HOOK(int, 0, perf_event_write, struct perf_event *event) | ^~~~~~~~ include/linux/lsm_hook_defs.h:402:18: error: 'perf_event_read_default' defined but not used [-Werror=unused-const-variable=] 402 | LSM_HOOK(int, 0, perf_event_read, struct perf_event *event) | ^~~~~~~~~~~~~~~ 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:402:1: note: in expansion of macro 'LSM_HOOK' 402 | LSM_HOOK(int, 0, perf_event_read, struct perf_event *event) | ^~~~~~~~ include/linux/lsm_hook_defs.h:400:18: error: 'perf_event_alloc_default' defined but not used [-Werror=unused-const-variable=] 400 | LSM_HOOK(int, 0, perf_event_alloc, struct perf_event *event) | ^~~~~~~~~~~~~~~~ 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:400:1: note: in expansion of macro 'LSM_HOOK' 400 | LSM_HOOK(int, 0, perf_event_alloc, struct perf_event *event) | ^~~~~~~~ include/linux/lsm_hook_defs.h:399:18: error: 'perf_event_open_default' defined but not used [-Werror=unused-const-variable=] 399 | LSM_HOOK(int, 0, perf_event_open, struct perf_event_attr *attr, int type) | ^~~~~~~~~~~~~~~ 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:399:1: note: in expansion of macro 'LSM_HOOK' 399 | LSM_HOOK(int, 0, perf_event_open, struct perf_event_attr *attr, int type) | ^~~~~~~~ include/linux/lsm_hook_defs.h:396:18: error: 'locked_down_default' defined but not used [-Werror=unused-const-variable=] 396 | LSM_HOOK(int, 0, locked_down, enum lockdown_reason what) | ^~~~~~~~~~~ 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:396:1: note: in expansion of macro 'LSM_HOOK' 396 | LSM_HOOK(int, 0, locked_down, enum lockdown_reason what) | ^~~~~~~~ include/linux/lsm_hook_defs.h:392:18: error: 'bpf_prog_alloc_security_default' defined but not used [-Werror=unused-const-variable=] 392 | LSM_HOOK(int, 0, bpf_prog_alloc_security, struct bpf_prog_aux *aux) | ^~~~~~~~~~~~~~~~~~~~~~~ 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:392:1: note: in expansion of macro 'LSM_HOOK' 392 | LSM_HOOK(int, 0, bpf_prog_alloc_security, struct bpf_prog_aux *aux) | ^~~~~~~~ include/linux/lsm_hook_defs.h:390:18: error: 'bpf_map_alloc_security_default' defined but not used [-Werror=unused-const-variable=] 390 | LSM_HOOK(int, 0, bpf_map_alloc_security, struct bpf_map *map) | ^~~~~~~~~~~~~~~~~~~~~~ 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:390:1: note: in expansion of macro 'LSM_HOOK' 390 | LSM_HOOK(int, 0, bpf_map_alloc_security, struct bpf_map *map) | ^~~~~~~~ include/linux/lsm_hook_defs.h:389:18: error: 'bpf_prog_default' defined but not used [-Werror=unused-const-variable=] 389 | LSM_HOOK(int, 0, bpf_prog, struct bpf_prog *prog) | ^~~~~~~~ security/security.c:706:32: note: in definition of macro 'LSM_RET_DEFAULT' 706 | #define LSM_RET_DEFAULT(NAME) (NAME##_default) vim +/uring_sqpoll_default +408 include/linux/lsm_hook_defs.h 405 406 #ifdef CONFIG_IO_URING > 407 LSM_HOOK(int, 0, uring_override_creds, const struct cred *new) > 408 LSM_HOOK(int, 0, uring_sqpoll, void) --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org