[PATCH v3 6/6] libfdt: Allow exclusion of fdt_check_full()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



This function is used to perform a full check of the device tree. Allow
it to be excluded if all assumptions are enabled.

Signed-off-by: Simon Glass <sjg@xxxxxxxxxxxx>
---

Changes in v3:
- Rearrange code in terms of checks instead of files changed, to aid review
- Update commit message a little

Changes in v2:
- Add a comment to fdt_find_add_string_()
- Correct inverted version checks in a few cases
- Drop optimised code path in fdt_nodename_eq_()
- Update to use new check functions
- Use fdt_chk_base() in fdt_blocks_misordered_()

 libfdt/fdt_ro.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libfdt/fdt_ro.c b/libfdt/fdt_ro.c
index 723f857..e398815 100644
--- a/libfdt/fdt_ro.c
+++ b/libfdt/fdt_ro.c
@@ -855,6 +855,7 @@ int fdt_node_offset_by_compatible(const void *fdt, int startoffset,
 	return offset; /* error from fdt_next_node() */
 }
 
+#if !defined(FDT_ASSUME_MASK) || FDT_ASSUME_MASK != 0xff
 int fdt_check_full(const void *fdt, size_t bufsize)
 {
 	int err;
@@ -917,3 +918,4 @@ int fdt_check_full(const void *fdt, size_t bufsize)
 		}
 	}
 }
+#endif
-- 
2.24.0.rc0.303.g954a862665-goog




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux