The patch titled Subject: arch/c6x/include/asm/pgtable.h: define dummy pgprot_writecombine for !MMU has been added to the -mm tree. Its filename is c6x-asm-pgtable-define-dummy-pgprot_writecombine-for-mmu.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/c6x-asm-pgtable-define-dummy-pgprot_writecombine-for-mmu.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/c6x-asm-pgtable-define-dummy-pgprot_writecombine-for-mmu.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Chen Gang <762976180@xxxxxx> Subject: arch/c6x/include/asm/pgtable.h: define dummy pgprot_writecombine for !MMU When !MMU, asm-generic will not define default pgprot_writecombine, so c6x needs to define it by itself. The related error: CC [M] fs/pstore/ram_core.o fs/pstore/ram_core.c: In function 'persistent_ram_vmap': fs/pstore/ram_core.c:399:10: error: implicit declaration of function 'pgprot_writecombine' [-Werror=implicit-function-declaration] prot = pgprot_writecombine(PAGE_KERNEL); ^ fs/pstore/ram_core.c:399:8: error: incompatible types when assigning to type 'pgprot_t {aka struct <anonymous>}' from type 'int' prot = pgprot_writecombine(PAGE_KERNEL); ^ Signed-off-by: Chen Gang <gang.chen.5i5j@xxxxxxxxx> Cc: Mark Salter <msalter@xxxxxxxxxx> Cc: Aurelien Jacquiot <a-jacquiot@xxxxxx> Cc: "Kirill A. Shutemov" <kirill@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/c6x/include/asm/pgtable.h | 5 +++++ 1 file changed, 5 insertions(+) diff -puN arch/c6x/include/asm/pgtable.h~c6x-asm-pgtable-define-dummy-pgprot_writecombine-for-mmu arch/c6x/include/asm/pgtable.h --- a/arch/c6x/include/asm/pgtable.h~c6x-asm-pgtable-define-dummy-pgprot_writecombine-for-mmu +++ a/arch/c6x/include/asm/pgtable.h @@ -67,6 +67,11 @@ extern unsigned long empty_zero_page; */ #define pgtable_cache_init() do { } while (0) +/* + * c6x is !MMU, so define the simpliest implementation + */ +#define pgprot_writecombine pgprot_noncached + #include <asm-generic/pgtable.h> #endif /* _ASM_C6X_PGTABLE_H */ _ Patches currently in -mm which might be from 762976180@xxxxxx are c6x-asm-pgtable-define-dummy-pgprot_writecombine-for-mmu.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html