* [robertosassu:dev-staging 1/18] security/smack/smack_lsm.c:4937:21: sparse: sparse: symbol 'smack_lsmid' was not declared. Should it be static?
@ 2023-11-17 20:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-17 20:01 UTC (permalink / raw)
To: Casey Schaufler
Cc: oe-kbuild-all, Paul Moore, Kees Cook, Serge Hallyn,
Mickael Salaun, John Johansen
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-17 20:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-17 20:01 [robertosassu:dev-staging 1/18] security/smack/smack_lsm.c:4937:21: sparse: sparse: symbol 'smack_lsmid' was not declared. Should it be static? kernel test robot
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.