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: 888647 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="BhXzLcGO"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 405kS91PYBz9s0v for ; Wed, 21 Mar 2018 20:06:17 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id BAF39C21E1B; Wed, 21 Mar 2018 09:04:58 +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_ */