From: kernel test robot <lkp@intel.com>
To: Lorenzo Stoakes <ljs@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [ljs:project/cow-context 1/18] mm/init-mm.c:26:21: sparse: sparse: incorrect type in initializer (different modifiers)
Date: Thu, 07 May 2026 17:53:59 +0800 [thread overview]
Message-ID: <202605071732.qhO2KwOh-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ljs/linux.git project/cow-context
head: e02aa02fef8128743869032cb20d26f752cd9154
commit: 1be9d553f4be97b754471cc04735f215e75c4bf2 [1/18] mm/rmap: add cow_context data structure and assign to mm
config: alpha-randconfig-r134-20260507 (https://download.01.org/0day-ci/archive/20260507/202605071732.qhO2KwOh-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.4.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260507/202605071732.qhO2KwOh-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/202605071732.qhO2KwOh-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> mm/init-mm.c:26:21: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct list_head *next @@ got struct list_head [noderef] * @@
mm/init-mm.c:26:21: sparse: expected struct list_head *next
mm/init-mm.c:26:21: sparse: got struct list_head [noderef] *
>> mm/init-mm.c:26:21: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct list_head *prev @@ got struct list_head [noderef] * @@
mm/init-mm.c:26:21: sparse: expected struct list_head *prev
mm/init-mm.c:26:21: sparse: got struct list_head [noderef] *
mm/init-mm.c:27:21: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct list_head *next @@ got struct list_head [noderef] * @@
mm/init-mm.c:27:21: sparse: expected struct list_head *next
mm/init-mm.c:27:21: sparse: got struct list_head [noderef] *
mm/init-mm.c:27:21: sparse: sparse: incorrect type in initializer (different modifiers) @@ expected struct list_head *prev @@ got struct list_head [noderef] * @@
mm/init-mm.c:27:21: sparse: expected struct list_head *prev
mm/init-mm.c:27:21: sparse: got struct list_head [noderef] *
--
>> mm/cow_context.c:27:23: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct list_head *entry @@ got struct list_head [noderef] * @@
mm/cow_context.c:27:23: sparse: expected struct list_head *entry
mm/cow_context.c:27:23: sparse: got struct list_head [noderef] *
>> mm/cow_context.c:42:17: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct list_head const *head @@ got struct list_head [noderef] * @@
mm/cow_context.c:42:17: sparse: expected struct list_head const *head
mm/cow_context.c:42:17: sparse: got struct list_head [noderef] *
>> mm/cow_context.c:64:23: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct list_head *new @@ got struct list_head [noderef] * @@
mm/cow_context.c:64:23: sparse: expected struct list_head *new
mm/cow_context.c:64:23: sparse: got struct list_head [noderef] *
>> mm/cow_context.c:64:43: sparse: sparse: incorrect type in argument 2 (different modifiers) @@ expected struct list_head *head @@ got struct list_head [noderef] * @@
mm/cow_context.c:64:43: sparse: expected struct list_head *head
mm/cow_context.c:64:43: sparse: got struct list_head [noderef] *
>> mm/cow_context.c:77:25: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct list_head *list @@ got struct list_head [noderef] * @@
mm/cow_context.c:77:25: sparse: expected struct list_head *list
mm/cow_context.c:77:25: sparse: got struct list_head [noderef] *
mm/cow_context.c:78:25: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct list_head *list @@ got struct list_head [noderef] * @@
mm/cow_context.c:78:25: sparse: expected struct list_head *list
mm/cow_context.c:78:25: sparse: got struct list_head [noderef] *
vim +26 mm/init-mm.c
21
22 struct cow_context init_cow_context = {
23 .refcnt = REFCOUNT_INIT(1),
24 .mm = &init_mm,
25 .remap_mt = MTREE_INIT(remap_mt, MM_MT_FLAGS),
> 26 .children = LIST_HEAD_INIT(init_cow_context.children),
27 .siblings = LIST_HEAD_INIT(init_cow_context.siblings),
28 .list_write_lock = __SPIN_LOCK_UNLOCKED(init_cow_context.list_write_lock),
29 };
30
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-05-07 9:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-07 9:53 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-05-07 14:30 [ljs:project/cow-context 1/18] mm/init-mm.c:26:21: sparse: sparse: incorrect type in initializer (different modifiers) kernel test robot
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=202605071732.qhO2KwOh-lkp@intel.com \
--to=lkp@intel.com \
--cc=ljs@kernel.org \
--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.