* [kwiboo-linux-rockchip:rockchip-5.1-v4l2-from-5.3-v5.1.5 77/88] drivers/media//common/videobuf2/videobuf2-dma-sg.c:338:8: error: implicit declaration of function 'vm_map_pages'; did you mean 'vma_pages'?
@ 2019-05-26 8:33 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-05-26 8:33 UTC (permalink / raw)
To: Souptick Joarder
Cc: kbuild-all, Jonas Karlman, Marek Szyprowski, Andrew Morton,
Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 2155 bytes --]
tree: https://github.com/Kwiboo/linux-rockchip rockchip-5.1-v4l2-from-5.3-v5.1.5
head: 478d6e4e03edc3c39e4e9096777533a65b2714d6
commit: d86645f8d79fcc8209e0ec9367a9170e51900938 [77/88] videobuf2/videobuf2-dma-sg.c: convert to use vm_map_pages()
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d86645f8d79fcc8209e0ec9367a9170e51900938
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/media//common/videobuf2/videobuf2-dma-sg.c: In function 'vb2_dma_sg_mmap':
>> drivers/media//common/videobuf2/videobuf2-dma-sg.c:338:8: error: implicit declaration of function 'vm_map_pages'; did you mean 'vma_pages'? [-Werror=implicit-function-declaration]
err = vm_map_pages(vma, buf->pages, buf->num_pages);
^~~~~~~~~~~~
vma_pages
cc1: some warnings being treated as errors
vim +338 drivers/media//common/videobuf2/videobuf2-dma-sg.c
327
328 static int vb2_dma_sg_mmap(void *buf_priv, struct vm_area_struct *vma)
329 {
330 struct vb2_dma_sg_buf *buf = buf_priv;
331 int err;
332
333 if (!buf) {
334 printk(KERN_ERR "No memory to map\n");
335 return -EINVAL;
336 }
337
> 338 err = vm_map_pages(vma, buf->pages, buf->num_pages);
339 if (err) {
340 printk(KERN_ERR "Remapping memory, error: %d\n", err);
341 return err;
342 }
343
344 /*
345 * Use common vm_area operations to track buffer refcount.
346 */
347 vma->vm_private_data = &buf->handler;
348 vma->vm_ops = &vb2_common_vm_ops;
349
350 vma->vm_ops->open(vma);
351
352 return 0;
353 }
354
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 63234 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-05-26 8:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-26 8:33 [kwiboo-linux-rockchip:rockchip-5.1-v4l2-from-5.3-v5.1.5 77/88] drivers/media//common/videobuf2/videobuf2-dma-sg.c:338:8: error: implicit declaration of function 'vm_map_pages'; did you mean 'vma_pages'? kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox