mirror of https://gitlab.com/qemu-project/dtc.git
Suppress warnings on overlay fragments
Overlay fragments are traditionally named "fragment@NNN" but don't have have a 'reg' property, amongst other differences from normal nodes. Really we should treat overlay fragments fundamentally differently, but for the moment, suppress the common warnings about the fragment names with this simple hack. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
119e273003
commit
afbddcd418
5
checks.c
5
checks.c
|
@ -317,6 +317,11 @@ static void check_unit_address_vs_reg(struct check *c, struct dt_info *dti,
|
|||
const char *unitname = get_unitname(node);
|
||||
struct property *prop = get_property(node, "reg");
|
||||
|
||||
if (get_subnode(node, "__overlay__")) {
|
||||
/* HACK: Overlay fragments are a special case */
|
||||
return;
|
||||
}
|
||||
|
||||
if (!prop) {
|
||||
prop = get_property(node, "ranges");
|
||||
if (prop && !prop->val.len)
|
||||
|
|
Loading…
Reference in New Issue