linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: error: implicit declaration of function 'dma_get_cache_alignment'
@ 2016-07-31  2:56 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-07-31  2:56 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, Christoph Hellwig, Valentin Rothberg,
	Andrew Morton, Linux Memory Management List

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-31  2:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).