* [chrome-os:chromeos-5.10 6770/7739] drivers/gpu/drm/evdi/evdi_gem.c:273:3: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'?
@ 2021-04-20 1:35 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-20 1:35 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4624 bytes --]
Hi Sean,
FYI, the error/warning still remains.
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: e67573a71d8276ac72915196b2dd0ac152e2ecc6
commit: 5d42c7b3d93d6ce4f7cfbfc0f0d6ea2c2445406a [6770/7739] CHROMIUM: Import latest evdi driver
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-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=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (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 +273 drivers/gpu/drm/evdi/evdi_gem.c
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 273 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: 71978 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-20 1:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-20 1:35 [chrome-os:chromeos-5.10 6770/7739] drivers/gpu/drm/evdi/evdi_gem.c:273:3: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'? 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.