* [chrome-os:chromeos-6.1 143/143] drivers/gpu/drm/evdi/evdi_gem.c:278:23: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast
@ 2023-05-08 16:10 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-08 16:10 UTC (permalink / raw)
To: cros-kernel-buildreports, Guenter Roeck; +Cc: oe-kbuild-all
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-6.1
head: 4c84ca78d36c41b436f7586426a05ae274ad7e53
commit: 4c84ca78d36c41b436f7586426a05ae274ad7e53 [143/143] CHROMIUM: drm/evdi: Port evdi from github.com/DisplayLink/evdi.git
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20230509/202305090048.S99VMp3k-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 12.1.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-6.1
git checkout 4c84ca78d36c41b436f7586426a05ae274ad7e53
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305090048.S99VMp3k-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:278:25: error: implicit declaration of function 'vmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
278 | obj->vmapping = vmap(obj->pages, page_count, 0, PAGE_KERNEL);
| ^~~~
| kmap
>> drivers/gpu/drm/evdi/evdi_gem.c:278:23: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
278 | 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:301:17: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'? [-Werror=implicit-function-declaration]
301 | vunmap(obj->vmapping);
| ^~~~~~
| kunmap
cc1: some warnings being treated as errors
vim +278 drivers/gpu/drm/evdi/evdi_gem.c
257
258 int evdi_gem_vmap(struct evdi_gem_object *obj)
259 {
260 int page_count = DIV_ROUND_UP(obj->base.size, PAGE_SIZE);
261 int ret;
262
263 if (evdi_drm_gem_object_use_import_attach(&obj->base)) {
264 struct iosys_map map = IOSYS_MAP_INIT_VADDR(NULL);
265
266 ret = dma_buf_vmap(obj->base.import_attach->dmabuf, &map);
267 if (ret)
268 return -ENOMEM;
269 obj->vmapping = map.vaddr;
270 obj->vmap_is_iomem = map.is_iomem;
271 return 0;
272 }
273
274 ret = evdi_pin_pages(obj);
275 if (ret)
276 return ret;
277
> 278 obj->vmapping = vmap(obj->pages, page_count, 0, PAGE_KERNEL);
279 if (!obj->vmapping)
280 return -ENOMEM;
281 return 0;
282 }
283
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-08 16:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-08 16:10 [chrome-os:chromeos-6.1 143/143] drivers/gpu/drm/evdi/evdi_gem.c:278:23: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).