[Crosstoolchain-logs] [device-tree-compiler] 88/357: libfdt: Remove #includes from fdt.h
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:05:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit 857f54e79f74429af20c2b5ecc00ee98af6a3b8b
Author: David Gibson <dgibson at sneetch.(none)>
Date: Fri Mar 23 15:16:54 2007 +1100
libfdt: Remove #includes from fdt.h
At present fdt.h #includes stdint.h. This makes some sense, because fdt.h
uses the standard fixed-width integer types. However, this can make life
difficult when building in different environments which may not have a
stdint.h. Therefore, this patch removes the #include from fdt.h, instead
requiring that users of fdt.h define the fixed-width integer types before
including fdt.h, either by themselves including stdint.h, or by any other
means.
---
fdt.h | 2 --
tests/del_node.c | 1 +
tests/del_property.c | 1 +
tests/dumptrees.c | 1 +
tests/find_property.c | 1 +
tests/getprop.c | 1 +
tests/move_and_save.c | 2 ++
tests/nop_node.c | 1 +
tests/nop_property.c | 1 +
tests/notfound.c | 1 +
tests/open_pack.c | 1 +
tests/path_offset.c | 1 +
tests/root_node.c | 1 +
tests/rw_tree1.c | 1 +
tests/setprop.c | 1 +
tests/setprop_inplace.c | 1 +
tests/subnode_offset.c | 1 +
tests/sw_tree1.c | 1 +
tests/testutils.c | 1 +
tests/truncated_property.c | 1 +
20 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/fdt.h b/fdt.h
index 4687a31..e00559a 100644
--- a/fdt.h
+++ b/fdt.h
@@ -3,8 +3,6 @@
#ifndef __ASSEMBLY__
-#include <stdint.h>
-
struct fdt_header {
uint32_t magic; /* magic word FDT_MAGIC */
uint32_t totalsize; /* total size of DT block */
diff --git a/tests/del_node.c b/tests/del_node.c
index 56f7cf5..26bb061 100644
--- a/tests/del_node.c
+++ b/tests/del_node.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/del_property.c b/tests/del_property.c
index cc0de98..a7928a3 100644
--- a/tests/del_property.c
+++ b/tests/del_property.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/dumptrees.c b/tests/dumptrees.c
index bea943b..3db0e2b 100644
--- a/tests/dumptrees.c
+++ b/tests/dumptrees.c
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/find_property.c b/tests/find_property.c
index 8a8e9aa..ced14ae 100644
--- a/tests/find_property.c
+++ b/tests/find_property.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/getprop.c b/tests/getprop.c
index 22dc03b..f124951 100644
--- a/tests/getprop.c
+++ b/tests/getprop.c
@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/move_and_save.c b/tests/move_and_save.c
index 4b4824e..da73157 100644
--- a/tests/move_and_save.c
+++ b/tests/move_and_save.c
@@ -22,6 +22,8 @@
#include <stdio.h>
#include <string.h>
#include <limits.h>
+#include <stdint.h>
+
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/nop_node.c b/tests/nop_node.c
index d09d9df..80cf4d0 100644
--- a/tests/nop_node.c
+++ b/tests/nop_node.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/nop_property.c b/tests/nop_property.c
index 858527d..84e735a 100644
--- a/tests/nop_property.c
+++ b/tests/nop_property.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/notfound.c b/tests/notfound.c
index b411249..3b18664 100644
--- a/tests/notfound.c
+++ b/tests/notfound.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/open_pack.c b/tests/open_pack.c
index 1aa66e4..d614024 100644
--- a/tests/open_pack.c
+++ b/tests/open_pack.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <limits.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/path_offset.c b/tests/path_offset.c
index 42e5daa..05b0c32 100644
--- a/tests/path_offset.c
+++ b/tests/path_offset.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/root_node.c b/tests/root_node.c
index 4258b91..6e2c391 100644
--- a/tests/root_node.c
+++ b/tests/root_node.c
@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/rw_tree1.c b/tests/rw_tree1.c
index ffd2c3a..3fb9307 100644
--- a/tests/rw_tree1.c
+++ b/tests/rw_tree1.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/setprop.c b/tests/setprop.c
index fc70910..f58a33d 100644
--- a/tests/setprop.c
+++ b/tests/setprop.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/setprop_inplace.c b/tests/setprop_inplace.c
index f674ec6..bcfd357 100644
--- a/tests/setprop_inplace.c
+++ b/tests/setprop_inplace.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/subnode_offset.c b/tests/subnode_offset.c
index a2b12eb..d4edfe4 100644
--- a/tests/subnode_offset.c
+++ b/tests/subnode_offset.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/sw_tree1.c b/tests/sw_tree1.c
index 51aa4d7..7b54359 100644
--- a/tests/sw_tree1.c
+++ b/tests/sw_tree1.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
diff --git a/tests/testutils.c b/tests/testutils.c
index c7b4b9e..efc4f4a 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <limits.h>
#include <string.h>
#include <errno.h>
diff --git a/tests/truncated_property.c b/tests/truncated_property.c
index c5be466..dbd3652 100644
--- a/tests/truncated_property.c
+++ b/tests/truncated_property.c
@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <stdint.h>
#include <fdt.h>
#include <libfdt.h>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list