From: kernel test robot <lkp@intel.com>
To: Greg Ungerer <gerg@uclinux.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-m68k@lists.linux-m68k.org,
uclinux-dev@uclinux.org
Subject: [gerg-m68knommu:armnommu 3/3] arch/arm/mm/alignment.c:776:25: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Sun, 28 Dec 2025 16:24:15 +0800 [thread overview]
Message-ID: <202512281641.zItti8ka-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu.git armnommu
head: edf19f0aab57e81f4391d800d6845527413ca77b
commit: edf19f0aab57e81f4391d800d6845527413ca77b [3/3] ARM: versatile: support configuring versatile machine for no-MMU
config: arm-randconfig-r111-20251228 (https://download.01.org/0day-ci/archive/20251228/202512281641.zItti8ka-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 4ef602d446057dabf5f61fb221669ecbeda49279)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251228/202512281641.zItti8ka-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/202512281641.zItti8ka-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> arch/arm/mm/alignment.c:776:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned int [usertype] *ip @@
arch/arm/mm/alignment.c:776:25: sparse: expected void const volatile [noderef] __user *ptr
arch/arm/mm/alignment.c:776:25: sparse: got unsigned int [usertype] *ip
>> arch/arm/mm/alignment.c:791:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __user *ptr @@ got unsigned short [usertype] *ip @@
arch/arm/mm/alignment.c:791:25: sparse: expected void const volatile [noderef] __user *ptr
arch/arm/mm/alignment.c:791:25: sparse: got unsigned short [usertype] *ip
vim +776 arch/arm/mm/alignment.c
c2860d43f5dfab George G. Davis 2009-06-04 769
1bb9fb0a147f9d Russell King 2019-09-06 770 static int alignment_get_arm(struct pt_regs *regs, u32 *ip, u32 *inst)
67e15fa5b487ad Russell King 2019-08-31 771 {
67e15fa5b487ad Russell King 2019-08-31 772 u32 instr = 0;
67e15fa5b487ad Russell King 2019-08-31 773 int fault;
67e15fa5b487ad Russell King 2019-08-31 774
67e15fa5b487ad Russell King 2019-08-31 775 if (user_mode(regs))
67e15fa5b487ad Russell King 2019-08-31 @776 fault = get_user(instr, ip);
67e15fa5b487ad Russell King 2019-08-31 777 else
25f12ae45fc193 Christoph Hellwig 2020-06-17 778 fault = get_kernel_nofault(instr, ip);
67e15fa5b487ad Russell King 2019-08-31 779
67e15fa5b487ad Russell King 2019-08-31 780 *inst = __mem_to_opcode_arm(instr);
67e15fa5b487ad Russell King 2019-08-31 781
67e15fa5b487ad Russell King 2019-08-31 782 return fault;
67e15fa5b487ad Russell King 2019-08-31 783 }
67e15fa5b487ad Russell King 2019-08-31 784
67e15fa5b487ad Russell King 2019-08-31 785 static int alignment_get_thumb(struct pt_regs *regs, u16 *ip, u16 *inst)
67e15fa5b487ad Russell King 2019-08-31 786 {
67e15fa5b487ad Russell King 2019-08-31 787 u16 instr = 0;
67e15fa5b487ad Russell King 2019-08-31 788 int fault;
67e15fa5b487ad Russell King 2019-08-31 789
67e15fa5b487ad Russell King 2019-08-31 790 if (user_mode(regs))
67e15fa5b487ad Russell King 2019-08-31 @791 fault = get_user(instr, ip);
67e15fa5b487ad Russell King 2019-08-31 792 else
25f12ae45fc193 Christoph Hellwig 2020-06-17 793 fault = get_kernel_nofault(instr, ip);
67e15fa5b487ad Russell King 2019-08-31 794
67e15fa5b487ad Russell King 2019-08-31 795 *inst = __mem_to_opcode_thumb16(instr);
67e15fa5b487ad Russell King 2019-08-31 796
67e15fa5b487ad Russell King 2019-08-31 797 return fault;
67e15fa5b487ad Russell King 2019-08-31 798 }
67e15fa5b487ad Russell King 2019-08-31 799
:::::: The code at line 776 was first introduced by commit
:::::: 67e15fa5b487adb9b78a92789eeff2d6ec8f5cee ARM: mm: fix alignment handler faults under memory pressure
:::::: TO: Russell King <rmk+kernel@armlinux.org.uk>
:::::: CC: Russell King <rmk+kernel@armlinux.org.uk>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2025-12-28 8:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-28 8:24 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-05-18 21:35 [gerg-m68knommu:armnommu 3/3] arch/arm/mm/alignment.c:776:25: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2026-07-31 20:29 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=202512281641.zItti8ka-lkp@intel.com \
--to=lkp@intel.com \
--cc=gerg@uclinux.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=uclinux-dev@uclinux.org \
/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.