From patchwork Mon Jun 27 08:32:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 70905 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp956840qgy; Mon, 27 Jun 2016 01:32:06 -0700 (PDT) X-Received: by 10.194.119.164 with SMTP id kv4mr14085800wjb.179.1467016326459; Mon, 27 Jun 2016 01:32:06 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id t188si12527304wma.120.2016.06.27.01.32.06; Mon, 27 Jun 2016 01:32:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4AE2DA7681; Mon, 27 Jun 2016 10:32:03 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L6oSpZTTlzqR; Mon, 27 Jun 2016 10:32:03 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B1D29A7684; Mon, 27 Jun 2016 10:31:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0E90FA75E9 for ; Mon, 27 Jun 2016 10:31:55 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EGE39sxiYbJj for ; Mon, 27 Jun 2016 10:31:54 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) by theia.denx.de (Postfix) with ESMTPS id 5C0ADA7577 for ; Mon, 27 Jun 2016 10:31:52 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id u5R8VAv0021043; Mon, 27 Jun 2016 17:31:12 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com u5R8VAv0021043 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1467016273; bh=a/OnIrV0VgyFeiM+QO+6G6D2ssyPIMftqGcPNrGX4eA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=25131S2KPD7/llxHgkW0q5RnKsM8UcrUoSVGqGs42tjLJoSmx3+bMVtdpFQZF9CEv LilYwdRKr5wYjVnK4Rwr6y37jDJZpl4AolV7NDnkR8CxjSfKyOXjEgR1+ly3wyp5h5 DP5vanwOWkiy65uoDX3wr/USpPzowpwWmRk+bFvXk27ZrWReKEIe88A4trVcU+myVw CA+WbcpMlyPIl7YK0HPzZcEjSNK0NczyCBaOsPLtrwT722mg2veTG6wy5/mSRpBswS iRUdwQqoCXQE/TgZvqsRNGI41yNilcimBHFqJdd4jMfUBQ0G42UKmanFJWOxFEkXGJ nu0zgqxJFra4Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Mon, 27 Jun 2016 17:32:28 +0900 Message-Id: <1467016351-22360-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467016351-22360-1-git-send-email-yamada.masahiro@socionext.com> References: <1467016351-22360-1-git-send-email-yamada.masahiro@socionext.com> Cc: Aneesh Bansal , York Sun Subject: [U-Boot] [PATCH 1/3] types.h: move and redefine resource_size_t X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Currently, this is only defined in arch/arm/include/asm/types.h, so move it to include/linux/types.h to make it available for all architectures. I defined it with phys_addr_t as Linux does. I needed to surround the define with #ifdef __KERNEL__ ... #endif to avoid build errors in tools building. (Host tools should not include in the first place, but this is already messy in U-Boot...) Signed-off-by: Masahiro Yamada --- arch/arm/include/asm/types.h | 1 - include/linux/types.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/arch/arm/include/asm/types.h b/arch/arm/include/asm/types.h index d108915..9af7353 100644 --- a/arch/arm/include/asm/types.h +++ b/arch/arm/include/asm/types.h @@ -71,5 +71,4 @@ typedef u32 dma_addr_t; #endif /* __KERNEL__ */ -typedef unsigned long resource_size_t; #endif diff --git a/include/linux/types.h b/include/linux/types.h index 6f75be4..416fa66 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -124,6 +124,10 @@ typedef __UINT64_TYPE__ u_int64_t; typedef __INT64_TYPE__ int64_t; #endif +#ifdef __KERNEL__ +typedef phys_addr_t resource_size_t; +#endif + /* * Below are truly Linux-specific types that should never collide with * any application/library that wants linux/types.h.