From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [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
Date: Fri, 12 Nov 2021 05:51:18 +0800 [thread overview]
Message-ID: <202111120509.pcEZHWGD-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-11-11 21:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202111120509.pcEZHWGD-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.