From nobody Mon Apr 6 17:25:11 2026 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D17993DFC76 for ; Wed, 18 Mar 2026 15:06:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773846368; cv=none; b=a/trcuZX6b5R6o50x43pZ0wVGLi20jsji/BWPvfcCX6tZ+6T3gcTNN8eOm/PWKcyMw7s+ZysOphfX1TUSnz8hUCE8Hj77zX3zRNFx7HggM9HpaUIywsnYY/QsFpmepIMNu3RoBtglzpuSEKuaSYJUCu/+HYTJJM7e+kRSpbZl3I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773846368; c=relaxed/simple; bh=f2VSbbZ/54EPOYZcKM5pJ11BUxO2KQNO+B0fHrVeVHQ=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=ev74aHzn8zLAgtFHOvr+08R3yzXTMPp89qt18MTeqpmMyIWzGb+sJYSn3w0X6cRCm68RLmOfmeoXnt4h9OSLEaijRojbHdaG++wZzTt5aCOn9lcTs5tdVa+tNUKr8rlzVlHobsLfKPgmtxie9dd/SzqYPvyodyE+6dWGH+qo5SM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--derkling.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=RH8p0hMu; arc=none smtp.client-ip=209.85.128.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--derkling.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="RH8p0hMu" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-48539bda3dcso72888655e9.2 for ; Wed, 18 Mar 2026 08:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1773846365; x=1774451165; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=NarnPDsO2meSUNN81Gjl2snyd2h3WMXK2WLw++b2kiE=; b=RH8p0hMuQaqxIpvlrW9KPJYW+f/fp69huiGO6jQRE2zLtJdQutphWXKULdCeq/Eivd GAf+imAOGzHPqcbtfodrX4ReNdlJV8J2PpYdocP2V+GKxv9gSqvv+g7W12gGjgvOj+Xk a5kIEt1BlQJXmU8razc3QMlAQM2pBtuZGMQCm2YDVLxTu+G2pObtfOEftwpo69DSLMir AgIKRc114tRaYbyXN5vxSD7mAUA1XYo0QUy9N9dbgs9hhvg1Ab6P3eUWWIK4eJCMuZ7N ZoSWLSVBPNAXQzZ5ZfPr2rabvcreyH4n+clihgJOoCviZEDEA1/TUlID7f9GFBg5CfU9 nUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773846365; x=1774451165; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NarnPDsO2meSUNN81Gjl2snyd2h3WMXK2WLw++b2kiE=; b=CehaVdOqORWCnVPry35o88/oFMk7BcUHMxCo/kq8bXYkcOAvz9vdXbDH2op4DtXvGF nZ5EUylMEbp+zAaHmESgKxg1mzNvkei9PLMlMOftsTMq5NC9BohvCYppM2JmxFd8XHEk b/a9RE+S2bJ/F0cVcYqyPzYANfOU9Dfqt6bFKpXkEVS2kUBoxn4IE69TfPu9gevsBLgo fW5ZZUCJ3gJ6i6PjT4zhcWljTJf47kaM7X/GZYERMlg8FtQx5Ie9SeNWux1vvJFljE0U /raEc8oYlaaFS1uqJg0a+NzleMUGyiB9sJ616dDGFb+Md9ygTsRNq3/DFX1aLYxvRwTv lutQ== X-Gm-Message-State: AOJu0Yxru7lmboaJu8ZtAC42LwtGKWjteNud8/KUTXiMnfjvb61ma9nt ZSYu3xwN5oxqBnkmwoB5v0toRPxjQBSuG6OfxF2QwmmpkyhQjZQRJQZn2slMcKor9guPlgImXMC n768kF1Yujd06Jw== X-Received: from wrbee10.prod.google.com ([2002:a05:6000:210a:b0:43b:4804:c8f5]) (user=derkling job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:630a:b0:485:5574:8ccc with SMTP id 5b1f17b1804b1-486f445122amr60908315e9.13.1773846364877; Wed, 18 Mar 2026 08:06:04 -0700 (PDT) Date: Wed, 18 Mar 2026 15:05:45 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.53.0.851.ga537e3e6e9-goog Message-ID: <20260318150545.2809311-1-derkling@google.com> Subject: [PATCH] scripts/decodecode: Return 0 on success From: Patrick Bellasi To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, Patrick Bellasi Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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. Signed-off-by: Patrick Bellasi Acked-by: Randy Dunlap --- scripts/decodecode | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/decodecode b/scripts/decodecode index 6364218b2178f..01d25dc110de7 100755 --- a/scripts/decodecode +++ b/scripts/decodecode @@ -12,7 +12,6 @@ faultlinenum=3D1 =20 cleanup() { rm -f $T $T.s $T.o $T.oo $T.aa $T.dis - exit 1 } =20 die() { @@ -49,7 +48,7 @@ done =20 if [ -z "$code" ]; then rm $T - exit + die "Code line not found" fi =20 echo $code --=20 2.53.0.851.ga537e3e6e9-goog