Received: by 10.223.185.116 with SMTP id b49csp2136041wrg; Thu, 22 Feb 2018 08:40:51 -0800 (PST) X-Google-Smtp-Source: AH8x2265E+LNq0hI7XRhvdMsnOtb1JGIb/NCVmPntQTZXTACyGoF8vV4cWzCMFrEwunFNv2PTkH7 X-Received: by 10.99.117.24 with SMTP id q24mr6059267pgc.53.1519317651440; Thu, 22 Feb 2018 08:40:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519317651; cv=none; d=google.com; s=arc-20160816; b=azWXp6GOKgbD40wr7+qC4a6tzvbkvRoBhk8ITHbxxcby05RCxLyMUrkrL4Dg9IKb6j jYtzP3qaKkPVexBbwK/IF+JVDD/FIgbrVUMIjVhqMu9zX8I4r7A0FGTY6kzz3OgOf3PP 7aanS91tLkBlj998Ynt9+flrtHStA1R7LYIeg4B0jskSfvzhXdr4IJZlm1UJsmf9qwWw RKKICOQX0aH47RToSGytGYk9ufixkSkrRKUgLKIUWkdtSR+4CmXU3lf/m1LMoz4+NLH6 n8GofIi66YnkwT5svS+PWD1ydJ2S+P2AWa9opPuGSyhigu3WsftMo/7q1TDbixZz3St1 70Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=dKFeVlX/OTI27GXgn3xGamFdvhW60xoKRazO4ecHhSA=; b=Nz1wJd7qELqwUM9EKmPj1hBimS2anfDXwADrk5sHLQKwCXpE57Jx0vnlDJjRy6wZe6 bKYVE5eYuVSUfnuzTVkGy4gqFTL9Xdr3iT2bTGDU/NIbSlR5gYXBuLkPzHX9MC76EW03 dRdptS55mlgptPMmdvM5wHIHqpqqmY+pdgnuzMfe94gAtdWg89StdXu7Qmdg9dKBrpbQ hTRR0PvAMmLHSY0NXLhDRiIPchPDCiVOVe0edRA2Vjk00zqI3wZgZ8A/XiIpZeh7nEnY /Cv4VJHEcgB6BuezvhHhuAg95IO5Qy/5kymB4OU1DXPxmWiRzkNOsQzSnoigiPoaiPTC +xKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZwOqrRXQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si247969pga.22.2018.02.22.08.40.36; Thu, 22 Feb 2018 08:40:51 -0800 (PST) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZwOqrRXQ; 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 S933298AbeBVQih (ORCPT + 99 others); Thu, 22 Feb 2018 11:38:37 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:36136 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933164AbeBVQif (ORCPT ); Thu, 22 Feb 2018 11:38:35 -0500 Received: by mail-qt0-f193.google.com with SMTP id c7so7034081qtn.3; Thu, 22 Feb 2018 08:38:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=dKFeVlX/OTI27GXgn3xGamFdvhW60xoKRazO4ecHhSA=; b=ZwOqrRXQsq8uRF6iJCkrHycPQ4UdEdG/SOFADsCnDeovQ5VcoV/RmShRdT/X50oOtM V5z2Nx2R3e2yHIMDaEOSTvHrpcOUj8MKKxnAhbEoSzgKBxHQrRKq0w2bnYsGQTVB6G6F 3D6KNo7Tfi8yMt4RPOP2mQ6SGAFExp3xu57uJjQRdfIwWEpsqbZaU6B7ElgVCC18SObL qB4G6qDXlyNQfIrpVDav8H8PJNE82oVnv4ALM/5h9nLZMkMK01dqTTREc+nSMbVO/CHa 3dfgU0DMZ2TzupNFUk3FeEq8m2qta6lUcNtH5y4P2fRBAwZauB8M4jHWIkI/p5BtYOV6 vbNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=dKFeVlX/OTI27GXgn3xGamFdvhW60xoKRazO4ecHhSA=; b=cCxPWfqPoJAKjzzUhcraHee1vaQN2sx/SyyhD264q4XIZvd8EGjKukk7ylIhCZjkha e0qGkvikPs8xxbbvDyL2RuDMquuzfZ2D6IJbeQTPDt/ZMAUfVp6RQPn2uNdUEsiskP2Y 0Ec5EDsC3mgMtC65XnqYyprzrqK+BDXjFKIqi9oJCBFXZlw1LVNjZ+9XRnLlcMTaFZnx cmZfv4mAePRPhL+dgYaRl9Nl6/CT9R8ZvxnJ0MrU56qgc2iv/gHjPLDxRU9V09EKVd3h 2wtMLZKXbcylGrijs5wr20ccSNFj1eK1vm8/is15FmgB28TGgX3OEWKeEimta5TwyZg0 spqg== X-Gm-Message-State: APf1xPC7UYBFrN7PSysbeS8+5Ze0Gh3EErIAoTTYru6osJ/SSHzpaoHj ZC8syQpN14aR2Qq7WJrIlhDi+OOIRzDinW3uveo= X-Received: by 10.200.56.153 with SMTP id f25mr12409583qtc.9.1519317514116; Thu, 22 Feb 2018 08:38:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.198.17 with HTTP; Thu, 22 Feb 2018 08:38:33 -0800 (PST) In-Reply-To: <20171214165352.27902-1-malat@debian.org> References: <20171214165352.27902-1-malat@debian.org> From: Arnd Bergmann Date: Thu, 22 Feb 2018 17:38:33 +0100 X-Google-Sender-Auth: jOJ4dpEeNc7burH3R1oZinS8fCk Message-ID: Subject: Re: [PATCH] arm64: dts: Remove leading 0x and 0s from bindings notation To: Mathieu Malaterre Cc: Rob Herring , Wei Xu , Mark Rutland , Catalin Marinas , Will Deacon , Matthias Brugger , Andy Gross , David Brown , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , Linux ARM , DTML , Linux Kernel Mailing List , "moderated list:ARM/Mediatek SoC..." , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 14, 2017 at 5:53 PM, 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 -E -i -e "s/@0x([0-9a-fA-F\.]+)\s?\{/@\L\1 \{/g" -e "s/@0+([0-9a-fA-F\.]+)\s?\{/@\L\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 is a follow up to commit 4c9847b7375a ("dt-bindings: Remove leading 0x from bindings notation") > > Reported-by: David Daney > Suggested-by: Rob Herring > Signed-off-by: Mathieu Malaterre Applied to fixes, thanks! Arnd