Skip to contentSkip to conversation

security/selinux/ss/services.c: linux/parser.h is included more than once.

PATCH kernel test robot 2 participants 2 messages Apr 12, 2025 SELinux security module

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git next
head:   5d7ddc59b3d89b724a5aa8f30d0db94ff8d2d93f
commit: 8716451a4e57cc82f3656d7a71b67d3b5831ef3f [6/7] selinux: support wildcard match in genfscon
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)

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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

includecheck warnings: (new ones prefixed by >>)

>> security/selinux/ss/services.c: linux/parser.h is included more than once.

vim +49 security/selinux/ss/services.c

  > 49	#include <linux/parser.h>
    50	#include <linux/vmalloc.h>
    51	#include <linux/lsm_hooks.h>
  > 52	#include <linux/parser.h>
    53	#include <net/netlabel.h>
    54	
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
maintainer
#1 lore raw
Quoted 23 lines · kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git next
head:   5d7ddc59b3d89b724a5aa8f30d0db94ff8d2d93f
commit: 8716451a4e57cc82f3656d7a71b67d3b5831ef3f [6/7] selinux: support wildcard match in genfscon
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)

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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

includecheck warnings: (new ones prefixed by >>)

Quoted 1 line
Quoted 1 line

security/selinux/ss/services.c: linux/parser.h is included more than once.

vim +49 security/selinux/ss/services.c

Quoted 1 line

49 #include <linux/parser.h>

    50  #include <linux/vmalloc.h>
    51  #include <linux/lsm_hooks.h>
  > 52  #include <linux/parser.h>
    53  #include <net/netlabel.h>
    54
Quoted 3 lines

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Fixed.

https://lore.kernel.org/selinux/[email protected]/

Signature · 1 line
paul-moore.com