mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] blackfin: include: asm: pgtable: Define dummy pgprot_writecombine
@ 2015-04-03 20:36 Chen Gang
  2015-04-03 22:50 ` Richard Weinberger
  0 siblings, 1 reply; 5+ messages in thread
From: Chen Gang @ 2015-04-03 20:36 UTC (permalink / raw)
  To: realmz6; +Cc: kirill.shutemov, Andrew Morton, adi-buildroot-devel, linux-kernel

It is copied from asm-generic, the related error with allmodconfig:

    CC [M]  sound/core/pcm_native.o
  sound/core/pcm_native.c: In function 'snd_pcm_lib_default_mmap':
  sound/core/pcm_native.c:3387:24: error: implicit declaration of function 'pgprot_writecombine' [-Werror=implicit-function-declaration]
     area->vm_page_prot = pgprot_writecombine(area->vm_page_prot);
                          ^
  sound/core/pcm_native.c:3387:22: error: incompatible types when assigning to type 'pgprot_t {aka struct <anonymous>}' from type 'int'
     area->vm_page_prot = pgprot_writecombine(area->vm_page_prot);
                        ^

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
 arch/blackfin/include/asm/pgtable.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/blackfin/include/asm/pgtable.h b/arch/blackfin/include/asm/pgtable.h
index b88a155..3e730d9 100644
--- a/arch/blackfin/include/asm/pgtable.h
+++ b/arch/blackfin/include/asm/pgtable.h
@@ -36,6 +36,7 @@ typedef pte_t *pte_addr_t;
 #define PAGE_READONLY		__pgprot(0)	/* these mean nothing to NO_MM */
 #define PAGE_KERNEL		__pgprot(0)	/* these mean nothing to NO_MM */
 #define pgprot_noncached(prot)	(prot)
+#define pgprot_writecombine	pgprot_noncached
 
 extern void paging_init(void);
 
-- 
1.9.3

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-04 22:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-03 20:36 [PATCH] blackfin: include: asm: pgtable: Define dummy pgprot_writecombine Chen Gang
2015-04-03 22:50 ` Richard Weinberger
2015-04-04 22:02   ` Chen Gang
2015-04-04 22:04     ` Richard Weinberger
2015-04-04 22:54       ` Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®