linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Souptick Joarder <jrdr.linux@gmail.com>
Cc: kbuild-all@01.org, Jonas Karlman <jonas@kwiboo.se>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [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'?
Date: Sun, 26 May 2019 16:33:02 +0800	[thread overview]
Message-ID: <201905261601.kLMmVcwn%lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2019-05-26  8:34 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=201905261601.kLMmVcwn%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=jonas@kwiboo.se \
    --cc=jrdr.linux@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=m.szyprowski@samsung.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox