All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [intel-lts:pr/57 1/1] security/smack/smack_lsm.c:314: warning: Function parameter or member 'inode' not described in 'init_inode_smack'
Date: Sat, 8 Mar 2025 23:42:46 +0800	[thread overview]
Message-ID: <202503082319.UtUYdFF0-lkp@intel.com> (raw)

tree:   https://github.com/intel/linux-intel-lts.git pr/57
head:   6fe7458ff80d33a5dba8b386c88d33ffd2ccb47d
commit: afb1cbe37440c7f38b9cf46fc331cc9dfd5cce21 [1/1] LSM: Infrastructure management of the inode security
config: x86_64-buildonly-randconfig-006-20250217 (https://download.01.org/0day-ci/archive/20250308/202503082319.UtUYdFF0-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250308/202503082319.UtUYdFF0-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/202503082319.UtUYdFF0-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> security/smack/smack_lsm.c:314: warning: Function parameter or member 'inode' not described in 'init_inode_smack'
>> security/smack/smack_lsm.c:314: warning: Excess function parameter 'isp' description in 'init_inode_smack'
   security/smack/smack_lsm.c:400: warning: Function parameter or member 'mode' not described in 'smk_ptrace_mode'
   security/smack/smack_lsm.c:516: warning: Function parameter or member 'typefrom_file' not described in 'smack_syslog'
   security/smack/smack_lsm.c:516: warning: Excess function parameter 'type' description in 'smack_syslog'
   security/smack/smack_lsm.c:694: warning: Function parameter or member 'mnt_opts' not described in 'smack_set_mnt_opts'
   security/smack/smack_lsm.c:694: warning: Excess function parameter 'opts' description in 'smack_set_mnt_opts'
   security/smack/smack_lsm.c:1144: warning: Function parameter or member 'path' not described in 'smack_inode_getattr'
   security/smack/smack_lsm.c:1144: warning: Excess function parameter 'mnt' description in 'smack_inode_getattr'
   security/smack/smack_lsm.c:1144: warning: Excess function parameter 'dentry' description in 'smack_inode_getattr'
   security/smack/smack_lsm.c:1574: warning: Function parameter or member 'file' not described in 'smack_mmap_file'
   security/smack/smack_lsm.c:1574: warning: Function parameter or member 'reqprot' not described in 'smack_mmap_file'
   security/smack/smack_lsm.c:1574: warning: Function parameter or member 'prot' not described in 'smack_mmap_file'
   security/smack/smack_lsm.c:1574: warning: Function parameter or member 'flags' not described in 'smack_mmap_file'
   security/smack/smack_lsm.c:1796: warning: Excess function parameter 'cred' description in 'smack_file_open'
   security/smack/smack_lsm.c:1824: warning: Function parameter or member 'cred' not described in 'smack_cred_alloc_blank'
   security/smack/smack_lsm.c:1824: warning: Excess function parameter 'new' description in 'smack_cred_alloc_blank'
   security/smack/smack_lsm.c:1905: warning: Function parameter or member 'cred' not described in 'smack_cred_getsecid'
   security/smack/smack_lsm.c:1905: warning: Excess function parameter 'c' description in 'smack_cred_getsecid'
   security/smack/smack_lsm.c:2062: warning: Excess function parameter 'policy' description in 'smack_task_setscheduler'
   security/smack/smack_lsm.c:2062: warning: Excess function parameter 'lp' description in 'smack_task_setscheduler'
   security/smack/smack_lsm.c:2534: warning: Function parameter or member 'sk' not described in 'smk_ipv6_port_check'
   security/smack/smack_lsm.c:2534: warning: Function parameter or member 'act' not described in 'smk_ipv6_port_check'
   security/smack/smack_lsm.c:2534: warning: Excess function parameter 'sock' description in 'smk_ipv6_port_check'
   security/smack/smack_lsm.c:2947: warning: Function parameter or member 'ipc' not described in 'smack_shm_shmat'
   security/smack/smack_lsm.c:2947: warning: Excess function parameter 'isp' description in 'smack_shm_shmat'


vim +314 security/smack/smack_lsm.c

e114e473771c84 Casey Schaufler  2008-02-04  306  
e114e473771c84 Casey Schaufler  2008-02-04  307  /**
afb1cbe37440c7 Casey Schaufler  2018-09-21  308   * init_inode_smack - initialize an inode security blob
afb1cbe37440c7 Casey Schaufler  2018-09-21  309   * @isp: the blob to initialize
21c7eae21a2100 Lukasz Pawelczyk 2014-08-29  310   * @skp: a pointer to the Smack label entry to use in the blob
e114e473771c84 Casey Schaufler  2008-02-04  311   *
e114e473771c84 Casey Schaufler  2008-02-04  312   */
afb1cbe37440c7 Casey Schaufler  2018-09-21  313  static void init_inode_smack(struct inode *inode, struct smack_known *skp)
e114e473771c84 Casey Schaufler  2008-02-04 @314  {
afb1cbe37440c7 Casey Schaufler  2018-09-21  315  	struct inode_smack *isp = smack_inode(inode);
e114e473771c84 Casey Schaufler  2008-02-04  316  
21c7eae21a2100 Lukasz Pawelczyk 2014-08-29  317  	isp->smk_inode = skp;
e114e473771c84 Casey Schaufler  2008-02-04  318  	isp->smk_flags = 0;
e114e473771c84 Casey Schaufler  2008-02-04  319  	mutex_init(&isp->smk_lock);
e114e473771c84 Casey Schaufler  2008-02-04  320  }
e114e473771c84 Casey Schaufler  2008-02-04  321  

:::::: The code at line 314 was first introduced by commit
:::::: e114e473771c848c3cfec05f0123e70f1cdbdc99 Smack: Simplified Mandatory Access Control Kernel

:::::: TO: Casey Schaufler <casey@schaufler-ca.com>
:::::: CC: Linus Torvalds <torvalds@woody.linux-foundation.org>

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

                 reply	other threads:[~2025-03-08 15:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202503082319.UtUYdFF0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.