From patchwork Wed Mar 21 09:03:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 132195 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1889261ljb; Wed, 21 Mar 2018 02:06:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELulPX/NhyANXiTjfK7R/mm4khChD9U3ZyHR9OI3A0NXizaBVxSILvBWGAkVUFLfThvwnv/V X-Received: by 10.80.183.175 with SMTP id h44mr20922248ede.287.1521623167816; Wed, 21 Mar 2018 02:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521623167; cv=none; d=google.com; s=arc-20160816; b=G6uUrF+0Bk0SvJlb+zz+BEO4Ep66JcvT8yvaqrxnumdjKCyMobwynfb+EpbF6jfz9z JO0L24UfRQveW7yDNSvUAn3grAxUf8cdwjJekdtluGP9LNYfxZzcAFze0jmOEXL3g4Kv kj0RMfJ6sXOC6fy7OVtcpEMACRNs302bYmAlJNJMRhf3LZTbRGAqk6yaxKQvpui178Gm bzMPsD5SllNywJPiQ/nltloO1x6pQtOiQzpQfpWlr27Vrcp+bzTSCckZFNOVT8yqsWkI BLWHzkR3rKl1bep5hMuzhG2jqLUWQtWS34yueeZbDT1TQbPHS1FtstGJH4nGK2Tuvlkw PCzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:dkim-filter:arc-authentication-results; bh=4SKseIgLUhyMePzw+xMktyvJ6AV58USV6vLgirxunlI=; b=TxURETGsDygs3MiSkrwW5P5pnh7zJy8RWn8mXj0KnQ/Q+kd73/qUMJ74CARK75ZUab x09lz8BbmP8ViQ4tc8jmAcWx2SvpnIMa/P0bhzrGx3GFs3ssDAJu6QBEgU471zrca3SL yGusoKcl9qGE06LbL5Ot/PpVEFhf8c5zBTfkOU8tgd+9RBvGcD3crNR5xdp4OdvLIpfy kmtAx9UV1d9HSeu20nX/1Y8apEXLSGEnjYfzVvbX8P4gOYBzc0FGiQu4CkMaVNoMnRUY UN0Xlzh3CjkvyPjj6d5RH/GqL4tY/OvEkyeIH8zq3Qn6ee4uNZttubXoudQojnBraJfq UJYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=BhXzLcGO; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id t16si645849edt.510.2018.03.21.02.06.07; Wed, 21 Mar 2018 02:06:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=BhXzLcGO; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 616B6C21DB5; Wed, 21 Mar 2018 09:04:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 62246C21DED; Wed, 21 Mar 2018 09:04:55 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0769FC21C29; Wed, 21 Mar 2018 09:04:15 +0000 (UTC) Received: from conuserg-12.nifty.com (conuserg-12.nifty.com [210.131.2.79]) by lists.denx.de (Postfix) with ESMTPS id 565B2C21E42 for ; Wed, 21 Mar 2018 09:04:14 +0000 (UTC) Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-12.nifty.com with ESMTP id w2L93irH027481; Wed, 21 Mar 2018 18:03:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com w2L93irH027481 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1521623025; bh=bIudK+wkH48e2hQ7tRjUKQin9J6pEbi17j4fZSCL8SM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BhXzLcGOb963f6pIqYdTlcdz4nhddndtxn/Bnt+IUSp6HVup71ePgfRWfzCH5id1e +lVYYbrgYp37wrbboBlMpSQdVvJq4RCfhEuXkrcKpAHibrf38KlvykXh20ZQKk6BsU IuR/senbvrT1D7dUWXE9YHS+9gBmXWt0LSbNJ/pkCpe04zA80z3p05bWzVaMeRG07q chjlQcHs6C6FP1ZbXetC8qPgeNMaNZgnCs47h5wFBH8zSwY3MR/TFzsJnXIAl6vfq0 p0gzye/kRBEa0247DuPVVMt+IunC1MEsRNDYb7uK6eE7Rl6HN7Xb6lCrYu0x0Aal6k EMTrzCUsiQZTw== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 21 Mar 2018 18:03:33 +0900 Message-Id: <1521623017-29312-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521623017-29312-1-git-send-email-yamada.masahiro@socionext.com> References: <1521623017-29312-1-git-send-email-yamada.masahiro@socionext.com> Cc: Tom Rini Subject: [U-Boot] [PATCH 1/5] libfdt: move FDT_RAMDISK_OVERHEAD to image-fdt.c X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" This macro is locally referenced in common/image-fdt.c Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- common/image-fdt.c | 3 +++ include/linux/libfdt.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/image-fdt.c b/common/image-fdt.c index 25103ba..3dc02a1 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -21,6 +21,9 @@ #define CONFIG_SYS_FDT_PAD 0x3000 #endif +/* adding a ramdisk needs 0x44 bytes in version 2008.10 */ +#define FDT_RAMDISK_OVERHEAD 0x80 + DECLARE_GLOBAL_DATA_PTR; static void fdt_error(const char *msg) diff --git a/include/linux/libfdt.h b/include/linux/libfdt.h index 9e6eead..eeb2344 100644 --- a/include/linux/libfdt.h +++ b/include/linux/libfdt.h @@ -309,7 +309,4 @@ int fdt_add_alias_regions(const void *fdt, struct fdt_region *region, int count, extern struct fdt_header *working_fdt; /* Pointer to the working fdt */ -/* adding a ramdisk needs 0x44 bytes in version 2008.10 */ -#define FDT_RAMDISK_OVERHEAD 0x80 - #endif /* _INCLUDE_LIBFDT_H_ */