mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chen Gang <xili_gchen_5257@hotmail.com>
To: realmz6@gmail.com
Cc: kirill.shutemov@linux.intel.com,
	Andrew Morton <akpm@linux-foundation.org>,
	"adi-buildroot-devel@lists.sourceforge.net" 
	<adi-buildroot-devel@lists.sourceforge.net>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [PATCH] blackfin: include: asm: pgtable: Define dummy pgprot_writecombine
Date: Sat, 4 Apr 2015 04:36:31 +0800	[thread overview]
Message-ID: <BLU436-SMTP19883C3441D8F08739FCF3DB9F10@phx.gbl> (raw)

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

             reply	other threads:[~2015-04-03 20:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-03 20:36 Chen Gang [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BLU436-SMTP19883C3441D8F08739FCF3DB9F10@phx.gbl \
    --to=xili_gchen_5257@hotmail.com \
    --cc=adi-buildroot-devel@lists.sourceforge.net \
    --cc=akpm@linux-foundation.org \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=realmz6@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®