[kwiboo-linux-rockchip:rockchip-5.1-patches-from-5.3-v5.1.5 83/106] drivers/gpu//drm/rockchip/rockchip_drm_gem.c:230:9: error: implicit declaration of function 'vm_map_pages'; did you mean 'vma_pages'?

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

 



tree:   https://github.com/Kwiboo/linux-rockchip rockchip-5.1-patches-from-5.3-v5.1.5
head:   622dad206e3b82c53acac1857f8a6ff970c0d01b
commit: 4004964b0854f3258032a723627d487882a74380 [83/106] drm/rockchip/rockchip_drm_gem.c: convert to use vm_map_pages()
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 4004964b0854f3258032a723627d487882a74380
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   drivers/gpu//drm/rockchip/rockchip_drm_gem.c: In function 'rockchip_drm_gem_object_mmap_iommu':
>> drivers/gpu//drm/rockchip/rockchip_drm_gem.c:230:9: error: implicit declaration of function 'vm_map_pages'; did you mean 'vma_pages'? [-Werror=implicit-function-declaration]
     return vm_map_pages(vma, rk_obj->pages, count);
            ^~~~~~~~~~~~
            vma_pages
   cc1: some warnings being treated as errors

vim +230 drivers/gpu//drm/rockchip/rockchip_drm_gem.c

   219	
   220	static int rockchip_drm_gem_object_mmap_iommu(struct drm_gem_object *obj,
   221						      struct vm_area_struct *vma)
   222	{
   223		struct rockchip_gem_object *rk_obj = to_rockchip_obj(obj);
   224		unsigned int count = obj->size >> PAGE_SHIFT;
   225		unsigned long user_count = vma_pages(vma);
   226	
   227		if (user_count == 0)
   228			return -ENXIO;
   229	
 > 230		return vm_map_pages(vma, rk_obj->pages, count);
   231	}
   232	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[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