diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2019-02-13 22:59:48 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-04-19 15:21:43 +0300 |
commit | b50776ae011cfd26df3cc2b4af8b2dc3b683e553 (patch) | |
tree | ab200da300fbc0da23355284536de0f88fb561fe | |
parent | 8b39adbee805c539a461dbf208b125b096152b1c (diff) | |
download | linux-b50776ae011cfd26df3cc2b4af8b2dc3b683e553.tar.xz |
locking/atomics: Don't assume that scripts are executable
patch(1) doesn't set the x bit on files. So if someone downloads and
applies patch-4.21.xz, their kernel won't build. Fix that by executing
/bin/sh.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | scripts/atomic/gen-atomics.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/atomic/gen-atomics.sh b/scripts/atomic/gen-atomics.sh index 27400b0cd732..000dc6437893 100644 --- a/scripts/atomic/gen-atomics.sh +++ b/scripts/atomic/gen-atomics.sh @@ -13,7 +13,7 @@ gen-atomic-long.sh asm-generic/atomic-long.h gen-atomic-fallback.sh linux/atomic-fallback.h EOF while read script header; do - ${ATOMICDIR}/${script} ${ATOMICTBL} > ${LINUXDIR}/include/${header} + /bin/sh ${ATOMICDIR}/${script} ${ATOMICTBL} > ${LINUXDIR}/include/${header} HASH="$(sha1sum ${LINUXDIR}/include/${header})" HASH="${HASH%% *}" printf "// %s\n" "${HASH}" >> ${LINUXDIR}/include/${header} |