drivers/media/v4l2-core/videobuf2-dma-contig.c:484:2: error: implicit declaration of function 'dma_get_cache_alignment'
From: kbuild test robot
Date: Sat Jul 30 2016 - 22:57:00 EST
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@xxxxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data