aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2019-01-10 09:02:32 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2019-01-18 14:41:52 +1100
commit2188db634db33ddc7b53fa1af1f793c3e5dfe2cd (patch)
tree78609bd353701e1830d28904aee04d6e62891b31
parent02bf9bc148ee2a1a32dd4716fbe7e521a51a5ad2 (diff)
download96b-common-2188db634db33ddc7b53fa1af1f793c3e5dfe2cd.tar.gz
scripts/atomic/check-atomics.sh: 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. Cc: Mark Rutland <mark.rutland@arm.com> Cc: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Boqun Feng <boqun.feng@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rwxr-xr-xscripts/atomic/check-atomics.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/atomic/check-atomics.sh b/scripts/atomic/check-atomics.sh
index c30101cddf2d..1ed39ccb2619 100755
--- a/scripts/atomic/check-atomics.sh
+++ b/scripts/atomic/check-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
- if ! (${ATOMICDIR}/${script} ${ATOMICTBL} | diff - ${LINUXDIR}/include/${header} > /dev/null); then
+ if ! (/bin/sh ${ATOMICDIR}/${script} ${ATOMICTBL} | diff - ${LINUXDIR}/include/${header} > /dev/null); then
printf "warning: include/${header} is out-of-date.\n"
fi
done