From patchwork Mon May 15 07:07:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 99776 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1415846qge; Mon, 15 May 2017 00:08:14 -0700 (PDT) X-Received: by 10.80.174.36 with SMTP id c33mr3777319edd.103.1494832094520; Mon, 15 May 2017 00:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494832094; cv=none; d=google.com; s=arc-20160816; b=opoFgiWWCtYbRyFWkWhIi52yD2Y2AO9ThhKohsUwBEDTmSeK95xiC0rTY/ZUILSVkF 1jZvkTqvBox2aMSgTz1mF1GuId9x4oJQr/v+kZvpyOnwFzg/RMIW86JvMmERFv+1CiIE jAsZq3s++rkHmVHy0VA+i68WT9jkq3g8szWp7Km3QTBA7BiN5jYOsr+g3Xt+0w1qq5Ix QDhtScot7uigPlEnuncF1we2gPp+7O/SzS86ahMN3Il2WwWopb/xrBojIMgjJc1DXcDf +f6zjQznlqxzbo4auxgSTBhtV41o7G8JzmblajqxdcMs2OuHACgfusJoPypZqYiXy0YJ St1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :dkim-filter:arc-authentication-results; bh=1n/fBEIhdegw90Dd7bwUbx+AEsXp+Skn84wTdFMV/Mk=; b=Ybk1QQ8W52cYSCc5EbYy//+yB1KcWb4XHuwtvccsXHJ0K35oisbAvGTOj/+7+X1D68 yQ+g9hJzHLrBCZgkGV9/0bbh+Q4U943+NpaRsxx81K5fqVu3YhfW6bcamNRvap8yVwlp K3+wUWgNuhCLJL2lPj9G7DDK9XJxZlDD3zMA5UG2nbC7LNsvwy5Rd5K5hpanmOOubfZn 8XDhJDQ2F4QWJqPlziGLxrvzoY18/Bz3/a6876MsnXRnIOyovrmwQfoHBZ/mFHta19Yd VDU8R+RIhsFx/4aGqvxBAm67OiumatVF7+vNrqBzDe5WZVSK2zJTCNkXwV2h5zf2iedV GDeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id x42si9659965eda.18.2017.05.15.00.08.14; Mon, 15 May 2017 00:08:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id AE4F6C21F11; Mon, 15 May 2017 07:08:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E4B87C21C43; Mon, 15 May 2017 07:08:07 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B91D3C21C43; Mon, 15 May 2017 07:08:05 +0000 (UTC) Received: from conuserg-12.nifty.com (conuserg-12.nifty.com [210.131.2.79]) by lists.denx.de (Postfix) with ESMTPS id BA83FC21C42 for ; Mon, 15 May 2017 07:08:04 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id v4F77aTR011969; Mon, 15 May 2017 16:07:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com v4F77aTR011969 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1494832056; bh=8F8d1W04hHWPvm890/LzqjIvL5CjQzm0D/kK8NkC2UU=; h=From:To:Cc:Subject:Date:From; b=Bf21U2JN2VeSyoghSiMPzmYWbb2wi0V+ITIgG0pCzo9+yaU3066BZvlQaGH3R1Fwd PLeZDvmT/eYgMjMPXMf1MfeuGg1V+VjXa0d4Hpl3bCQ3ngvCJnYdn2rvOvu1MqBewM OO5Y8WLIlFAZ3ocxXX1FoaUgXavNffM0hcUYCPPOwfxePOeaGxV6TIStj260gINk+3 RZyXItszK8SdfCQ31wGp8BNEWFSq62So7PONIddTCWgu6NCjhZlXoC1YYcwuTkqrHb LHNQzss4Fkmqx/OKfdtw7ObQwxRiJeMPb93O1IdE6AuNPaDuOOLWxnbSqIRJSAcybo 063ryfG7YtlmQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Mon, 15 May 2017 16:07:33 +0900 Message-Id: <1494832053-2430-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH] kbuild: update DTC warning settings for bus and node/property name checks X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Recent commits of DTC introduced 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 before, warnings are enabled with W=*. The strict node and property name checks are a bit subjective, so they are only enabled for W=2. (This policy reflects the commit 8654cb8d0371 of Linux.) Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- scripts/Makefile.extrawarn | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 7b2cffc..90dc149 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -58,9 +58,23 @@ endif KBUILD_CFLAGS += $(warning) +dtc-warning-2 += $(call dtc-option,-Wnode_name_chars_strict) +dtc-warning-2 += $(call dtc-option,-Wproperty_name_chars_strict) + +dtc-warning := $(dtc-warning-$(findstring 1, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) +dtc-warning += $(dtc-warning-$(findstring 2, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) +dtc-warning += $(dtc-warning-$(findstring 3, $(KBUILD_ENABLE_EXTRA_GCC_CHECKS))) + +DTC_FLAGS += $(dtc-warning) + else # Disable noisy checks by default DTC_FLAGS += $(call dtc-option,-Wno-unit_address_vs_reg) +DTC_FLAGS += $(call dtc-option,-Wno-simple_bus_reg) +DTC_FLAGS += $(call dtc-option,-Wno-unit_address_format) +DTC_FLAGS += $(call dtc-option,-Wno-pci_bridge) +DTC_FLAGS += $(call dtc-option,-Wno-pci_device_bus_num) +DTC_FLAGS += $(call dtc-option,-Wno-pci_device_reg) endif