All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 6831/9180] arch/sh/kernel/crash_dump.c:26:43: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2026-11-19  8:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-19  8:06 UTC (permalink / raw)
  To: Christian Brauner; +Cc: oe-kbuild-all, Alexander Mikhalitsyn

Hi Christian,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e8017d29067fd1310a65c3494ce1a1b492adbac6
commit: e69501a923a5f2c6995a57a1f2ef9c723b66a78c [6831/9180] crash_dump: use copy_oldmem_to_iter() everywhere
config: sh-randconfig-r2304-20261119 (https://download.01.org/0day-ci/archive/20261119/20261119085855.FAscxfBS-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 12.5.0
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261119/20261119085855.FAscxfBS-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/20261119085855.FAscxfBS-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> arch/sh/kernel/crash_dump.c:26:43: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const *src @@     got void [noderef] __iomem * @@
   arch/sh/kernel/crash_dump.c:26:43: sparse:     expected void const *src
   arch/sh/kernel/crash_dump.c:26:43: sparse:     got void [noderef] __iomem *

vim +26 arch/sh/kernel/crash_dump.c

    13	
    14	ssize_t copy_oldmem_page(struct iov_iter *iter, unsigned long pfn,
    15				 size_t csize, unsigned long offset)
    16	{
    17		void  __iomem *vaddr;
    18	
    19		if (!csize)
    20			return 0;
    21	
    22		vaddr = ioremap(pfn << PAGE_SHIFT, PAGE_SIZE);
    23		if (!vaddr)
    24			return -ENOMEM;
    25	
  > 26		csize = copy_oldmem_to_iter(vaddr + offset, csize, iter);

-- 
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:[~2026-11-19  8:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19  8:06 [linux-next:master 6831/9180] arch/sh/kernel/crash_dump.c:26:43: sparse: sparse: incorrect type in argument 1 (different address spaces) 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.