All of lore.kernel.org
 help / color / mirror / Atom feed
* [chrome-os:chromeos-5.10 6618/7370] drivers/gpu/drm/evdi/evdi_gem.c:252:18: error: implicit declaration of function 'vmap'; did you mean 'kmap'?
@ 2021-04-15  2:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-15  2:51 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6774 bytes --]

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head:   855263bf4aea5d744a18fc47c36fce003a497090
commit: 5d42c7b3d93d6ce4f7cfbfc0f0d6ea2c2445406a [6618/7370] CHROMIUM: Import latest evdi driver
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
        git fetch --no-tags chrome-os chromeos-5.10
        git checkout 5d42c7b3d93d6ce4f7cfbfc0f0d6ea2c2445406a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=mips 

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

All error/warnings (new ones prefixed by >>):

   cc1: warning: include/drm: No such file or directory [-Wmissing-include-dirs]
   drivers/gpu/drm/evdi/evdi_gem.c: In function 'evdi_gem_vmap':
   drivers/gpu/drm/evdi/evdi_gem.c:241:19: error: too few arguments to function 'dma_buf_vmap'
     241 |   obj->vmapping = dma_buf_vmap(obj->base.import_attach->dmabuf);
         |                   ^~~~~~~~~~~~
   In file included from drivers/gpu/drm/evdi/evdi_gem.c:18:
   include/linux/dma-buf.h:507:5: note: declared here
     507 | int dma_buf_vmap(struct dma_buf *dmabuf, struct dma_buf_map *map);
         |     ^~~~~~~~~~~~
>> drivers/gpu/drm/evdi/evdi_gem.c:252:18: error: implicit declaration of function 'vmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
     252 |  obj->vmapping = vmap(obj->pages, page_count, 0, PAGE_KERNEL);
         |                  ^~~~
         |                  kmap
>> drivers/gpu/drm/evdi/evdi_gem.c:252:16: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     252 |  obj->vmapping = vmap(obj->pages, page_count, 0, PAGE_KERNEL);
         |                ^
   drivers/gpu/drm/evdi/evdi_gem.c: In function 'evdi_gem_vunmap':
>> drivers/gpu/drm/evdi/evdi_gem.c:273:3: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'? [-Werror=implicit-function-declaration]
     273 |   vunmap(obj->vmapping);
         |   ^~~~~~
         |   kunmap
   cc1: some warnings being treated as errors


vim +252 drivers/gpu/drm/evdi/evdi_gem.c

3e21cedd503fab Aleksander Miera 2018-03-15  226  
3e21cedd503fab Aleksander Miera 2018-03-15  227  int evdi_gem_vmap(struct evdi_gem_object *obj)
3e21cedd503fab Aleksander Miera 2018-03-15  228  {
3e21cedd503fab Aleksander Miera 2018-03-15  229  	int page_count = obj->base.size / PAGE_SIZE;
3e21cedd503fab Aleksander Miera 2018-03-15  230  	int ret;
3e21cedd503fab Aleksander Miera 2018-03-15  231  
3e21cedd503fab Aleksander Miera 2018-03-15  232  	if (obj->base.import_attach) {
5d42c7b3d93d6c Sean Paul        2021-04-09  233  #if KERNEL_VERSION(5, 11, 0) <= LINUX_VERSION_CODE
5d42c7b3d93d6c Sean Paul        2021-04-09  234  		struct dma_buf_map map;
5d42c7b3d93d6c Sean Paul        2021-04-09  235  
5d42c7b3d93d6c Sean Paul        2021-04-09  236  		ret = dma_buf_vmap(obj->base.import_attach->dmabuf, &map);
5d42c7b3d93d6c Sean Paul        2021-04-09  237  		if (ret)
5d42c7b3d93d6c Sean Paul        2021-04-09  238  			return -ENOMEM;
5d42c7b3d93d6c Sean Paul        2021-04-09  239  		obj->vmapping = map.vaddr;
5d42c7b3d93d6c Sean Paul        2021-04-09  240  #else
3e21cedd503fab Aleksander Miera 2018-03-15 @241  		obj->vmapping = dma_buf_vmap(obj->base.import_attach->dmabuf);
3e21cedd503fab Aleksander Miera 2018-03-15  242  		if (!obj->vmapping)
3e21cedd503fab Aleksander Miera 2018-03-15  243  			return -ENOMEM;
5d42c7b3d93d6c Sean Paul        2021-04-09  244  #endif
3e21cedd503fab Aleksander Miera 2018-03-15  245  		return 0;
3e21cedd503fab Aleksander Miera 2018-03-15  246  	}
3e21cedd503fab Aleksander Miera 2018-03-15  247  
67442e0531eb83 Guenter Roeck    2020-11-04  248  	ret = evdi_gem_get_pages(obj, GFP_KERNEL);
3e21cedd503fab Aleksander Miera 2018-03-15  249  	if (ret)
3e21cedd503fab Aleksander Miera 2018-03-15  250  		return ret;
3e21cedd503fab Aleksander Miera 2018-03-15  251  
3e21cedd503fab Aleksander Miera 2018-03-15 @252  	obj->vmapping = vmap(obj->pages, page_count, 0, PAGE_KERNEL);
3e21cedd503fab Aleksander Miera 2018-03-15  253  	if (!obj->vmapping)
3e21cedd503fab Aleksander Miera 2018-03-15  254  		return -ENOMEM;
3e21cedd503fab Aleksander Miera 2018-03-15  255  	return 0;
3e21cedd503fab Aleksander Miera 2018-03-15  256  }
3e21cedd503fab Aleksander Miera 2018-03-15  257  
3e21cedd503fab Aleksander Miera 2018-03-15  258  void evdi_gem_vunmap(struct evdi_gem_object *obj)
3e21cedd503fab Aleksander Miera 2018-03-15  259  {
3e21cedd503fab Aleksander Miera 2018-03-15  260  	if (obj->base.import_attach) {
5d42c7b3d93d6c Sean Paul        2021-04-09  261  #if KERNEL_VERSION(5, 11, 0) <= LINUX_VERSION_CODE
5d42c7b3d93d6c Sean Paul        2021-04-09  262  		struct dma_buf_map map = DMA_BUF_MAP_INIT_VADDR(obj->vmapping);
5d42c7b3d93d6c Sean Paul        2021-04-09  263  
5d42c7b3d93d6c Sean Paul        2021-04-09  264  		dma_buf_vunmap(obj->base.import_attach->dmabuf, &map);
5d42c7b3d93d6c Sean Paul        2021-04-09  265  #else
3e21cedd503fab Aleksander Miera 2018-03-15  266  		dma_buf_vunmap(obj->base.import_attach->dmabuf, obj->vmapping);
5d42c7b3d93d6c Sean Paul        2021-04-09  267  #endif
3e21cedd503fab Aleksander Miera 2018-03-15  268  		obj->vmapping = NULL;
3e21cedd503fab Aleksander Miera 2018-03-15  269  		return;
3e21cedd503fab Aleksander Miera 2018-03-15  270  	}
3e21cedd503fab Aleksander Miera 2018-03-15  271  
3e21cedd503fab Aleksander Miera 2018-03-15  272  	if (obj->vmapping) {
3e21cedd503fab Aleksander Miera 2018-03-15 @273  		vunmap(obj->vmapping);
3e21cedd503fab Aleksander Miera 2018-03-15  274  		obj->vmapping = NULL;
3e21cedd503fab Aleksander Miera 2018-03-15  275  	}
3e21cedd503fab Aleksander Miera 2018-03-15  276  
3e21cedd503fab Aleksander Miera 2018-03-15  277  	evdi_gem_put_pages(obj);
3e21cedd503fab Aleksander Miera 2018-03-15  278  }
3e21cedd503fab Aleksander Miera 2018-03-15  279  

:::::: The code at line 252 was first introduced by commit
:::::: 3e21cedd503fabd195cf407652bf87fd83e202ac drm/evdi: Add atomic evdi drm module

:::::: TO: Aleksander Miera <aleksander.miera@displaylink.com>
:::::: CC: Guenter Roeck <groeck@chromium.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 69603 bytes --]

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

only message in thread, other threads:[~2021-04-15  2:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15  2:51 [chrome-os:chromeos-5.10 6618/7370] drivers/gpu/drm/evdi/evdi_gem.c:252:18: error: implicit declaration of function 'vmap'; did you mean 'kmap'? kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.