From: Andrew Morton Date: Wed, 5 Dec 2018 00:14:19 +0000 (+1100) Subject: scripts/atomic/check-atomics.sh: don't assume that scripts are executable X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=df38354323f52324bb014168d9f3825c0e78a56a;p=users%2Fwilly%2Flinux.git 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 Cc: Peter Zijlstra (Intel) Cc: Boqun Feng Cc: Ingo Molnar Cc: Will Deacon Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- 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