From patchwork Tue Mar 21 16:19:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 95639 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp1524322qgd; Tue, 21 Mar 2017 09:23:47 -0700 (PDT) X-Received: by 10.98.3.199 with SMTP id 190mr24963302pfd.37.1490113427195; Tue, 21 Mar 2017 09:23:47 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p129si12445575pfb.173.2017.03.21.09.23.46; Tue, 21 Mar 2017 09:23:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933338AbdCUQU4 (ORCPT + 18 others); Tue, 21 Mar 2017 12:20:56 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:36237 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757508AbdCUQUX (ORCPT ); Tue, 21 Mar 2017 12:20:23 -0400 Received: by mail-ot0-f193.google.com with SMTP id i1so22960876ota.3; Tue, 21 Mar 2017 09:20:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YfbqvuNrizVA+r2Ahijw7Ul7zz2DXesYPz7/kSygud4=; b=XvFzE0zJQEgGR/XSZL0iAZ2SS0n31iUX9NKH1v2ZgEm5DLBj8WsCr65zuirdGzPQS9 cKe2Lm88tpxgrGP8sa+Hi24hGLc2ly+2J5+S5XDNmtyS/GagAKj6qdb3roi/zamqPeWp 4fsD8RYmIWRWpOMVf73Oeluz5Zi7E7TFep4A/O557SlQGH2Ipwq2bwpAfs3dbdaxbslV tW3uidONCCGJde0RjjQYQf5kk12k6DtXxlVIEsNqw+5qh/mEWAjXVR8WYOvaGqCGteHl 1hk6WuRk52bASpCyjUgxeKbaWxIhAR7Pn48FFSKt4xHEdRDbRY0IRKfqlVFRKSmakney jqDA== X-Gm-Message-State: AFeK/H0geK9dSag+GjtRq7IFHSO3bM2B87fsvgEjmMAehcYt+/YYS1DWKD9SjkhMBtTYkA== X-Received: by 10.157.38.227 with SMTP id i32mr19177227otd.182.1490113202652; Tue, 21 Mar 2017 09:20:02 -0700 (PDT) Received: from rob-hp-laptop.herring.priv (66-90-148-125.dyn.grandenetworks.net. [66.90.148.125]) by smtp.googlemail.com with ESMTPSA id x65sm8960966oix.30.2017.03.21.09.20.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Mar 2017 09:20:02 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frank Rowand , Mark Rutland 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 Message-Id: <20170321161958.9658-4-robh@kernel.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170321161958.9658-1-robh@kernel.org> References: <20170321161958.9658-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.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 --- scripts/Makefile.lib | 9 ++++++++- scripts/dtc/update-dtc-source.sh | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) -- 2.10.1 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