Received: by 10.192.165.148 with SMTP id m20csp2217921imm; Thu, 3 May 2018 12:23:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoRO4zk4W0Sbia7VP8YVZW19yZpsG0AOkth96+kN1NUPD+2sUSVgLORqdSB7npCUjHflkeY X-Received: by 2002:a17:902:778a:: with SMTP id o10-v6mr2873143pll.214.1525375432880; Thu, 03 May 2018 12:23:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525375432; cv=none; d=google.com; s=arc-20160816; b=NhmJ3sjSvOfj8OiehEY5eIrDWosaEZVmXJ1pOAbmMvVp4/XgbisNwS792AMlkoCzJ/ W/fKnnJBLGL32giL/GHL7BJmL6DWrOJ+I5wmWK/qm+lEWti2Xu+jHOfuILbefP/kjBvS Pc0t0qNlJ7pj+18S67l7ovLeSpNGTMhJ/TbbtwVoRhLhd5I4h6M/eFCLoGezBLSriFhd KY0w69FIeJJDNs32l5Jn5qjJ5oHQz81JBhEAyy5t5WkVQYHKT+vTSgPssopPtm4MjzPX ca/IP2NSxkHvIdSicXauq+S07SyUnxJLrfmGt4N8P2/FMg4Gi0iW4tCmUw1QQuMr7Itq 9ZXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=6uxzY4XVpnnb1Hfh2gfNGaTa3lYQ4B6cgNxK3tjXD/k=; b=OCN3aHuYqOIWL5NDJOqzu4sncXfF+BPbFFMx76uSSwUP/R6NShtRrUp6qx3ssnqUSx /ZsY85+t1SkkbjTbnMa397QiqxgEp1pgqSUInMRwzrXDV3TCoBapsqImOzcl7fS/f/KY j1IkJ7+YuIqAD/69y+gH01J+2JWgE4rCC4QVQSL4NYJzmQOBvKfL/Gu+MQ1TK/ojEiOl QFCLqed5GGdNj+z+MRJzy1xkKCZKooSm9ai5JBT7F3K6mpYPsEyWUCTxvbBNlt0ia+ud nSEnXK6xVTlrQhN9NYf7Gt7y31LIZAuQjmh8U76MpsLDZw1ORg+9S7LMtnNt/1smUFep 7UFQ== ARC-Authentication-Results: i=1; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18-v6si11388059pge.604.2018.05.03.12.23.38; Thu, 03 May 2018 12:23:52 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751525AbeECTWx (ORCPT + 99 others); Thu, 3 May 2018 15:22:53 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54537 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751115AbeECTWv (ORCPT ); Thu, 3 May 2018 15:22:51 -0400 Received: by mail-wm0-f65.google.com with SMTP id f6so677692wmc.4; Thu, 03 May 2018 12:22:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6uxzY4XVpnnb1Hfh2gfNGaTa3lYQ4B6cgNxK3tjXD/k=; b=PiKnSWrJoyQ74zWfYNyZgE40ru/BpHYvbNU5gCEQB20iuwM1wdh8TQ1ordcQXsOJ9r S2Bwb69Ujj9OzTs44f81L+hSqctZWhRMv+s62jQFsZndJ/X9L7QIYaxNTg/zL7u1/78g aENq0id13ZDzuU1NNdBVHHPdFKpaDIfuFrY/e/WQB3fIEU6AGG3RRjiTrMs6MLiVHDhL JMly82LGhTseW9DD+wo2e6mf4+kJDCl24trzlfARoFt29+vBsM//1Fq/OMUvPt/8suKh JORlqTbwUpstc+6nv7dMkk8Ig6pjagtd1LH9XO957J9VbWuJTk0UGe4595yVU4KDDtkc cTug== X-Gm-Message-State: ALQs6tDvwM0vXWyQqaaYiGgFzMMNeRTLbbuGvL5jjpniGJjU70eSMuG+ tWqHSpz/TUHdJWlYSpwJBjo= X-Received: by 2002:a50:e705:: with SMTP id a5-v6mr32359028edn.109.1525374838962; Thu, 03 May 2018 12:13:58 -0700 (PDT) Received: from kozik-lap (adsl-84-226-183-37.adslplus.ch. [84.226.183.37]) by smtp.googlemail.com with ESMTPSA id p5-v6sm8314120edh.7.2018.05.03.12.13.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 May 2018 12:13:58 -0700 (PDT) Date: Thu, 3 May 2018 21:13:56 +0200 From: Krzysztof Kozlowski To: Mathieu Malaterre Cc: Rob Herring , Mark Rutland , Kukjin Kim , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] arm: exynos/s3c: dts: Remove leading 0x and 0s from bindings notation Message-ID: <20180503191356.n6xo5qe7jnmr2krf@kozik-lap> References: <20180502201153.7459-1-malat@debian.org> <20180503184454.19131-1-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180503184454.19131-1-malat@debian.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 03, 2018 at 08:44:53PM +0200, Mathieu Malaterre wrote: > Improve the DTS files by removing all the leading "0x" and zeros to fix the > following dtc warnings: > > Warning (unit_address_format): Node /XXX unit name should not have leading "0x" > > and > > Warning (unit_address_format): Node /XXX unit name should not have leading 0s > > Converted using the following command: > > find . -type f \( -iname *.dts -o -iname *.dtsi \) -exec sed -i -e "s/@\([0-9a-fA-FxX\.;:#]\+\)\s*{/@\L\1 {/g" -e "s/@0x\(.*\) {/@\1 {/g" -e "s/@0\+\(.*\) {/@\1 {/g" {} + > > For simplicity, two sed expressions were used to solve each warnings separately. > > To make the regex expression more robust a few other issues were resolved, > namely setting unit-address to lower case, and adding a whitespace before the > the opening curly brace: > > https://elinux.org/Device_Tree_Linux#Linux_conventions > > This will solve as a side effect warning: > > Warning (simple_bus_reg): Node /XXX@ simple-bus unit address format error, expected "" > > This is a follow up to commit 4c9847b7375a ("dt-bindings: Remove leading 0x from bindings notation") > > Reported-by: David Daney > Suggested-by: Rob Herring > Acked-by: Krzysztof Kozlowski > Signed-off-by: Mathieu Malaterre > --- > v3: remove extra 0 preventing correct fixup > v2: intermediate patch contained unrelated changes. restrict to S3 and Exynos* > > arch/arm/boot/dts/exynos5420.dtsi | 36 +++++++++++++-------------- > arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 2 +- > arch/arm/boot/dts/s3c2416.dtsi | 8 +++--- > 3 files changed, 23 insertions(+), 23 deletions(-) > Thanks, applied after running the command to include few more changes. Best regards, Krzysztof