security/smack/smack_lsm.c:4861: warning: Function parameter or struct member 'cp' not described in 'smack_lsmprop_to_secctx'
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: c88416ba074a8913cf6d61b789dd834bbca6681c commit: 95a3c11eb6709db6a0e06ef17bfbcc32c7cc7b27 [8660/8858] lsm: replace context+len with lsm_context config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20241101/[email protected]/config) compiler: alpha-linux-gcc (GCC) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241101/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> security/smack/smack_lsm.c:4861: warning: Function parameter or struct member 'cp' not described in 'smack_lsmprop_to_secctx' >> security/smack/smack_lsm.c:4861: warning: Excess function parameter 'secdata' description in 'smack_lsmprop_to_secctx' >> security/smack/smack_lsm.c:4861: warning: Excess function parameter 'seclen' description in 'smack_lsmprop_to_secctx'
vim +4861 security/smack/smack_lsm.c
e114e473771c84 Casey Schaufler 2008-02-04 4850
6f2f724f0e116d Casey Schaufler 2024-10-09 4851 /**
6f2f724f0e116d Casey Schaufler 2024-10-09 4852 * smack_lsmprop_to_secctx - return the smack label
6f2f724f0e116d Casey Schaufler 2024-10-09 4853 * @prop: includes incoming Smack data
6f2f724f0e116d Casey Schaufler 2024-10-09 4854 * @secdata: destination
6f2f724f0e116d Casey Schaufler 2024-10-09 4855 * @seclen: how long it is
6f2f724f0e116d Casey Schaufler 2024-10-09 4856 *
6f2f724f0e116d Casey Schaufler 2024-10-09 4857 * Exists for audit code.
6f2f724f0e116d Casey Schaufler 2024-10-09 4858 */
95a3c11eb6709d Casey Schaufler 2024-10-23 4859 static int smack_lsmprop_to_secctx(struct lsm_prop *prop,
95a3c11eb6709d Casey Schaufler 2024-10-23 4860 struct lsm_context *cp)
6f2f724f0e116d Casey Schaufler 2024-10-09 @4861 {
95a3c11eb6709d Casey Schaufler 2024-10-23 4862 return smack_to_secctx(prop->smack.skp, cp);
6f2f724f0e116d Casey Schaufler 2024-10-09 4863 }6f2f724f0e116d Casey Schaufler 2024-10-09 4864
:::::: The code at line 4861 was first introduced by commit
:::::: 6f2f724f0e116d9ea960ff3dd645add12e60e176 lsm: add lsmprop_to_secctx hook
:::::: TO: Casey Schaufler <[email protected]> :::::: CC: Paul Moore <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki