From: Matthew McClintock Date: Tue, 12 Oct 2010 17:42:57 -0500 Subject: [U-Boot] [PATCH v2] common/fdt_support.c: fix compile error In-Reply-To: <20101012172045.62bb2042@udp111988uds.am.freescale.net> References: <20101012172045.62bb2042@udp111988uds.am.freescale.net> Message-ID: <1286923377-28383-1-git-send-email-msm@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Fix build error introduced in beca5a5f5bf0d88125580e5e9c1730469cd50ab8 common/libcommon.a(fdt_support.o): In function `fdt_add_edid': /local/hudson/jobs/mirrors-u-boot.git/workspace/common/fdt_support.c:1205: undefined reference to `fdt_increase_size' make: *** [u-boot] Error 1 Signed-off-by: Matthew McClintock --- v2 - move fdt_increase_size out of CONFIG_FDT_FIXUP_PARTITIONS common/fdt_support.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 9b65a8a..46e93a2 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -701,16 +701,6 @@ int fdt_del_subnodes(const void *blob, int parent_offset) return 0; } -int fdt_increase_size(void *fdt, int add_len) -{ - int newlen; - - newlen = fdt_totalsize(fdt) + add_len; - - /* Open in place with a new len */ - return fdt_open_into(fdt, fdt, newlen); -} - int fdt_del_partitions(void *blob, int parent_offset) { const void *prop; @@ -886,6 +876,16 @@ void fdt_fixup_mtdparts(void *blob, void *node_info, int node_info_size) } #endif +int fdt_increase_size(void *fdt, int add_len) +{ + int newlen; + + newlen = fdt_totalsize(fdt) + add_len; + + /* Open in place with a new len */ + return fdt_open_into(fdt, fdt, newlen); +} + void fdt_del_node_and_alias(void *blob, const char *alias) { int off = fdt_path_offset(blob, alias); -- 1.6.6.1