Messages in this thread | | | Date | Fri, 12 Nov 2021 07:54:47 +0800 | From | kernel test robot <> | Subject | drivers/gpu/drm/kmb/kmb_drv.c:102:31: sparse: sparse: incorrect type in return expression (different address spaces) |
| |
Hi Stephen,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: debe436e77c72fcee804fb867f275e6d31aa999c commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY date: 1 year ago config: riscv-randconfig-s032-20211109 (attached as .config) compiler: riscv32-linux-gcc (GCC) 11.2.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.4-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ade896460e4a62f5e4a892a98d254937f6f5b64c git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=riscv
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/gpu/drm/kmb/kmb_drv.c:102:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@ drivers/gpu/drm/kmb/kmb_drv.c:102:31: sparse: expected void [noderef] __iomem * drivers/gpu/drm/kmb/kmb_drv.c:102:31: sparse: got void * -- >> drivers/gpu/drm/kmb/kmb_plane.c:21:11: sparse: sparse: symbol 'layer_irqs' was not declared. Should it be static?
vim +102 drivers/gpu/drm/kmb/kmb_drv.c
7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 90 } 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 91 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 92 static void __iomem *kmb_map_mmio(struct drm_device *drm, 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 93 struct platform_device *pdev, 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 94 char *name) 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 95 { 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 96 struct resource *res; 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 97 void __iomem *mem; 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 98 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 99 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name); 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 100 if (!res) { 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 101 drm_err(drm, "failed to get resource for %s", name); 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 @102 return ERR_PTR(-ENOMEM); 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 103 } 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 104 mem = devm_ioremap_resource(drm->dev, res); 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 105 if (IS_ERR(mem)) 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 106 drm_err(drm, "failed to ioremap %s registers", name); 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 107 return mem; 7f7b96a8a0a185a Anitha Chrisanthus 2020-11-04 108 }
:::::: The code at line 102 was first introduced by commit :::::: 7f7b96a8a0a185ad8b15ee1cf042f75aa1430c30 drm/kmb: Add support for KeemBay Display
:::::: TO: Anitha Chrisanthus <anitha.chrisanthus@intel.com> :::::: CC: Sam Ravnborg <sam@ravnborg.org>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |