From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752053Ab3F0Dak (ORCPT ); Wed, 26 Jun 2013 23:30:40 -0400 Received: from intranet.asianux.com ([58.214.24.6]:37323 "EHLO intranet.asianux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751557Ab3F0Dai (ORCPT ); Wed, 26 Jun 2013 23:30:38 -0400 X-Spam-Score: -100.8 Message-ID: <51CBB1A9.5080203@asianux.com> Date: Thu, 27 Jun 2013 11:29:45 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Hirokazu Takata CC: linux-m32r@ml.linux-m32r.org, linux-m32r-ja@ml.linux-m32r.org, "linux-kernel@vger.kernel.org" , Linux-Arch Subject: [PATCH] arch: m32r: include: asm: add ioread*be() and iowrite*be() References: <51CBA43F.9050000@asianux.com> <51CBAA1E.8000206@asianux.com> In-Reply-To: <51CBAA1E.8000206@asianux.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add generic ioread*be() and iowrite*be(), or compiling fails. The related error (with allmodconfig): drivers/ipack/ipack.c: In function ‘ipack_device_read_id’: drivers/ipack/ipack.c:376:3: error: implicit declaration of function ‘ioread16be’ [-Werror=implicit-function-declaration] Signed-off-by: Chen Gang --- arch/m32r/include/asm/io.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/m32r/include/asm/io.h b/arch/m32r/include/asm/io.h index 4010f1f..9f9b609 100644 --- a/arch/m32r/include/asm/io.h +++ b/arch/m32r/include/asm/io.h @@ -164,10 +164,14 @@ static inline void _writel(unsigned long l, unsigned long addr) #define ioread8 read #define ioread16 readw +#define ioread16be(addr) __be16_to_cpu(__raw_readw(addr)) #define ioread32 readl +#define ioread32be(addr) __be32_to_cpu(__raw_readl(addr)) #define iowrite8 writeb #define iowrite16 writew +#define iowrite16be(v, addr) __raw_writew(__cpu_to_be16(v), addr) #define iowrite32 writel +#define iowrite32be(v, addr) __raw_writel(__cpu_to_be32(v), addr) #define mmiowb() -- 1.7.7.6