[linux-next:master 3468/10295] drivers/gpu/drm/v3d/v3d_bo.c:178:14: error: implicit declaration of function 'vmap' is invalid in C99

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   39676dfe52331dba909c617f213fdb21015c8d10
commit: 7c13132c4073628b5fe23b5188ac583a2882a6b0 [3468/10295] drm/v3d: Enable BO mapping
config: mips-randconfig-r123-20231224 (https://download.01.org/0day-ci/archive/20231225/202312250229.lq4qGyLS-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce: (https://download.01.org/0day-ci/archive/20231225/202312250229.lq4qGyLS-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312250229.lq4qGyLS-lkp@xxxxxxxxx/

Note: the linux-next/master HEAD 39676dfe52331dba909c617f213fdb21015c8d10 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/v3d/v3d_bo.c:25:
   drivers/gpu/drm/v3d/v3d_drv.h:319:24: error: use of empty enum
   enum v3d_cpu_job_type {};
                          ^
>> drivers/gpu/drm/v3d/v3d_bo.c:178:14: error: implicit declaration of function 'vmap' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
           bo->vaddr = vmap(obj->pages, obj->base.size >> PAGE_SHIFT, VM_MAP,
                       ^
   drivers/gpu/drm/v3d/v3d_bo.c:178:14: note: did you mean 'bmap'?
   include/linux/fs.h:2667:12: note: 'bmap' declared here
   extern int bmap(struct inode *inode, sector_t *block);
              ^
   drivers/gpu/drm/v3d/v3d_bo.c:178:61: error: use of undeclared identifier 'VM_MAP'
           bo->vaddr = vmap(obj->pages, obj->base.size >> PAGE_SHIFT, VM_MAP,
                                                                      ^
>> drivers/gpu/drm/v3d/v3d_bo.c:184:2: error: implicit declaration of function 'vunmap' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
           vunmap(bo->vaddr);
           ^
   drivers/gpu/drm/v3d/v3d_bo.c:184:2: note: did you mean 'iounmap'?
   arch/mips/include/asm/io.h:154:6: note: 'iounmap' declared here
   void iounmap(const volatile void __iomem *addr);
        ^
   4 errors generated.


vim +/vmap +178 drivers/gpu/drm/v3d/v3d_bo.c

   173	
   174	void v3d_get_bo_vaddr(struct v3d_bo *bo)
   175	{
   176		struct drm_gem_shmem_object *obj = &bo->base;
   177	
 > 178		bo->vaddr = vmap(obj->pages, obj->base.size >> PAGE_SHIFT, VM_MAP,
   179				 pgprot_writecombine(PAGE_KERNEL));
   180	}
   181	
   182	void v3d_put_bo_vaddr(struct v3d_bo *bo)
   183	{
 > 184		vunmap(bo->vaddr);
   185		bo->vaddr = NULL;
   186	}
   187	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux