From: kernel test robot <lkp@intel.com>
To: Peter Collingbourne <pcc@google.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: drivers/video/fbdev/amba-clcd.c:819:28: sparse: sparse: incorrect type in assignment (different address spaces)
Date: Thu, 8 Oct 2020 02:53:40 +0800 [thread overview]
Message-ID: <202010080238.s90menB0-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3422 bytes --]
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@intel.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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33135 bytes --]
reply other threads:[~2020-10-07 20:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202010080238.s90menB0-lkp@intel.com \
--to=lkp@intel.com \
--cc=daniel.vetter@ffwll.ch \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pcc@google.com \
/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
Powered by JetHome