All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	Christoph Hellwig <hch@lst.de>,
	Valentin Rothberg <valentinrothberg@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: error: implicit declaration of function 'dma_get_cache_alignment'
Date: Sun, 31 Jul 2016 10:56:06 +0800	[thread overview]
Message-ID: <201607311003.WevX7O2J%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2366 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7f155c702677d057d03b192ce652311de5434697
commit: e1c7e324539ada3b2b13ca2898bcb4948a9ef9db dma-mapping: always provide the dma_map_ops based implementation
date:   6 months ago
config: m32r-allyesconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout e1c7e324539ada3b2b13ca2898bcb4948a9ef9db
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   drivers/media/v4l2-core/videobuf2-dma-contig.c: In function 'vb2_dc_get_userptr':
>> drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: error: implicit declaration of function 'dma_get_cache_alignment' [-Werror=implicit-function-declaration]
     unsigned long dma_align = dma_get_cache_alignment();
     ^
   cc1: some warnings being treated as errors

vim +/dma_get_cache_alignment +484 drivers/media/v4l2-core/videobuf2-dma-contig.c

fb639eb3 Jan Kara            2015-07-13  478  	struct frame_vector *vec;
e15dab75 Tomasz Stanislawski 2012-06-14  479  	unsigned long offset;
fb639eb3 Jan Kara            2015-07-13  480  	int n_pages, i;
e15dab75 Tomasz Stanislawski 2012-06-14  481  	int ret = 0;
e15dab75 Tomasz Stanislawski 2012-06-14  482  	struct sg_table *sgt;
e15dab75 Tomasz Stanislawski 2012-06-14  483  	unsigned long contig_size;
d81e870d Marek Szyprowski    2012-06-12 @484  	unsigned long dma_align = dma_get_cache_alignment();
251a79f8 Hans Verkuil        2014-11-18  485  	DEFINE_DMA_ATTRS(attrs);
251a79f8 Hans Verkuil        2014-11-18  486  
251a79f8 Hans Verkuil        2014-11-18  487  	dma_set_attr(DMA_ATTR_SKIP_CPU_SYNC, &attrs);

:::::: The code at line 484 was first introduced by commit
:::::: d81e870d5afa1b0a95ea94c4052d3c7e973fae8c [media] v4l: vb2-dma-contig: fail if user ptr buffer is not correctly aligned

:::::: TO: Marek Szyprowski <m.szyprowski@samsung.com>
:::::: CC: Mauro Carvalho Chehab <mchehab@redhat.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 34705 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <fengguang.wu@intel.com>
To: unlisted-recipients:; (no To-header on input)
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	Christoph Hellwig <hch@lst.de>,
	Valentin Rothberg <valentinrothberg@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: error: implicit declaration of function 'dma_get_cache_alignment'
Date: Sun, 31 Jul 2016 10:56:06 +0800	[thread overview]
Message-ID: <201607311003.WevX7O2J%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2366 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7f155c702677d057d03b192ce652311de5434697
commit: e1c7e324539ada3b2b13ca2898bcb4948a9ef9db dma-mapping: always provide the dma_map_ops based implementation
date:   6 months ago
config: m32r-allyesconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout e1c7e324539ada3b2b13ca2898bcb4948a9ef9db
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   drivers/media/v4l2-core/videobuf2-dma-contig.c: In function 'vb2_dc_get_userptr':
>> drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: error: implicit declaration of function 'dma_get_cache_alignment' [-Werror=implicit-function-declaration]
     unsigned long dma_align = dma_get_cache_alignment();
     ^
   cc1: some warnings being treated as errors

vim +/dma_get_cache_alignment +484 drivers/media/v4l2-core/videobuf2-dma-contig.c

fb639eb3 Jan Kara            2015-07-13  478  	struct frame_vector *vec;
e15dab75 Tomasz Stanislawski 2012-06-14  479  	unsigned long offset;
fb639eb3 Jan Kara            2015-07-13  480  	int n_pages, i;
e15dab75 Tomasz Stanislawski 2012-06-14  481  	int ret = 0;
e15dab75 Tomasz Stanislawski 2012-06-14  482  	struct sg_table *sgt;
e15dab75 Tomasz Stanislawski 2012-06-14  483  	unsigned long contig_size;
d81e870d Marek Szyprowski    2012-06-12 @484  	unsigned long dma_align = dma_get_cache_alignment();
251a79f8 Hans Verkuil        2014-11-18  485  	DEFINE_DMA_ATTRS(attrs);
251a79f8 Hans Verkuil        2014-11-18  486  
251a79f8 Hans Verkuil        2014-11-18  487  	dma_set_attr(DMA_ATTR_SKIP_CPU_SYNC, &attrs);

:::::: The code at line 484 was first introduced by commit
:::::: d81e870d5afa1b0a95ea94c4052d3c7e973fae8c [media] v4l: vb2-dma-contig: fail if user ptr buffer is not correctly aligned

:::::: TO: Marek Szyprowski <m.szyprowski@samsung.com>
:::::: CC: Mauro Carvalho Chehab <mchehab@redhat.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 34705 bytes --]

             reply	other threads:[~2016-07-31  2:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-31  2:56 kbuild test robot [this message]
2016-07-31  2:56 ` drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: error: implicit declaration of function 'dma_get_cache_alignment' kbuild test robot

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=201607311003.WevX7O2J%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=hch@lst.de \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=valentinrothberg@gmail.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 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.