[soc:omap1-multiplatform-5.18 11/44] drivers/video/fbdev/omap/omapfb_main.c:1027:11: sparse: sparse: cast removes address space '__iomem' of expression

kernel test robot lkp at intel.com
Sat Apr 23 00:09:45 PDT 2022


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git omap1-multiplatform-5.18
head:   f923656e88122de794eb0e242574362170398bbf
commit: 804f7f19c2e2928aeb8eafef8379fe8b8d13f98b [11/44] fbdev: omap: avoid using mach/*.h files
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20220423/202204231538.N6yF1P7m-lkp@intel.com/config)
compiler: arm-linux-gnueabi-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/soc/soc.git/commit/?id=804f7f19c2e2928aeb8eafef8379fe8b8d13f98b
        git remote add soc https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
        git fetch --no-tags soc omap1-multiplatform-5.18
        git checkout 804f7f19c2e2928aeb8eafef8379fe8b8d13f98b
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>


sparse warnings: (new ones prefixed by >>)
>> drivers/video/fbdev/omap/omapfb_main.c:1027:11: sparse: sparse: cast removes address space '__iomem' of expression
--
>> drivers/video/fbdev/omap/lcdc.c:642:23: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] __iomem *vaddr @@     got void *static [addressable] [assigned] [toplevel] vram_virt @@
   drivers/video/fbdev/omap/lcdc.c:642:23: sparse:     expected void [noderef] __iomem *vaddr
   drivers/video/fbdev/omap/lcdc.c:642:23: sparse:     got void *static [addressable] [assigned] [toplevel] vram_virt
--
>> drivers/video/fbdev/omap/lcd_mipid.c:451:23: sparse: sparse: cast to restricted __be32

vim +/__iomem +1027 drivers/video/fbdev/omap/omapfb_main.c

8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1022  
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1023  /* For lcd testing */
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1024  void omapfb_write_first_pixel(struct omapfb_device *fbdev, u16 pixval)
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1025  {
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1026  	omapfb_rqueue_lock(fbdev);
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17 @1027  	*(u16 *)fbdev->mem_desc.region[0].vaddr = pixval;
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1028  	if (fbdev->ctrl->get_update_mode() == OMAPFB_MANUAL_UPDATE) {
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1029  		struct omapfb_update_window win;
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1030  
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1031  		memset(&win, 0, sizeof(win));
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1032  		win.width = 2;
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1033  		win.height = 2;
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1034  		win.out_width = 2;
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1035  		win.out_height = 2;
c0fc18c5bf016a drivers/video/omap/omapfb_main.c Russell King 2008-09-05  1036  		fbdev->ctrl->update_window(fbdev->fb_info[0], &win, NULL, NULL);
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1037  	}
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1038  	omapfb_rqueue_unlock(fbdev);
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1039  }
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1040  EXPORT_SYMBOL(omapfb_write_first_pixel);
8b08cf2b64f5a6 drivers/video/omap/omapfb_main.c Imre Deak    2007-07-17  1041  

:::::: The code at line 1027 was first introduced by commit
:::::: 8b08cf2b64f5a60594b07795b2ad518c6d044566 OMAP: add TI OMAP framebuffer driver

:::::: TO: Imre Deak <imre.deak at solidboot.com>
:::::: CC: Linus Torvalds <torvalds at woody.linux-foundation.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



More information about the linux-arm-kernel mailing list