From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJJRb-0002j1-4P for barebox@lists.infradead.org; Thu, 17 May 2018 13:59:49 +0000 Received: by mail-wm0-x242.google.com with SMTP id m129-v6so9266854wmb.3 for ; Thu, 17 May 2018 06:59:36 -0700 (PDT) From: Peter Mamonov Date: Thu, 17 May 2018 16:58:47 +0300 Message-Id: <20180517135858.16202-5-pmamonov@gmail.com> In-Reply-To: <20180517135858.16202-1-pmamonov@gmail.com> References: <20180517135858.16202-1-pmamonov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [RFC PATCH 04/15] mips: fix warnings from CPHYSADDR() macro To: barebox@lists.infradead.org Cc: Peter Mamonov Signed-off-by: Peter Mamonov --- arch/mips/include/asm/addrspace.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/include/asm/addrspace.h b/arch/mips/include/asm/addrspace.h index 17d480d08..04d0f95db 100644 --- a/arch/mips/include/asm/addrspace.h +++ b/arch/mips/include/asm/addrspace.h @@ -48,7 +48,12 @@ /* * Returns the physical address of a CKSEGx / XKPHYS address */ +#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT +#define CPHYSADDR(a) ((_ACAST64_(a)) & 0x1fffffff) +#else #define CPHYSADDR(a) ((_ACAST32_(a)) & 0x1fffffff) +#endif + #define XPHYSADDR(a) ((_ACAST64_(a)) & \ _CONST64_(0x000000ffffffffff)) -- 2.17.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox