All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Arkadiusz Drabczyk <arkadiusz-42WfZ8EewN5g9hUCZPvPmw@public.gmane.org>
Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] check: Inform about missing ranges
Date: Tue, 10 Mar 2020 11:44:30 +1100	[thread overview]
Message-ID: <20200310004430.GD660117@umbus.fritz.box> (raw)
In-Reply-To: <20200308165643.19281-1-arkadiusz-42WfZ8EewN5g9hUCZPvPmw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]

On Sun, Mar 08, 2020 at 05:56:43PM +0100, Arkadiusz Drabczyk wrote:
> In check_unit_address_vs_reg() warning message already says 'reg _or_
> ranges' when reg or ranges are present but unit name is missing.  Add
> this message for compatibility to say "reg _or_ ranges" when unit name
> is present but neither reg nor ranges are present.
> 
> Signed-off-by: Arkadiusz Drabczyk <arkadiusz-42WfZ8EewN5g9hUCZPvPmw@public.gmane.org>

Applied, thanks.

> ---
>  checks.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/checks.c b/checks.c
> index 8acbc05..4b3c486 100644
> --- a/checks.c
> +++ b/checks.c
> @@ -352,7 +352,7 @@ static void check_unit_address_vs_reg(struct check *c, struct dt_info *dti,
>  			FAIL(c, dti, node, "node has a reg or ranges property, but no unit name");
>  	} else {
>  		if (unitname[0])
> -			FAIL(c, dti, node, "node has a unit name, but no reg property");
> +			FAIL(c, dti, node, "node has a unit name, but no reg or ranges property");
>  	}
>  }
>  WARNING(unit_address_vs_reg, check_unit_address_vs_reg, NULL);

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      parent reply	other threads:[~2020-03-10  0:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-08 16:56 [PATCH] check: Inform about missing ranges Arkadiusz Drabczyk
     [not found] ` <20200308165643.19281-1-arkadiusz-42WfZ8EewN5g9hUCZPvPmw@public.gmane.org>
2020-03-10  0:44   ` David Gibson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200310004430.GD660117@umbus.fritz.box \
    --to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
    --cc=arkadiusz-42WfZ8EewN5g9hUCZPvPmw@public.gmane.org \
    --cc=devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.