* [PATCH] scripts/atomic: change 'fold' to 'grep'
@ 2018-12-04 21:47 Anders Roxell
2018-12-06 15:52 ` Will Deacon
0 siblings, 1 reply; 4+ messages in thread
From: Anders Roxell @ 2018-12-04 21:47 UTC (permalink / raw)
To: will.deacon, peterz; +Cc: linux-kernel, 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 <naresh.kamboju@linaro.org>
Suggested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
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
}
--
2.19.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] scripts/atomic: change 'fold' to 'grep'
2018-12-04 21:47 [PATCH] scripts/atomic: change 'fold' to 'grep' Anders Roxell
@ 2018-12-06 15:52 ` Will Deacon
2018-12-06 16:15 ` Ingo Molnar
0 siblings, 1 reply; 4+ messages in thread
From: Will Deacon @ 2018-12-06 15:52 UTC (permalink / raw)
To: Anders Roxell, mingo; +Cc: peterz, linux-kernel, mark.rutland
[+ 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 <naresh.kamboju@linaro.org>
> Suggested-by: Will Deacon <will.deacon@arm.com>
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
> 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 <will.deacon@arm.com>
Ingo -- please can you take this one via -tip?
Cheers,
Will
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] scripts/atomic: change 'fold' to 'grep'
2018-12-06 15:52 ` Will Deacon
@ 2018-12-06 16:15 ` Ingo Molnar
2018-12-10 17:52 ` Mark Rutland
0 siblings, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2018-12-06 16:15 UTC (permalink / raw)
To: Will Deacon; +Cc: Anders Roxell, peterz, linux-kernel, mark.rutland
* Will Deacon <will.deacon@arm.com> 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 <naresh.kamboju@linaro.org>
> > Suggested-by: Will Deacon <will.deacon@arm.com>
> > Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> > ---
> > 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 <will.deacon@arm.com>
>
> 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.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] scripts/atomic: change 'fold' to 'grep'
2018-12-06 16:15 ` Ingo Molnar
@ 2018-12-10 17:52 ` Mark Rutland
0 siblings, 0 replies; 4+ messages in thread
From: Mark Rutland @ 2018-12-10 17:52 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Will Deacon, Anders Roxell, peterz, linux-kernel
Hi Ingo,
On Thu, Dec 06, 2018 at 05:15:28PM +0100, Ingo Molnar wrote:
>
> * Will Deacon <will.deacon@arm.com> 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 <naresh.kamboju@linaro.org>
> > > Suggested-by: Will Deacon <will.deacon@arm.com>
> > > Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> > > ---
> > > 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 <will.deacon@arm.com>
> >
> > 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-12-10 17:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-04 21:47 [PATCH] scripts/atomic: change 'fold' to 'grep' Anders Roxell
2018-12-06 15:52 ` Will Deacon
2018-12-06 16:15 ` Ingo Molnar
2018-12-10 17:52 ` Mark Rutland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).