* [akpm-mm:mm-new 127/137] include/linux/mm.h:752:21: sparse: sparse: incorrect type in argument 1 (different modifiers)
@ 2025-08-13 20:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-13 20:14 UTC (permalink / raw)
To: Lorenzo Stoakes
Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List,
Liam R. Howlett
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head: 694c8e78f486b09137ee3efadae044d01aba971b
commit: ead30cde4eab3fd4d3b40cd0a303d0dd2388556c [127/137] mm: update fork mm->flags initialisation to use bitmap
config: microblaze-randconfig-r131-20250813 (https://download.01.org/0day-ci/archive/20250814/202508140415.9qC6aHiR-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 12.5.0
reproduce: (https://download.01.org/0day-ci/archive/20250814/202508140415.9qC6aHiR-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/202508140415.9qC6aHiR-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
kernel/fork.c:1607:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct refcount_struct [usertype] *r @@ got struct refcount_struct [noderef] __rcu * @@
kernel/fork.c:1607:38: sparse: expected struct refcount_struct [usertype] *r
kernel/fork.c:1607:38: sparse: got struct refcount_struct [noderef] __rcu *
kernel/fork.c:1616:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:1616:31: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:1616:31: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:1617:36: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got struct k_sigaction [noderef] __rcu * @@
kernel/fork.c:1617:36: sparse: expected void const *
kernel/fork.c:1617:36: sparse: got struct k_sigaction [noderef] __rcu *
kernel/fork.c:1618:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:1618:33: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:1618:33: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:1997:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:1997:31: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:1997:31: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2001:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2001:33: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2001:33: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2335:32: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct [noderef] __rcu *real_parent @@ got struct task_struct *register [addressable] [toplevel] current @@
kernel/fork.c:2335:32: sparse: expected struct task_struct [noderef] __rcu *real_parent
kernel/fork.c:2335:32: sparse: got struct task_struct *register [addressable] [toplevel] current
kernel/fork.c:2344:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2344:27: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2344:27: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2393:54: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct list_head *head @@ got struct list_head [noderef] __rcu * @@
kernel/fork.c:2393:54: sparse: expected struct list_head *head
kernel/fork.c:2393:54: sparse: got struct list_head [noderef] __rcu *
kernel/fork.c:2413:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2413:29: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2413:29: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2435:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2435:29: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2435:29: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2463:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct sighand_struct *sighand @@ got struct sighand_struct [noderef] __rcu *sighand @@
kernel/fork.c:2463:28: sparse: expected struct sighand_struct *sighand
kernel/fork.c:2463:28: sparse: got struct sighand_struct [noderef] __rcu *sighand
kernel/fork.c:2494:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2494:31: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2494:31: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2496:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2496:33: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2496:33: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2939:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *[assigned] parent @@ got struct task_struct [noderef] __rcu *real_parent @@
kernel/fork.c:2939:24: sparse: expected struct task_struct *[assigned] parent
kernel/fork.c:2939:24: sparse: got struct task_struct [noderef] __rcu *real_parent
kernel/fork.c:3022:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct refcount_struct const [usertype] *r @@ got struct refcount_struct [noderef] __rcu * @@
kernel/fork.c:3022:43: sparse: expected struct refcount_struct const [usertype] *r
kernel/fork.c:3022:43: sparse: got struct refcount_struct [noderef] __rcu *
kernel/fork.c: note: in included file (through include/linux/pagemap.h, include/linux/mempolicy.h):
>> include/linux/mm.h:752:21: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected unsigned long *dst @@ got unsigned long [noderef] * @@
include/linux/mm.h:752:21: sparse: expected unsigned long *dst
include/linux/mm.h:752:21: sparse: got unsigned long [noderef] *
kernel/fork.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/slab.h):
include/linux/mm_types.h:1239:33: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected unsigned long *bitmap @@ got unsigned long [noderef] * @@
include/linux/mm_types.h:1239:33: sparse: expected unsigned long *bitmap
include/linux/mm_types.h:1239:33: sparse: got unsigned long [noderef] *
include/linux/mm_types.h:1248:33: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected unsigned long *bitmap @@ got unsigned long [noderef] * @@
include/linux/mm_types.h:1248:33: sparse: expected unsigned long *bitmap
include/linux/mm_types.h:1248:33: sparse: got unsigned long [noderef] *
include/linux/mm_types.h:1248:33: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected unsigned long *bitmap @@ got unsigned long [noderef] * @@
include/linux/mm_types.h:1248:33: sparse: expected unsigned long *bitmap
include/linux/mm_types.h:1248:33: sparse: got unsigned long [noderef] *
kernel/fork.c:1712:9: sparse: sparse: dereference of noderef expression
kernel/fork.c:1851:36: sparse: sparse: context imbalance in 'pidfd_prepare' - different lock contexts for basic block
kernel/fork.c:2047:22: sparse: sparse: dereference of noderef expression
kernel/fork.c: note: in included file (through include/uapi/asm-generic/bpf_perf_event.h, arch/microblaze/include/generated/uapi/asm/bpf_perf_event.h, ...):
include/linux/ptrace.h:210:45: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *new_parent @@ got struct task_struct [noderef] __rcu *parent @@
include/linux/ptrace.h:210:45: sparse: expected struct task_struct *new_parent
include/linux/ptrace.h:210:45: sparse: got struct task_struct [noderef] __rcu *parent
include/linux/ptrace.h:210:62: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected struct cred const *ptracer_cred @@ got struct cred const [noderef] __rcu *ptracer_cred @@
include/linux/ptrace.h:210:62: sparse: expected struct cred const *ptracer_cred
include/linux/ptrace.h:210:62: sparse: got struct cred const [noderef] __rcu *ptracer_cred
kernel/fork.c:2391:59: sparse: sparse: dereference of noderef expression
kernel/fork.c:2392:59: sparse: sparse: dereference of noderef expression
vim +752 include/linux/mm.h
34e1a4ccaed274 Lorenzo Stoakes 2025-08-12 749
34e1a4ccaed274 Lorenzo Stoakes 2025-08-12 750 static inline void mm_flags_clear_all(struct mm_struct *mm)
34e1a4ccaed274 Lorenzo Stoakes 2025-08-12 751 {
34e1a4ccaed274 Lorenzo Stoakes 2025-08-12 @752 bitmap_zero(ACCESS_PRIVATE(&mm->_flags, __mm_flags), NUM_MM_FLAG_BITS);
34e1a4ccaed274 Lorenzo Stoakes 2025-08-12 753 }
34e1a4ccaed274 Lorenzo Stoakes 2025-08-12 754
:::::: The code at line 752 was first introduced by commit
:::::: 34e1a4ccaed27416e7c6cd5ec43d9f3f41bf107b mm: add bitmap mm->flags field
:::::: TO: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>
--
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:[~2025-08-13 20:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13 20:14 [akpm-mm:mm-new 127/137] include/linux/mm.h:752:21: sparse: sparse: incorrect type in argument 1 (different modifiers) 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;
as well as URLs for NNTP newsgroup(s).