* [merged mm-nonmm-stable] scripts-decodecode-return-0-on-success.patch removed from -mm tree
@ 2026-03-28 4:26 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-03-28 4:26 UTC (permalink / raw)
To: mm-commits, rdunlap, derkling, akpm
The quilt patch titled
Subject: scripts/decodecode: return 0 on success
has been removed from the -mm tree. Its filename was
scripts-decodecode-return-0-on-success.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Patrick Bellasi <derkling@google.com>
Subject: scripts/decodecode: return 0 on success
Date: Wed, 18 Mar 2026 15:05:45 +0000
The decodecode script always returns an exit code of 1, regardless of
whether the operation was successful or not. This is because the
"cleanup" function, which is registered to run on any script exit via
"trap cleanup EXIT", contains an unconditional "exit 1".
Remove the "exit 1" from the "cleanup" function so that it only performs
the necessary file cleanup without forcing a non-zero exit status.
Do that to ensure successful script executions now exit with code 0.
Exits due to errors are all handled by the "die()" function and will still
correctly exit with code 1.
Link: https://lkml.kernel.org/r/20260318150545.2809311-1-derkling@google.com
Signed-off-by: Patrick Bellasi <derkling@google.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
scripts/decodecode | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/scripts/decodecode~scripts-decodecode-return-0-on-success
+++ a/scripts/decodecode
@@ -12,7 +12,6 @@ faultlinenum=1
cleanup() {
rm -f $T $T.s $T.o $T.oo $T.aa $T.dis
- exit 1
}
die() {
@@ -49,7 +48,7 @@ done
if [ -z "$code" ]; then
rm $T
- exit
+ die "Code line not found"
fi
echo $code
_
Patches currently in -mm which might be from derkling@google.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-28 4:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-28 4:26 [merged mm-nonmm-stable] scripts-decodecode-return-0-on-success.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.