linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [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
@ 2023-12-09  7:26 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-09  7:26 UTC (permalink / raw)
  To: Maíra Canal
  Cc: oe-kbuild-all, Linux Memory Management List, Iago Toral Quiroga

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@intel.com/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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312091544.9mAHr8uc-lkp@intel.com/

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-09  7:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-09  7:26 [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 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox