diff mbox series

[1/5] libfdt: move FDT_RAMDISK_OVERHEAD to image-fdt.c

Message ID 1521623017-29312-2-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit c960a68e200057b0e8b3aa627aa4b0c9b31ca2d8
Headers show
Series libfdt: make lib/libfdt/ more synced with scripts/dtc/libfdt/ | expand

Commit Message

Masahiro Yamada March 21, 2018, 9:03 a.m. UTC
This macro is locally referenced in common/image-fdt.c

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 common/image-fdt.c     | 3 +++
 include/linux/libfdt.h | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

Simon Glass March 23, 2018, 2:30 p.m. UTC | #1
On 21 March 2018 at 03:03, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
> This macro is locally referenced in common/image-fdt.c
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>
>  common/image-fdt.c     | 3 +++
>  include/linux/libfdt.h | 3 ---
>  2 files changed, 3 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Simon Glass April 1, 2018, 2:29 p.m. UTC | #2
On 23 March 2018 at 22:30, Simon Glass <sjg@chromium.org> wrote:
> On 21 March 2018 at 03:03, Masahiro Yamada
> <yamada.masahiro@socionext.com> wrote:
>> This macro is locally referenced in common/image-fdt.c
>>
>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
>> ---
>>
>>  common/image-fdt.c     | 3 +++
>>  include/linux/libfdt.h | 3 ---
>>  2 files changed, 3 insertions(+), 3 deletions(-)
>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm, thanks!
diff mbox series

Patch

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_ */