mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 10:32:54 +00:00
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
|
From 6b70660e7d730b1ef79360ba7c23fc9f1d4b60e3 Mon Sep 17 00:00:00 2001
|
||
|
From: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
|
||
|
Date: Sat, 7 Mar 2020 19:23:40 +0300
|
||
|
Subject: [PATCH] objtool/sync-check.sh: set the exit code explicitly
|
||
|
|
||
|
Commit 6ec14aa7a58a "objtool: Silence build output" removed 'cd -' from
|
||
|
the end of sync-check.sh script. As a side-effect, the script now exits
|
||
|
with the exit code of the last executed 'check' command. If any of the
|
||
|
files it should check are missing (which is not an error per se), it will
|
||
|
return 1 and objtool will fail to build.
|
||
|
|
||
|
Explicit 'exit 0' at the end should fix that.
|
||
|
|
||
|
Fixes: 6ec14aa7a58a "objtool: Silence build output"
|
||
|
Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
|
||
|
---
|
||
|
tools/objtool/sync-check.sh | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/tools/objtool/sync-check.sh b/tools/objtool/sync-check.sh
|
||
|
index 105a291ff8e7..720a87d795f5 100755
|
||
|
--- a/tools/objtool/sync-check.sh
|
||
|
+++ b/tools/objtool/sync-check.sh
|
||
|
@@ -73,3 +73,5 @@ if [ "$SRCARCH" = "x86" ]; then
|
||
|
check $i '-I "^.*\/\*.*__ignore_sync_check__.*\*\/.*$"'
|
||
|
done
|
||
|
fi
|
||
|
+
|
||
|
+exit 0
|
||
|
|
||
|
--
|
||
|
2.24.0
|
||
|
|