From patchwork Tue Jun 28 01:48:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 70971 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1341330qgy; Mon, 27 Jun 2016 18:48:26 -0700 (PDT) X-Received: by 10.194.157.162 with SMTP id wn2mr297955wjb.103.1467078506115; Mon, 27 Jun 2016 18:48:26 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id v65si6230218wmf.49.2016.06.27.18.48.25; Mon, 27 Jun 2016 18:48:26 -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 5C197A750E; Tue, 28 Jun 2016 03:48:17 +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 RslbFPMMfMTf; Tue, 28 Jun 2016 03:48:17 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7F1F7A750A; Tue, 28 Jun 2016 03:48:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B6689A74E3 for ; Tue, 28 Jun 2016 03:48:02 +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 BAxIl59frGX9 for ; Tue, 28 Jun 2016 03:48:02 +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-12.nifty.com (conuserg-12.nifty.com [210.131.2.79]) by theia.denx.de (Postfix) with ESMTPS id 19B40A74D2 for ; Tue, 28 Jun 2016 03:47:59 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id u5S1lFlJ005408; Tue, 28 Jun 2016 10:47:17 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com u5S1lFlJ005408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1467078438; bh=ko6nF8x+rW1kxK22ARuB5vwi6y7HLe62UpjZaFRXLvY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2aL8kmJiBYM8ytFUC1UT0iLkDDDDgeyziDpy0T87g1p8JLrjskJXnVquWtpvNKWTz A6KLz74jhD4A9uLN40PGZ8S25uzeEXqvTxU4B5BT0o91RcpG980HJQnZ3CvDpw8mjM 9fYbfAB3KxCrHZHL/ZkBLnQh9wbmG5mjuQVUBhmEq3F+Tkx6eXuIkBH/RTDS+3Qjdf 3Y57nm+wHYJDlOGFhVVOB+i/Dimh61wVxIRMzJv2qMqdhac93FcwCoWHA69uUNVseY zOdBstwFUVUQUbH9M5CFRIPkX6GT9cpNnujziN24Payum/Dejytn2cw3bwXhxOhJaf eR9HvnIHzkFxw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Tue, 28 Jun 2016 10:48:40 +0900 Message-Id: <1467078522-24431-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467078522-24431-1-git-send-email-yamada.masahiro@socionext.com> References: <1467078522-24431-1-git-send-email-yamada.masahiro@socionext.com> Cc: Aneesh Bansal , York Sun Subject: [U-Boot] [PATCH v2 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 --- Changes in v2: None 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.