devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Frank Rowand <frowand.list@gmail.com>,
	Mark Rutland <mark.rutland@arm.com>
Subject: [PATCH 3/3] dtc: update warning settings for new bus and node/property name checks
Date: Tue, 21 Mar 2017 11:19:58 -0500	[thread overview]
Message-ID: <20170321161958.9658-4-robh@kernel.org> (raw)
In-Reply-To: <20170321161958.9658-1-robh@kernel.org>

dtc gained new warnings checking PCI and simple buses, unit address
formatting, and stricter node and property name checking. Disable the
new dtc warnings by default as there are 1000s. As before warnings are
enabled with W=1 or W=2. The strict node and property name checks are a
bit subjective, so they are only enabled for W=2.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 scripts/Makefile.lib             | 9 ++++++++-
 scripts/dtc/update-dtc-source.sh | 1 +
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 0a07f9014944..9ded5cd4c68b 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -280,7 +280,14 @@ DTC ?= $(objtree)/scripts/dtc/dtc
 
 # Disable noisy checks by default
 ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),)
-DTC_FLAGS += -Wno-unit_address_vs_reg
+DTC_FLAGS += -Wno-unit_address_vs_reg \
+	-Wno-simple_bus_reg \
+	-Wno-unit_address_format
+endif
+
+ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),2)
+DTC_FLAGS += -Wnode_name_chars_strict \
+	-Wproperty_name_chars_strict
 endif
 
 # Generate an assembly file to wrap the output of the device tree compiler
-- 
2.10.1

  parent reply	other threads:[~2017-03-21 16:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-21 16:19 [PATCH 0/3] dtc updates for 4.12 Rob Herring
2017-03-21 16:19 ` [PATCH 1/3] scripts/dtc: automate getting dtc version and log in update script Rob Herring
2017-03-21 16:19 ` [PATCH 2/3] scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 Rob Herring
2017-03-21 16:19 ` Rob Herring [this message]
2017-03-21 16:49 ` [PATCH 0/3] dtc updates for 4.12 Florian Fainelli
2017-03-21 19:36   ` Rob Herring
2017-03-21 19:15 ` Olof Johansson
     [not found]   ` <CAOesGMiWFPERPapOLCW4iqSuFWiqesBBjGN0ny6XjzFXNfKr4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-21 19:55     ` Rob Herring
2017-03-29 21:41       ` Rob Herring

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=20170321161958.9658-4-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=frowand.list@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).