[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202010080238.s90menB0-lkp@intel.com>
Date: Thu, 8 Oct 2020 02:53:40 +0800
From: kernel test robot <lkp@...el.com>
To: Peter Collingbourne <pcc@...gle.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Daniel Vetter <daniel.vetter@...ll.ch>
Subject: drivers/video/fbdev/amba-clcd.c:819:28: sparse: sparse: incorrect
type in assignment (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c85fb28b6f999db9928b841f63f1beeb3074eeca
commit: 112c35237c726cb2c6eed32db660f285938fb666 Partially revert "video: fbdev: amba-clcd: Retire elder CLCD driver"
date: 7 days ago
config: arm64-randconfig-s031-20201008 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.2-218-gc0e96d6d-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=112c35237c726cb2c6eed32db660f285938fb666
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 112c35237c726cb2c6eed32db660f285938fb666
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
echo
echo "sparse warnings: (new ones prefixed by >>)"
echo
>> drivers/video/fbdev/amba-clcd.c:819:28: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected char [noderef] __iomem *screen_base @@ got void * @@
>> drivers/video/fbdev/amba-clcd.c:819:28: sparse: expected char [noderef] __iomem *screen_base
drivers/video/fbdev/amba-clcd.c:819:28: sparse: got void *
>> drivers/video/fbdev/amba-clcd.c:832:54: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void *cpu_addr @@ got char [noderef] __iomem *screen_base @@
drivers/video/fbdev/amba-clcd.c:832:54: sparse: expected void *cpu_addr
>> drivers/video/fbdev/amba-clcd.c:832:54: sparse: got char [noderef] __iomem *screen_base
drivers/video/fbdev/amba-clcd.c:839:31: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void *cpu_addr @@ got char [noderef] __iomem *screen_base @@
drivers/video/fbdev/amba-clcd.c:839:31: sparse: expected void *cpu_addr
drivers/video/fbdev/amba-clcd.c:839:31: sparse: got char [noderef] __iomem *screen_base
vim +819 drivers/video/fbdev/amba-clcd.c
806
807 static int clcdfb_of_dma_setup(struct clcd_fb *fb)
808 {
809 unsigned long framesize;
810 dma_addr_t dma;
811 int err;
812
813 err = clcdfb_of_init_display(fb);
814 if (err)
815 return err;
816
817 framesize = PAGE_ALIGN(fb->panel->mode.xres * fb->panel->mode.yres *
818 fb->panel->bpp / 8);
> 819 fb->fb.screen_base = dma_alloc_coherent(&fb->dev->dev, framesize,
820 &dma, GFP_KERNEL);
821 if (!fb->fb.screen_base)
822 return -ENOMEM;
823
824 fb->fb.fix.smem_start = dma;
825 fb->fb.fix.smem_len = framesize;
826
827 return 0;
828 }
829
830 static int clcdfb_of_dma_mmap(struct clcd_fb *fb, struct vm_area_struct *vma)
831 {
> 832 return dma_mmap_wc(&fb->dev->dev, vma, fb->fb.screen_base,
833 fb->fb.fix.smem_start, fb->fb.fix.smem_len);
834 }
835
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (33135 bytes)
Powered by blists - more mailing lists