* [bytedance:5.15-velinux 92/92] include/linux/lsm_hook_defs.h:411:18: warning: 'uring_cmd_default' defined but not used
@ 2025-07-16 16:23 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-16 16:23 UTC (permalink / raw)
To: jason.zeng, lin.x.wang, pei.p.jia; +Cc: oe-kbuild-all
Hi Luis,
FYI, the error/warning still remains.
tree: https://github.com/bytedance/kernel.git 5.15-velinux
head: c71e88ad12bfbc44f855b681ef923e1acc2e984a
commit: e1da86f75440e97049e698152538237c736a8cfa [92/92] lsm,io_uring: add LSM hooks for the new uring_cmd file op
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250717/202507170020.FTOuQlC1-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250717/202507170020.FTOuQlC1-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507170020.FTOuQlC1-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> include/linux/lsm_hook_defs.h:411:18: warning: 'uring_cmd_default' defined but not used [-Wunused-const-variable=]
411 | LSM_HOOK(int, 0, uring_cmd, struct io_uring_cmd *ioucmd)
| ^~~~~~~~~
security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
713 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:411:1: note: in expansion of macro 'LSM_HOOK'
411 | LSM_HOOK(int, 0, uring_cmd, struct io_uring_cmd *ioucmd)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:410:18: warning: 'uring_sqpoll_default' defined but not used [-Wunused-const-variable=]
410 | LSM_HOOK(int, 0, uring_sqpoll, void)
| ^~~~~~~~~~~~
security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
713 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:410:1: note: in expansion of macro 'LSM_HOOK'
410 | LSM_HOOK(int, 0, uring_sqpoll, void)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:409:18: warning: 'uring_override_creds_default' defined but not used [-Wunused-const-variable=]
409 | LSM_HOOK(int, 0, uring_override_creds, const struct cred *new)
| ^~~~~~~~~~~~~~~~~~~~
security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
713 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:409:1: note: in expansion of macro 'LSM_HOOK'
409 | LSM_HOOK(int, 0, uring_override_creds, const struct cred *new)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:405:18: warning: 'perf_event_write_default' defined but not used [-Wunused-const-variable=]
405 | LSM_HOOK(int, 0, perf_event_write, struct perf_event *event)
| ^~~~~~~~~~~~~~~~
security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
713 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:405:1: note: in expansion of macro 'LSM_HOOK'
405 | LSM_HOOK(int, 0, perf_event_write, struct perf_event *event)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:404:18: warning: 'perf_event_read_default' defined but not used [-Wunused-const-variable=]
404 | LSM_HOOK(int, 0, perf_event_read, struct perf_event *event)
| ^~~~~~~~~~~~~~~
security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
713 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:404:1: note: in expansion of macro 'LSM_HOOK'
404 | LSM_HOOK(int, 0, perf_event_read, struct perf_event *event)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:402:18: warning: 'perf_event_alloc_default' defined but not used [-Wunused-const-variable=]
402 | LSM_HOOK(int, 0, perf_event_alloc, struct perf_event *event)
| ^~~~~~~~~~~~~~~~
security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
713 | 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_alloc, struct perf_event *event)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:401:18: warning: 'perf_event_open_default' defined but not used [-Wunused-const-variable=]
401 | LSM_HOOK(int, 0, perf_event_open, struct perf_event_attr *attr, int type)
| ^~~~~~~~~~~~~~~
security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
713 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:401:1: note: in expansion of macro 'LSM_HOOK'
401 | LSM_HOOK(int, 0, perf_event_open, struct perf_event_attr *attr, int type)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:398:18: warning: 'locked_down_default' defined but not used [-Wunused-const-variable=]
398 | LSM_HOOK(int, 0, locked_down, enum lockdown_reason what)
| ^~~~~~~~~~~
security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
| ^~~~
security/security.c:713:9: note: in expansion of macro 'DECLARE_LSM_RET_DEFAULT_int'
713 | DECLARE_LSM_RET_DEFAULT_##RET(DEFAULT, NAME)
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/lsm_hook_defs.h:398:1: note: in expansion of macro 'LSM_HOOK'
398 | LSM_HOOK(int, 0, locked_down, enum lockdown_reason what)
| ^~~~~~~~
include/linux/lsm_hook_defs.h:394:18: warning: 'bpf_prog_alloc_security_default' defined but not used [-Wunused-const-variable=]
394 | LSM_HOOK(int, 0, bpf_prog_alloc_security, struct bpf_prog_aux *aux)
| ^~~~~~~~~~~~~~~~~~~~~~~
security/security.c:708:32: note: in definition of macro 'LSM_RET_DEFAULT'
708 | #define LSM_RET_DEFAULT(NAME) (NAME##_default)
vim +/uring_cmd_default +411 include/linux/lsm_hook_defs.h
407
408 #ifdef CONFIG_IO_URING
409 LSM_HOOK(int, 0, uring_override_creds, const struct cred *new)
410 LSM_HOOK(int, 0, uring_sqpoll, void)
> 411 LSM_HOOK(int, 0, uring_cmd, struct io_uring_cmd *ioucmd)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-16 16:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16 16:23 [bytedance:5.15-velinux 92/92] include/linux/lsm_hook_defs.h:411:18: warning: 'uring_cmd_default' defined but not used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).