Re: [PATCH 1/2] drivers: dma-coherent: Add support for default DMA coherent pool

From: kbuild test robot
Date: Tue Jul 04 2017 - 17:03:04 EST

Hi George,

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on v4.12]
[cannot apply to next-20170704]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

config: i386-randconfig-x075-07041126 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

drivers/base/dma-coherent.c: In function 'dev_get_dma_area':
>> drivers/base/dma-coherent.c:28:16: error: 'struct device' has no member named 'cma_area'; did you mean 'dma_parms'?
if (dev && dev->cma_area)

vim +28 drivers/base/dma-coherent.c

23 static inline struct dma_coherent_mem *dev_get_dma_area(struct device *dev)
24 {
25 if (dev && dev->dma_mem)
26 return dev->dma_mem;
27 #ifdef CONFIG_CMA
> 28 if (dev && dev->cma_area)
29 return NULL;
30 #endif
31 return dma_coherent_default_area ? *dma_coherent_default_area : NULL;

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation

Attachment: .config.gz
Description: application/gzip