public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [robertosassu:ima-evm-lsms-v6-devel-v4 20/26] security/integrity/ima/ima_main.c:1181:12: warning: no previous prototype for function 'init_ima_lsm'
@ 2023-11-21  2:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-21  2:32 UTC (permalink / raw)
  To: Roberto Sassu; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/robertosassu/linux ima-evm-lsms-v6-devel-v4
head:   58605e8f9256d446ad8fa46474f4a402a68715a5
commit: 80b2cd5f40c944e0de9fc1840034e825b159fd50 [20/26] ima: Move to LSM infrastructure
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20231121/202311211018.agzm5mHK-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231121/202311211018.agzm5mHK-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/202311211018.agzm5mHK-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> security/integrity/ima/ima_main.c:1181:12: warning: no previous prototype for function 'init_ima_lsm' [-Wmissing-prototypes]
   int __init init_ima_lsm(void)
              ^
   security/integrity/ima/ima_main.c:1181:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __init init_ima_lsm(void)
   ^
   static 
   1 warning generated.


vim +/init_ima_lsm +1181 security/integrity/ima/ima_main.c

  1174	
  1175	/*
  1176	 * Since with the LSM_ORDER_LAST there is no guarantee about the ordering
  1177	 * within the .lsm_info.init section, ensure that IMA hooks are before EVM
  1178	 * ones, by letting the 'integrity' LSM call init_ima_lsm() to initialize the
  1179	 * 'ima' and 'evm' LSMs in this sequence.
  1180	 */
> 1181	int __init init_ima_lsm(void)
  1182	{
  1183		security_add_hooks(ima_hooks, ARRAY_SIZE(ima_hooks), &ima_lsmid);
  1184		return 0;
  1185	}
  1186	

-- 
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:[~2023-11-21  2:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-21  2:32 [robertosassu:ima-evm-lsms-v6-devel-v4 20/26] security/integrity/ima/ima_main.c:1181:12: warning: no previous prototype for function 'init_ima_lsm' 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