Changeset 85d1769 in rtems for cpukit/dtc/libfdt/fdt_ro.c

Timestamp:
10/22/17 05:32:15 (7 years ago)
Author:
David Gibson <david@…>
Branches:
5, master
Children:
c4267b1
Parents:
c13e400
git-author:
David Gibson <david@…> (10/22/17 05:32:15)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/19/18 05:01:11)
Message:

libfdt: Clean up header checking functions

Many of the libfdt entry points call some sort of sanity check function
before doing anything else. These need to do slightly different things for
the various classes of functions.

The read-only version is shared with the exported fdt_check_header(), which
limits us a bit in how we can improve it. For that reason split the two
functions apart (though the exported one just calls the ro one for now).

We also rename the functions for more consistency - they're all named
fdt_XX_probe_() where the XX indicates which class of functions they're
for. "probe" is a better "term" than the previous check, since they really
only do minimal validation.

Signed-off-by: David Gibson <david@…>
Tested-by: Alexey Kardashevskiy <aik@…>
Reviewed-by: Alexey Kardashevskiy <aik@…>

(No files)

Note: See TracChangeset for help on using the changeset viewer.