Re: [PATCH] staging: ion: make the pte default none PTE_RDONLY

From: kbuild test robot
Date: Thu Jan 14 2016 - 21:59:45 EST

Hi Chen,

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

config: x86_64-randconfig-x013-01140842 (attached as .config)
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/staging/android/ion/ion.c: In function 'ion_mmap':
>> drivers/staging/android/ion/ion.c:1030:34: error: incompatible type for argument 1 of 'pte_mkdirty'
vma->vm_page_prot = pte_mkdirty(vma->vm_page_prot);
In file included from include/linux/mm.h:55:0,
from include/linux/memblock.h:18,
from drivers/staging/android/ion/ion.c:26:
arch/x86/include/asm/pgtable.h:218:21: note: expected 'pte_t {aka struct <anonymous>}' but argument is of type 'pgprot_t {aka struct pgprot}'
static inline pte_t pte_mkdirty(pte_t pte)

vim +/pte_mkdirty +1030 drivers/staging/android/ion/ion.c

1024 }
1026 if (!(buffer->flags & ION_FLAG_CACHED))
1027 vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
1029 /*Default writeable*/
> 1030 vma->vm_page_prot = pte_mkdirty(vma->vm_page_prot);
1032 mutex_lock(&buffer->lock);
1033 /* now map it to userspace */

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

Attachment: .config.gz
Description: Binary data