Hi Andrew,
FYI, the error/warning still remains.
tree:
https://github.com/omap-audio/linux-audio peter/ti-linux-5.4.y/wip
head: 66480e4ac3f3e2d48b2d0d5303d26515294636fc
commit: 481b3c3bfdc83b10aedb9819d7c9f1dbc122a5da [6747/9999] misc: sram: Add
dma-heap-export reserved SRAM area type
config: m68k-randconfig-r015-20200709 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 481b3c3bfdc83b10aedb9819d7c9f1dbc122a5da
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/misc/sram-dma-heap.c: In function 'dma_heap_mmap':
> drivers/misc/sram-dma-heap.c:126:22: error: implicit declaration
of function 'pgprot_writecombine' [-Werror=implicit-function-declaration]
126 | vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
| ^~~~~~~~~~~~~~~~~~~
> drivers/misc/sram-dma-heap.c:126:22: error: incompatible types
when assigning to type 'pgprot_t' {aka 'struct <anonymous>'} from
type 'int'
cc1: some warnings being treated as errors
vim +/pgprot_writecombine +126 drivers/misc/sram-dma-heap.c
119
120 static int dma_heap_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma)
121 {
122 struct sram_dma_heap_buffer *buffer = dmabuf->priv;
123 int ret;
124
125 /* SRAM mappings are not cached */
126 vma->vm_page_prot =
pgprot_writecombine(vma->vm_page_prot);
127
128 ret = vm_iomap_memory(vma, buffer->paddr, buffer->len);
129 if (ret)
130 pr_err("Could not map buffer to userspace\n");
131
132 return ret;
133 }
134
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org