All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Casey Schaufler <casey@schaufler-ca.com>
Cc: oe-kbuild-all@lists.linux.dev, Paul Moore <paul@paul-moore.com>,
	Kees Cook <keescook@chromium.org>,
	Serge Hallyn <serge@hallyn.com>, Mickael Salaun <mic@digikod.net>,
	John Johansen <john.johansen@canonical.com>
Subject: [robertosassu:dev-staging 1/18] security/smack/smack_lsm.c:4937:21: sparse: sparse: symbol 'smack_lsmid' was not declared. Should it be static?
Date: Sat, 18 Nov 2023 04:01:39 +0800	[thread overview]
Message-ID: <202311180302.MSKLHPBi-lkp@intel.com> (raw)

tree:   https://github.com/robertosassu/linux dev-staging
head:   ba7ce019d3e965aeb0d76d19d3f038b350b28bb2
commit: f347278284b81a0c1b1f46a0cbf1fe6a32493635 [1/18] LSM: Identify modules by more than name
config: parisc-randconfig-r133-20231117 (https://download.01.org/0day-ci/archive/20231118/202311180302.MSKLHPBi-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231118/202311180302.MSKLHPBi-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/202311180302.MSKLHPBi-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   security/smack/smack_lsm.c:1910:61: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct cred const *cred @@     got struct cred const [noderef] __rcu *cred @@
   security/smack/smack_lsm.c:1910:61: sparse:     expected struct cred const *cred
   security/smack/smack_lsm.c:1910:61: sparse:     got struct cred const [noderef] __rcu *cred
>> security/smack/smack_lsm.c:4937:21: sparse: sparse: symbol 'smack_lsmid' was not declared. Should it be static?
   security/smack/smack_lsm.c:5133:30: sparse: sparse: cast removes address space '__rcu' of expression
   security/smack/smack_lsm.c: note: in included file (through include/linux/preempt.h, include/linux/spinlock.h, include/linux/mmzone.h, ...):
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true

vim +/smack_lsmid +4937 security/smack/smack_lsm.c

  4936	
> 4937	const struct lsm_id smack_lsmid = {
  4938		.name = "smack",
  4939		.id = LSM_ID_SMACK,
  4940	};
  4941	

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

                 reply	other threads:[~2023-11-17 20:02 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=202311180302.MSKLHPBi-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=casey@schaufler-ca.com \
    --cc=john.johansen@canonical.com \
    --cc=keescook@chromium.org \
    --cc=mic@digikod.net \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=paul@paul-moore.com \
    --cc=serge@hallyn.com \
    /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.