From: kernel test robot <lkp@intel.com>
To: Guilhem Massol <guilhem.massol85@gmail.com>, kees@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Guilhem Massol <guilhem.massol85@gmail.com>
Subject: Re: [PATCH] string: Use __restrict__ according to ISO/IEC 9899:TC3
Date: Sat, 9 May 2026 10:43:06 +0800 [thread overview]
Message-ID: <202605091039.FFdxv5Qe-lkp@intel.com> (raw)
In-Reply-To: <20260503131245.13868-1-guilhem.massol85@gmail.com>
Hi Guilhem,
kernel test robot noticed the following build warnings:
[auto build test WARNING on kees/for-next/hardening]
[also build test WARNING on linus/master v7.1-rc2 next-20260508]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Guilhem-Massol/string-Use-__restrict__-according-to-ISO-IEC-9899-TC3/20260505-025614
base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/hardening
patch link: https://lore.kernel.org/r/20260503131245.13868-1-guilhem.massol85%40gmail.com
patch subject: [PATCH] string: Use __restrict__ according to ISO/IEC 9899:TC3
config: microblaze-randconfig-r123-20260509 (https://download.01.org/0day-ci/archive/20260509/202605091039.FFdxv5Qe-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 12.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260509/202605091039.FFdxv5Qe-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/202605091039.FFdxv5Qe-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
kernel/fork.c:1051:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct [noderef] __rcu *owner @@ got struct task_struct *p @@
kernel/fork.c:1051:19: sparse: expected struct task_struct [noderef] __rcu *owner
kernel/fork.c:1051:19: sparse: got struct task_struct *p
kernel/fork.c:1650: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:1650:38: sparse: expected struct refcount_struct [usertype] *r
kernel/fork.c:1650:38: sparse: got struct refcount_struct [noderef] __rcu *
kernel/fork.c:1659:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:1659:31: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:1659:31: sparse: got struct spinlock [noderef] __rcu *
>> kernel/fork.c:1660:36: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *restrict @@ got struct k_sigaction [noderef] __rcu * @@
kernel/fork.c:1660:36: sparse: expected void const *restrict
kernel/fork.c:1660:36: sparse: got struct k_sigaction [noderef] __rcu *
kernel/fork.c:1661:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:1661:33: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:1661:33: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2041:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2041:31: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2041:31: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2045:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2045:33: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2045:33: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2381: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:2381:32: sparse: expected struct task_struct [noderef] __rcu *real_parent
kernel/fork.c:2381:32: sparse: got struct task_struct *register [addressable] [toplevel] current
kernel/fork.c:2390:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2390:27: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2390:27: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2439: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:2439:54: sparse: expected struct list_head *head
kernel/fork.c:2439:54: sparse: got struct list_head [noderef] __rcu *
kernel/fork.c:2459:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2459:29: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2459:29: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2481:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2481:29: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2481:29: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2510: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:2510:28: sparse: expected struct sighand_struct *sighand
kernel/fork.c:2510:28: sparse: got struct sighand_struct [noderef] __rcu *sighand
kernel/fork.c:2543:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2543:31: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2543:31: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2545:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct spinlock [usertype] *lock @@ got struct spinlock [noderef] __rcu * @@
kernel/fork.c:2545:33: sparse: expected struct spinlock [usertype] *lock
kernel/fork.c:2545:33: sparse: got struct spinlock [noderef] __rcu *
kernel/fork.c:2984: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:2984:24: sparse: expected struct task_struct *[assigned] parent
kernel/fork.c:2984:24: sparse: got struct task_struct [noderef] __rcu *real_parent
kernel/fork.c:3067: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:3067:43: sparse: expected struct refcount_struct const [usertype] *r
kernel/fork.c:3067:43: sparse: got struct refcount_struct [noderef] __rcu *
kernel/fork.c:1759:9: sparse: sparse: dereference of noderef expression
kernel/fork.c:2091: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/uapi/linux/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:2437:59: sparse: sparse: dereference of noderef expression
kernel/fork.c:2438:59: sparse: sparse: dereference of noderef expression
kernel/fork.c:1043:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/fork.c:1043:23: sparse: struct task_struct [noderef] __rcu *
kernel/fork.c:1043:23: sparse: struct task_struct *
--
>> drivers/mtd/nand/onenand/onenand_base.c:779:34: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *restrict @@ got void [noderef] __iomem * @@
drivers/mtd/nand/onenand/onenand_base.c:779:34: sparse: expected void const *restrict
drivers/mtd/nand/onenand/onenand_base.c:779:34: sparse: got void [noderef] __iomem *
drivers/mtd/nand/onenand/onenand_base.c:817:34: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *restrict @@ got void [noderef] __iomem * @@
drivers/mtd/nand/onenand/onenand_base.c:817:34: sparse: expected void const *restrict
drivers/mtd/nand/onenand/onenand_base.c:817:34: sparse: got void [noderef] __iomem *
>> drivers/mtd/nand/onenand/onenand_base.c:860:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *restrict @@ got void [noderef] __iomem * @@
drivers/mtd/nand/onenand/onenand_base.c:860:26: sparse: expected void *restrict
drivers/mtd/nand/onenand/onenand_base.c:860:26: sparse: got void [noderef] __iomem *
vim +1660 kernel/fork.c
a016f3389c0660 JANAK DESAI 2006-02-07 1644
04ff48239f46e8 Simon Schuster 2025-09-01 1645 static int copy_sighand(u64 clone_flags, struct task_struct *tsk)
^1da177e4c3f41 Linus Torvalds 2005-04-16 1646 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 1647 struct sighand_struct *sig;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1648
60348802e9cb13 Zhaolei 2009-01-06 1649 if (clone_flags & CLONE_SIGHAND) {
d036bda7d0e726 Elena Reshetova 2019-01-18 1650 refcount_inc(¤t->sighand->count);
^1da177e4c3f41 Linus Torvalds 2005-04-16 1651 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1652 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 1653 sig = kmem_cache_alloc(sighand_cachep, GFP_KERNEL);
0c282b068eb26d Madhuparna Bhowmik 2020-01-27 1654 RCU_INIT_POINTER(tsk->sighand, sig);
^1da177e4c3f41 Linus Torvalds 2005-04-16 1655 if (!sig)
^1da177e4c3f41 Linus Torvalds 2005-04-16 1656 return -ENOMEM;
9d7fb04276481c Peter Zijlstra 2015-06-30 1657
d036bda7d0e726 Elena Reshetova 2019-01-18 1658 refcount_set(&sig->count, 1);
06e62a46bbba20 Jann Horn 2018-08-21 1659 spin_lock_irq(¤t->sighand->siglock);
^1da177e4c3f41 Linus Torvalds 2005-04-16 @1660 memcpy(sig->action, current->sighand->action, sizeof(sig->action));
06e62a46bbba20 Jann Horn 2018-08-21 1661 spin_unlock_irq(¤t->sighand->siglock);
b612e5df4587c9 Christian Brauner 2019-10-14 1662
b612e5df4587c9 Christian Brauner 2019-10-14 1663 /* Reset all signal handler not set to SIG_IGN to SIG_DFL. */
b612e5df4587c9 Christian Brauner 2019-10-14 1664 if (clone_flags & CLONE_CLEAR_SIGHAND)
b612e5df4587c9 Christian Brauner 2019-10-14 1665 flush_signal_handlers(tsk, 0);
b612e5df4587c9 Christian Brauner 2019-10-14 1666
^1da177e4c3f41 Linus Torvalds 2005-04-16 1667 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1668 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 1669
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
parent reply other threads:[~2026-05-09 2:43 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20260503131245.13868-1-guilhem.massol85@gmail.com>]
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=202605091039.FFdxv5Qe-lkp@intel.com \
--to=lkp@intel.com \
--cc=guilhem.massol85@gmail.com \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox