* [atishp04:dma_non_coherent_v1 28/42] drivers/video/fbdev/starfive/starfive_fb.c:655:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2021-06-19 8:10 kernel test robot
2021-06-25 6:39 ` david.li
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-06-19 8:10 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2540 bytes --]
tree: https://github.com/atishp04/linux dma_non_coherent_v1
head: 37cdb4f054939f097f3297ec76c1c6738312c577
commit: f857e57c1e8b3b40fdc1dbc46b4318324e04041d [28/42] video: fbdev: starfive: workaround for unavailable pointer of dtb
config: sparc64-randconfig-s032-20210619 (attached as .config)
compiler: sparc64-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.3-341-g8af24329-dirty
# https://github.com/atishp04/linux/commit/f857e57c1e8b3b40fdc1dbc46b4318324e04041d
git remote add atishp04 https://github.com/atishp04/linux
git fetch --no-tags atishp04 dma_non_coherent_v1
git checkout f857e57c1e8b3b40fdc1dbc46b4318324e04041d
# 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__' W=1 ARCH=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/video/fbdev/starfive/starfive_fb.c:655:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got char [noderef] __iomem *screen_base @@
drivers/video/fbdev/starfive/starfive_fb.c:655:9: sparse: expected void *
drivers/video/fbdev/starfive/starfive_fb.c:655:9: sparse: got char [noderef] __iomem *screen_base
vim +655 drivers/video/fbdev/starfive/starfive_fb.c
638
639 static int sf_fb_map_video_memory(struct sf_fb_data *sf_dev)
640 {
641 struct resource res_mem;
642 struct device_node *node;
643
644 node = of_parse_phandle(sf_dev->dev->of_node, "memory-region", 0);
645 if(node) {
646 of_address_to_resource(node, 0, &res_mem);
647 sf_dev->fb.screen_size = resource_size(&res_mem);
648 sf_dev->fb.fix.smem_start = res_mem.start;
649 } else {
650 dev_err(sf_dev->dev, "Could not get reserved memory.\n");
651 return -ENOMEM;
652 }
653
654 sf_dev->fb.screen_base = devm_ioremap_resource(sf_dev->dev, &res_mem);
> 655 memset(sf_dev->fb.screen_base, 0, sf_dev->fb.screen_size);
656
657 return 0;
658 }
659
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 25391 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [atishp04:dma_non_coherent_v1 28/42] drivers/video/fbdev/starfive/starfive_fb.c:655:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
2021-06-19 8:10 [atishp04:dma_non_coherent_v1 28/42] drivers/video/fbdev/starfive/starfive_fb.c:655:9: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
@ 2021-06-25 6:39 ` david.li
0 siblings, 0 replies; 2+ messages in thread
From: david.li @ 2021-06-25 6:39 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 198 bytes --]
Please update the code from the following gitup,
Our code on GitHub doesn't have this warning
https://github.com/starfive-tech/freelight-u-sdk
Reported-by: kernel test robot <lkp@intel.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-25 6:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-19 8:10 [atishp04:dma_non_coherent_v1 28/42] drivers/video/fbdev/starfive/starfive_fb.c:655:9: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2021-06-25 6:39 ` david.li
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.