locking/atomics: Change 'fold' to 'grep'
authorAnders Roxell <anders.roxell@linaro.org>
Mon, 11 Feb 2019 13:20:34 +0000 (13:20 +0000)
committerIngo Molnar <mingo@kernel.org>
Mon, 11 Feb 2019 13:27:33 +0000 (14:27 +0100)
commitb14e77f89aca1c2763f65dc274b5837a185ab13f
tree77d63c0f2f9f27c5657ad8441e16f035a809ccf3
parent41b8687191cfd0326db03b0e82fb09d8c98ca641
locking/atomics: Change 'fold' to 'grep'

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.

[Mark: rework commit message]

Suggested-by: Will Deacon <will.deacon@arm.com>
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: akpm@linux-foundation.org
Cc: boqun.feng@gmail.com
Cc: linux-kernel@vger.kernel.rg
Signed-off-by: Ingo Molnar <mingo@kernel.org>
scripts/atomic/atomic-tbl.sh