From patchwork Mon Feb 11 13:22:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 158002 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2593299jaa; Mon, 11 Feb 2019 05:22:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IaD0R47nia450VWg/WXmwsxGwWPRmFORPEHe1EzONRyeilmMYGX4gpPOiMQKuvCLAJkDffd X-Received: by 2002:a17:902:b203:: with SMTP id t3mr8974717plr.243.1549891352504; Mon, 11 Feb 2019 05:22:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549891352; cv=none; d=google.com; s=arc-20160816; b=VMfMJDe6X0t3mk5m30W1KNCwZJEb7WyYeVGc/VoW/JskUfATCEVd677vZQL5YC61BC 5fypPgD0xvW7SvBLq6H01tk723M/Rq8qsspTyx0b3DofL5uGCfTMKFb42D0T7Vlt5bCl 9hUDqyaUCi+mV0TsKtvUHS7jgcaNm9ZxVSpnmyRHNkjeQiNSsQOswRUvXTTVRoBjTwsT of5xrskBTT2+xyIrtsVwDa8dT8NM7/Qq2Q97NFo0fMGdnegte0H4noX1q2NQUWGQjgh4 QLd825HTM/F4JZKM87Qu3UlvF+CH2cdnqiGAwSZrz7NGkQabsxEaLUfWa69+BdV8EwVL RCYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=m9kdt/aCA8eidOTCUr7ZxGDY0zbFhIyqUIT5J5fxKX0=; b=VhVBi6YSs5aQPtKogOhGmqCLe8qcLCZ6DcNATZ52EnowXGK+HTB1So0Xfe2JNgHvdV ct6GKXbDF/nJHa7T+fO5CMINW8StVrJcksneEELI0yBw6SOZ8ZcT4KR0ljDBu9zSvmpI gXRZQqzRULMpq1F8ZvWGhyLFWDVo0RhqosFzv2dSgWOVuleyvxXkNXFjNGdTUnYmL3ZR hFAEXYAgRM7gTBSJqlq5D/X94FcbGX2sKTO9l8hBt7FaoKVrEV1Q3W/Qxnm9VGzhObML yWvLhXdg3VNRz11thzi7y+lija/fqgkBMob827XuRJSq0A9KDpVll2qChRY/ANYUQy6v NvJg== 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 e189si10165717pfc.156.2019.02.11.05.22.32; Mon, 11 Feb 2019 05:22:32 -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 S1728065AbfBKNWa (ORCPT + 31 others); Mon, 11 Feb 2019 08:22:30 -0500 Received: from foss.arm.com ([217.140.101.70]:48378 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727954AbfBKNW2 (ORCPT ); Mon, 11 Feb 2019 08:22:28 -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 A56A91596; Mon, 11 Feb 2019 05:22:27 -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 ESMTPA id F2F663F557; Mon, 11 Feb 2019 05:22:25 -0800 (PST) From: Mark Rutland To: linux-kernel@vger.kernel.org, mingo@kernel.org Cc: akpm@linux-foundation.org, anders.roxell@linaro.org, boqun.feng@gmail.com, mark.rutland@arm.com, naresh.kamboju@linaro.org, peterz@infradead.org, will.deacon@arm.com Subject: [PATCHv2 1/2] locking/atomics: Change 'fold' to 'grep' Date: Mon, 11 Feb 2019 13:22:12 +0000 Message-Id: <20190211132213.15249-2-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190211132213.15249-1-mark.rutland@arm.com> References: <20190211132213.15249-1-mark.rutland@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anders Roxell 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 [Mark: rework commit message] Signed-off-by: Mark Rutland Acked-by: Will Deacon --- scripts/atomic/atomic-tbl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 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 }