All of lore.kernel.org
 help / color / mirror / Atom feed
* [chrome-os:chromeos-5.10 1/1] drivers/gpu/drm/evdi/evdi_gem.c:253:23: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast
@ 2021-11-11 21:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-11 21:51 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head:   ae25dd46c5c2fecb4868af3a91418dea519deac9
commit: ae25dd46c5c2fecb4868af3a91418dea519deac9 [1/1] CHROMIUM: Import latest evdi driver
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.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 ae25dd46c5c2fecb4868af3a91418dea519deac9
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=alpha 

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/evdi/evdi_gem.c: In function 'evdi_gem_vmap':
   drivers/gpu/drm/evdi/evdi_gem.c:253:25: error: implicit declaration of function 'vmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
     253 |         obj->vmapping = vmap(obj->pages, page_count, 0, PAGE_KERNEL);
         |                         ^~~~
         |                         kmap
>> drivers/gpu/drm/evdi/evdi_gem.c:253:23: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     253 |         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:274:17: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'? [-Werror=implicit-function-declaration]
     274 |                 vunmap(obj->vmapping);
         |                 ^~~~~~
         |                 kunmap
   cc1: some warnings being treated as errors


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

3e21cedd503fab Aleksander Miera 2018-03-15  227  
3e21cedd503fab Aleksander Miera 2018-03-15  228  int evdi_gem_vmap(struct evdi_gem_object *obj)
3e21cedd503fab Aleksander Miera 2018-03-15  229  {
3e21cedd503fab Aleksander Miera 2018-03-15  230  	int page_count = obj->base.size / PAGE_SIZE;
3e21cedd503fab Aleksander Miera 2018-03-15  231  	int ret;
3e21cedd503fab Aleksander Miera 2018-03-15  232  
3e21cedd503fab Aleksander Miera 2018-03-15  233  	if (obj->base.import_attach) {
79e3410df198df Sean Paul        2021-04-09  234  #if KERNEL_VERSION(5, 10, 0) <= LINUX_VERSION_CODE
5d42c7b3d93d6c Sean Paul        2021-04-09  235  		struct dma_buf_map map;
5d42c7b3d93d6c Sean Paul        2021-04-09  236  
5d42c7b3d93d6c Sean Paul        2021-04-09  237  		ret = dma_buf_vmap(obj->base.import_attach->dmabuf, &map);
5d42c7b3d93d6c Sean Paul        2021-04-09  238  		if (ret)
5d42c7b3d93d6c Sean Paul        2021-04-09  239  			return -ENOMEM;
5d42c7b3d93d6c Sean Paul        2021-04-09  240  		obj->vmapping = map.vaddr;
5d42c7b3d93d6c Sean Paul        2021-04-09  241  #else
3e21cedd503fab Aleksander Miera 2018-03-15  242  		obj->vmapping = dma_buf_vmap(obj->base.import_attach->dmabuf);
3e21cedd503fab Aleksander Miera 2018-03-15  243  		if (!obj->vmapping)
3e21cedd503fab Aleksander Miera 2018-03-15  244  			return -ENOMEM;
5d42c7b3d93d6c Sean Paul        2021-04-09  245  #endif
3e21cedd503fab Aleksander Miera 2018-03-15  246  		return 0;
3e21cedd503fab Aleksander Miera 2018-03-15  247  	}
3e21cedd503fab Aleksander Miera 2018-03-15  248  
67442e0531eb83 Guenter Roeck    2020-11-04  249  	ret = evdi_gem_get_pages(obj, GFP_KERNEL);
3e21cedd503fab Aleksander Miera 2018-03-15  250  	if (ret)
3e21cedd503fab Aleksander Miera 2018-03-15  251  		return ret;
3e21cedd503fab Aleksander Miera 2018-03-15  252  
3e21cedd503fab Aleksander Miera 2018-03-15 @253  	obj->vmapping = vmap(obj->pages, page_count, 0, PAGE_KERNEL);
3e21cedd503fab Aleksander Miera 2018-03-15  254  	if (!obj->vmapping)
3e21cedd503fab Aleksander Miera 2018-03-15  255  		return -ENOMEM;
3e21cedd503fab Aleksander Miera 2018-03-15  256  	return 0;
3e21cedd503fab Aleksander Miera 2018-03-15  257  }
3e21cedd503fab Aleksander Miera 2018-03-15  258  

:::::: The code at line 253 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: 67601 bytes --]

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

only message in thread, other threads:[~2021-11-11 21:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 21:51 [chrome-os:chromeos-5.10 1/1] drivers/gpu/drm/evdi/evdi_gem.c:253:23: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast 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.