From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F289C54FB9 for ; Wed, 15 Nov 2023 19:52:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235497AbjKOTwy (ORCPT ); Wed, 15 Nov 2023 14:52:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235500AbjKOTwy (ORCPT ); Wed, 15 Nov 2023 14:52:54 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E23EEB8 for ; Wed, 15 Nov 2023 11:52:50 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D108C433C8; Wed, 15 Nov 2023 19:52:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700077970; bh=QYjx+4yszuNsMkA8MrUbl71yGx0LO01UIKFee89eC+0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hMI+tTMh7v1J5fdC5R/LA23nWCby9z8rtGzTtX9TycOGY2FHNcOofSAX/bSJqPLsN spPS2dVKgRuHP/9Zh+OwOOWWr8827eKLLNtinfcwhFarYdQv6uJ9R2rIaz8maRDhui 8StnY+93nD4QqtW50ZAJf52rDZ/yupaFkK+cE/lY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Aaron Plattner , Josh Poimboeuf , Sasha Levin Subject: [PATCH 6.1 006/379] objtool: Propagate early errors Date: Wed, 15 Nov 2023 14:21:21 -0500 Message-ID: <20231115192645.516382702@linuxfoundation.org> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231115192645.143643130@linuxfoundation.org> References: <20231115192645.143643130@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Aaron Plattner [ Upstream commit e959c279d391c10b35ce300fb4b0fe3b98e86bd2 ] If objtool runs into a problem that causes it to exit early, the overall tool still returns a status code of 0, which causes the build to continue as if nothing went wrong. Note this only affects early errors, as later errors are still ignored by check(). Fixes: b51277eb9775 ("objtool: Ditch subcommands") Signed-off-by: Aaron Plattner Link: https://lore.kernel.org/r/cb6a28832d24b2ebfafd26da9abb95f874c83045.1696355111.git.aplattner@nvidia.com Signed-off-by: Josh Poimboeuf Signed-off-by: Sasha Levin --- tools/objtool/objtool.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/objtool/objtool.c b/tools/objtool/objtool.c index a7ecc32e35125..cda649644e32d 100644 --- a/tools/objtool/objtool.c +++ b/tools/objtool/objtool.c @@ -146,7 +146,5 @@ int main(int argc, const char **argv) exec_cmd_init("objtool", UNUSED, UNUSED, UNUSED); pager_init(UNUSED); - objtool_run(argc, argv); - - return 0; + return objtool_run(argc, argv); } -- 2.42.0