tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.4.y
head: 4de1fa76539c49f87a9281232dcdfd25f21f1476
commit: 481b3c3bfdc83b10aedb9819d7c9f1dbc122a5da [4426/7496] misc: sram: Add
dma-heap-export reserved SRAM area type
config: m68k-randconfig-r032-20200614 (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 >>, old ones prefixed by <<):
In file included from include/linux/string.h:6,
from include/linux/dma-mapping.h:6,
from drivers/misc/sram-dma-heap.c:9:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_no.h:33:50: warning: ordered comparison of pointer with null
pointer [-Wextra]
33 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET)
&& | ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
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
git remote add ti
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git remote update ti
git checkout 481b3c3bfdc83b10aedb9819d7c9f1dbc122a5da
vim +/pgprot_writecombine +126 drivers/misc/sram-dma-heap.c
481b3c3bfdc83b Andrew F. Davis 2020-02-19 119
481b3c3bfdc83b Andrew F. Davis 2020-02-19 120 static int dma_heap_mmap(struct dma_buf
*dmabuf, struct vm_area_struct *vma)
481b3c3bfdc83b Andrew F. Davis 2020-02-19 121 {
481b3c3bfdc83b Andrew F. Davis 2020-02-19 122 struct sram_dma_heap_buffer *buffer =
dmabuf->priv;
481b3c3bfdc83b Andrew F. Davis 2020-02-19 123 int ret;
481b3c3bfdc83b Andrew F. Davis 2020-02-19 124
481b3c3bfdc83b Andrew F. Davis 2020-02-19 125 /* SRAM mappings are not cached */
481b3c3bfdc83b Andrew F. Davis 2020-02-19 @126 vma->vm_page_prot =
pgprot_writecombine(vma->vm_page_prot);
481b3c3bfdc83b Andrew F. Davis 2020-02-19 127
481b3c3bfdc83b Andrew F. Davis 2020-02-19 128 ret = vm_iomap_memory(vma,
buffer->paddr, buffer->len);
481b3c3bfdc83b Andrew F. Davis 2020-02-19 129 if (ret)
481b3c3bfdc83b Andrew F. Davis 2020-02-19 130 pr_err("Could not map buffer to
userspace\n");
481b3c3bfdc83b Andrew F. Davis 2020-02-19 131
481b3c3bfdc83b Andrew F. Davis 2020-02-19 132 return ret;
481b3c3bfdc83b Andrew F. Davis 2020-02-19 133 }
481b3c3bfdc83b Andrew F. Davis 2020-02-19 134
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org