From afbddcd418fbf70467419b91f73cce972482449c Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 6 Mar 2018 14:45:50 +1100 Subject: [PATCH] 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 --- checks.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/checks.c b/checks.c index c07ba4d..f589d7e 100644 --- a/checks.c +++ b/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)