From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752692AbbDCUgh (ORCPT ); Fri, 3 Apr 2015 16:36:37 -0400 Received: from blu004-omc1s31.hotmail.com ([65.55.116.42]:58582 "EHLO BLU004-OMC1S31.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752450AbbDCUgd (ORCPT ); Fri, 3 Apr 2015 16:36:33 -0400 X-TMN: [3LhJQEwgBOCnE4B6v04zxm0mDaTLtLgL] X-Originating-Email: [xili_gchen_5257@hotmail.com] Message-ID: Date: Sat, 4 Apr 2015 04:36:31 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: realmz6@gmail.com CC: kirill.shutemov@linux.intel.com, Andrew Morton , "adi-buildroot-devel@lists.sourceforge.net" , "linux-kernel@vger.kernel.org" Subject: [PATCH] blackfin: include: asm: pgtable: Define dummy pgprot_writecombine Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Apr 2015 20:36:32.0012 (UTC) FILETIME=[DE9D1CC0:01D06E4D] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 }' from type 'int' area->vm_page_prot = pgprot_writecombine(area->vm_page_prot); ^ Signed-off-by: Chen Gang --- 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