Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4026004imu; Mon, 10 Dec 2018 11:47:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/WBHu4Du6TtuOiZyKBoHrldYzddpTPF81kyxgD/FbUwncUSgeMKOiHXe+dand6US8MBWcER X-Received: by 2002:a63:4342:: with SMTP id q63mr11943053pga.63.1544471268853; Mon, 10 Dec 2018 11:47:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544471268; cv=none; d=google.com; s=arc-20160816; b=xEV/oKet5KgZqtMzHLAFCbObsWbiOr3AKY51eqxsmp6omaOTmEDSC5xK/003ZKYMH5 jBXO9dU9GV6XwMcCovOjh/KFK7JtUjp9K0+CSm7TRxUqif1fZAQPmcsX99a/k6PtWRwk Aj95AqSjQ0ZMD/H/J79hyIiQTOxRyr3vAGe8Tf7yy6y+e81i7fXj3DFWSUfjggmQ5E8K cVsCFkDu7Whq22W/uDyJN5IEhuBYnwa7oDnxdaXr211wuj9a8lOlLIV4yWue50huvg+l aigJkIU1x0TQmvG4Zbza6lsVVi1mJeDIRcP/mDbX2orCm62l9hgXPkGrOcdPVcbDA+E4 wvnw== 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=efmhFk+P56fIbh+YAGx3cTR2AHxLdvno3aMlszMVubc=; b=xfJUqZIW1zrtrGkdE9CEG0B0T3/cw70grHF8Z2ItL2/mBoWJOlEPVYia36p4nAlTsd DB7OMVKfj03i6utKgsyO7CXp/c91pszysWK4DP+hnDM3SgXl0UFtQLFopfWCq8R6YwA9 /Ptkj2jR8Qe0mND2+TBGI4AgUDkxsVKSy91+t9N4X+9eHm5vVqwMF3sBzkSacgtH0eRh rZu032aDW71MuDXBQ2B3Iu5WsKMuNM/6GBUvYyfqBMR48jKhKqtRQwmk7Lhq5i6kUrZC FTIV5C31ocnrG9dRcD0Vr1l9sLzYb4EQrgqAAo8DBkclzIf+3fU49qJpkEGQQ6ZN0Tbj 65Bw== 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 k38si9708346pgi.235.2018.12.10.11.47.33; Mon, 10 Dec 2018 11:47:48 -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 S1728624AbeLJRwT (ORCPT + 99 others); Mon, 10 Dec 2018 12:52:19 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:59914 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727416AbeLJRwS (ORCPT ); Mon, 10 Dec 2018 12:52:18 -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 1A39DEBD; Mon, 10 Dec 2018 09:52:18 -0800 (PST) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 07E423F6A8; Mon, 10 Dec 2018 09:52:16 -0800 (PST) Date: Mon, 10 Dec 2018 17:52:11 +0000 From: Mark Rutland To: Ingo Molnar Cc: Will Deacon , Anders Roxell , peterz@infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scripts/atomic: change 'fold' to 'grep' Message-ID: <20181210175211.hqw4usnzh43a4kab@lakrids.cambridge.arm.com> References: <20181204214713.5812-1-anders.roxell@linaro.org> <20181206155244.GA4389@arm.com> <20181206161528.GA118885@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181206161528.GA118885@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ingo, On Thu, Dec 06, 2018 at 05:15:28PM +0100, Ingo Molnar wrote: > > * Will Deacon wrote: > > > [+ 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? > > I'm still waiting for a reply to my previous concerns expressed in: > > Re: [tip:locking/core] locking/atomics: Check generated headers are up-to-date > <20181128083057.GA7879@gmail.com> > > Will remove it from linux-next if there's no good resolution for this > cycle. I've just sent a couple of patches for that; please see: https://lkml.kernel.org/r/20181210175035.45096-1-mark.rutland@arm.com Thanks, Mark.