diff options
author | Wang Nan <wangnan0@huawei.com> | 2014-03-25 12:09:43 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2014-03-28 09:46:29 -0700 |
commit | 685d033f80fc860d27ac7627c029a3e483315d45 (patch) | |
tree | 6d903bc1f56aa816bb7257fd5e8f821b23730ca7 /kexec/libfdt/libfdt_internal.h | |
parent | 0d526445f3d3f26f50e674d75ceee344c31369f1 (diff) |
Introduce helpers for computing dtb size
This patch introduce fdt_node_len and fdt_prop_len to help for computing
memory requirement when operating dtb.
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/libfdt/libfdt_internal.h')
-rw-r--r-- | kexec/libfdt/libfdt_internal.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kexec/libfdt/libfdt_internal.h b/kexec/libfdt/libfdt_internal.h index 46eb93e..7e6c4c8 100644 --- a/kexec/libfdt/libfdt_internal.h +++ b/kexec/libfdt/libfdt_internal.h @@ -52,9 +52,6 @@ */ #include <fdt.h> -#define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) -#define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE)) - #define FDT_CHECK_HEADER(fdt) \ { \ int err; \ |