[linux-next:master 3648/6165] drivers/gpu/drm/v3d/v3d_bo.c:178:14: error: call to undeclared function 'vmap'; ISO C99 and later do not support implicit function declarations

[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:   bc63de6e6ba0b16652c5fb4b9c9916b9e7ca1f23
commit: 7c13132c4073628b5fe23b5188ac583a2882a6b0 [3648/6165] drm/v3d: Enable BO mapping
config: mips-randconfig-r113-20231209 (https://download.01.org/0day-ci/archive/20231209/202312091544.9mAHr8uc-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20231209/202312091544.9mAHr8uc-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/202312091544.9mAHr8uc-lkp@xxxxxxxxx/

Note: the linux-next/master HEAD bc63de6e6ba0b16652c5fb4b9c9916b9e7ca1f23 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
     319 | enum v3d_cpu_job_type {};
         |                        ^
>> drivers/gpu/drm/v3d/v3d_bo.c:178:14: error: call to undeclared function 'vmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     178 |         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:2669:19: note: 'bmap' declared here
    2669 | static inline int bmap(struct inode *inode,  sector_t *block)
         |                   ^
>> drivers/gpu/drm/v3d/v3d_bo.c:178:61: error: use of undeclared identifier 'VM_MAP'
     178 |         bo->vaddr = vmap(obj->pages, obj->base.size >> PAGE_SHIFT, VM_MAP,
         |                                                                    ^
>> drivers/gpu/drm/v3d/v3d_bo.c:184:2: error: call to undeclared function 'vunmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     184 |         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
     154 | 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