From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754548AbbCBXIT (ORCPT ); Mon, 2 Mar 2015 18:08:19 -0500 Received: from mail113-251.mail.alibaba.com ([205.204.113.251]:60400 "EHLO us-alimail-mta1.hst.scl.en.alidc.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753942AbbCBXIS (ORCPT ); Mon, 2 Mar 2015 18:08:18 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07790834|-1;FP=0|0|0|0|0|-1|-1|-1;HT=r41g03014;MF=gang.chen@sunrus.com.cn;PH=DS;RN=2;RT=2;SR=0; Message-ID: <54F4EF03.5060403@sunrus.com.cn> Date: Tue, 03 Mar 2015 07:15:15 +0800 From: Chen Gang S User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Chen Gang <762976180@qq.com>, "linux-kernel@vger.kernel.org" Subject: Fwd: [PATCH] c6x: asm: pgtable: Define dummy pgprot_writecombine for !MMU References: <54F4ECF1.6060709@qq.com> In-Reply-To: <54F4ECF1.6060709@qq.com> X-Forwarded-Message-Id: <54F4ECF1.6060709@qq.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org -------- Forwarded Message -------- Subject: [PATCH] c6x: asm: pgtable: Define dummy pgprot_writecombine for !MMU Date: Tue, 03 Mar 2015 07:06:25 +0800 From: Chen Gang <762976180@qq.com> To: msalter@redhat.com, a-jacquiot@ti.com CC: kirill.shutemov@linux.intel.com, Andrew Morton , linux-c6x-dev@linux-c6x.org , linux-kernel@vger.kernel.org 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 }' from type 'int' prot = pgprot_writecombine(PAGE_KERNEL); ^ Signed-off-by: Chen Gang --- arch/c6x/include/asm/pgtable.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/c6x/include/asm/pgtable.h b/arch/c6x/include/asm/pgtable.h index 78d4483..ec4db6d 100644 --- a/arch/c6x/include/asm/pgtable.h +++ b/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 #endif /* _ASM_C6X_PGTABLE_H */ -- 1.9.3