All of lore.kernel.org
 help / color / mirror / Atom feed
* [pcmoore-selinux:working-io_uring 6/8] include/linux/lsm_hook_defs.h:408:18: error: 'uring_sqpoll_default' defined but not used
@ 2021-09-13 22:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-13 22:27 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 9148 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git working-io_uring
head:   b8fef95d09092badf35d455291f2149c2813d175
commit: 6785abd6e03ed17ef865c2369f6916bc1a09ffe8 [6/8] lsm,io_uring: add LSM hooks to io_uring
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-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://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git/commit/?id=6785abd6e03ed17ef865c2369f6916bc1a09ffe8
        git remote add pcmoore-selinux https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git
        git fetch --no-tags pcmoore-selinux working-io_uring
        git checkout 6785abd6e03ed17ef865c2369f6916bc1a09ffe8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=xtensa 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 68937 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-13 22:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-13 22:27 [pcmoore-selinux:working-io_uring 6/8] include/linux/lsm_hook_defs.h:408:18: error: 'uring_sqpoll_default' defined but not used kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.