Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10858492imu; Thu, 6 Dec 2018 07:53:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/WjceSaeV3hqsT4/N7mihikzFp9xMrWKJaNGfxRGlgf9vzycZJzpLatFXjV5E+2BcrNUR1y X-Received: by 2002:a63:dd15:: with SMTP id t21mr23675434pgg.347.1544111605577; Thu, 06 Dec 2018 07:53:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544111605; cv=none; d=google.com; s=arc-20160816; b=SOpL7kye/pJkUXtpAUKrQegPELBjQ6oi3778U6TMIZPVBih2gGsUlsn6j1a+JJ4iq/ vcjAK8QCA/K1avELBt4DZLudFTVhvk/fNaZcLx5HaMqIU7hulRGGyFBwaYNxhgQy/EVU NZ2xMuZHbi4v76AzEH1wpj49YM+mggDKQvwz/PUpwaSHQqZgoGiarEe2vE89SU3dV9sm CBcesGQIxRCiyTs0AORBS9qFSkQwnCSVyo2FkbLStyzm47JP71P9f+QUzIc/62bZp1s8 Mbj1clyq27oUiSRgnCip7+RvScxLMCXmDjbMeOmvJeKK7FXpQHMSmjtLY3RuuAOeUmP1 JvgA== 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; bh=w6g97fb5qqhDdBk/CRhjtbKUuHZLUTQzINs4WcCP2ws=; b=0uDlVSaXCsgtzAgwfJbLxJ/PON8oS6ZSnUl9j9yHRcHpKqbf1XcOf/FyzJnhEVCZTB nYbIjuEsNTUqdYx5LgL3Rbn/rRBWIaSOolzgSk0b5s9sV/7xbokR64CQKZxtiIAVLcCG OgsFmw4SS6vp2cy6Hkh8fiwa+was848s/WIUaf/2lyyK5KyyEBJoBdcjnFkA5FstyFeV +e89i0Fk0/5WETfrL1XLCCh04Q3YE4WtAxD6cKmNLQqSx/qRsEfPiWJIgbrVxEP5aXdf ytaAPTmpaIUjngUR9YvNFsVYWmK0qu5aaO0QrnhYgGMgZebjgFmIkuNQhNfiWhIIREqX 9dgA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8si503530pll.187.2018.12.06.07.53.03; Thu, 06 Dec 2018 07:53:25 -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; 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 S1726127AbeLFPwY (ORCPT + 99 others); Thu, 6 Dec 2018 10:52:24 -0500 Received: from foss.arm.com ([217.140.101.70]:53972 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbeLFPwY (ORCPT ); Thu, 6 Dec 2018 10:52:24 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B76F580D; Thu, 6 Dec 2018 07:52:23 -0800 (PST) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 880333F59C; Thu, 6 Dec 2018 07:52:23 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id A3A141AE0BD1; Thu, 6 Dec 2018 15:52:44 +0000 (GMT) Date: Thu, 6 Dec 2018 15:52:44 +0000 From: Will Deacon To: Anders Roxell , mingo@kernel.org Cc: peterz@infradead.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com Subject: Re: [PATCH] scripts/atomic: change 'fold' to 'grep' Message-ID: <20181206155244.GA4389@arm.com> References: <20181204214713.5812-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181204214713.5812-1-anders.roxell@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+ Ingo and Mark] On Tue, Dec 04, 2018 at 10:47:13PM +0100, Anders Roxell wrote: > Some distibutions and build systems doesn't include 'fold' from > coreutils default. > > .../scripts/atomic/atomic-tbl.sh: line 183: fold: command not found > > Rework to use 'grep' instead of 'fold' to use a dependency that is > already used a lot in the kernel. > > Reported-by: Naresh Kamboju > Suggested-by: Will Deacon > Signed-off-by: Anders Roxell > --- > scripts/atomic/atomic-tbl.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/atomic/atomic-tbl.sh b/scripts/atomic/atomic-tbl.sh > index 9d6be538a987..81d5c32039dd 100755 > --- a/scripts/atomic/atomic-tbl.sh > +++ b/scripts/atomic/atomic-tbl.sh > @@ -180,7 +180,7 @@ gen_proto_variants() > #gen_proto(meta, ...) > gen_proto() { > local meta="$1"; shift > - for m in $(echo "${meta}" | fold -w1); do > + for m in $(echo "${meta}" | grep -o .); do > gen_proto_variants "${m}" "$@" > done Acked-by: Will Deacon Ingo -- please can you take this one via -tip? Cheers, Will