From patchwork Fri Jun 2 19:22:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 102681 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1253198vqr; Fri, 2 Jun 2023 12:33:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Hhfur183wtbvnwWmUDRkHDJkxXU3PwvMOlM/jmpg5cZkrprV16V/+jBF6Son9jeqwmvP2 X-Received: by 2002:a05:6a00:1949:b0:643:4d69:efb8 with SMTP id s9-20020a056a00194900b006434d69efb8mr15952888pfk.6.1685734420899; Fri, 02 Jun 2023 12:33:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685734420; cv=none; d=google.com; s=arc-20160816; b=OmRuvXpICJVlXIWWnBaOWqosnvwbH1VSg+T5vleKSPohfGa2E18lFjO3jTsR3Qi+0q txiGKVGMSJdw6xsCx8Ryvc4iuGGt/NoBoacTgcKMnJd8RuGbx8UbPtz67j4OKCZAfasn /lQI0IrdbFvtyumJcFsDZr7YNq2VADRSx6l9OMQeacjzIURYd1U6zH8iCKCiFnA58tG5 zHQVf3fwcG87JDUzPcMh4W7fwo5bFfZTZK6F0CsafAaQwkZPLAgCBP8doR1BFM4/mJMD 5mKiKsFbCTGc7zHU3mi5kcxLpWbgsNb+FppwlKyOfePvuHAI43cOCGimEHvpfV+mtnuD x9Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=ThsPPSvvi0NQuDbE3V2XkRsox2z+4m2CiOPtkRH1F7w=; b=0RQ8le5w40N/JjWl8QfItg01ueNFnBfRALJ3svo2dUkbNa6kaEiQAuyug8k7xyuryp Qm9bz8uEE0ak0ThjhXgT+ps4vP237fJNy3cXTEAnTTb+AjkI2nQd5TExNW8ndzH47WZm zljc2ce0vg3tZAZxXcu4Y8MqxeI4LSv+6mmasrMobdUdqg+sNL9QrjS66eOB+UrW4ohQ tfMCzAQa31U6fA5nZES3B4t/+hj45PytiRE705+pmc9bC+i8IAgh2iggyif3yatKf1ar fbnsrBgIKs+SybsTt3eUq7kTtfSuzuni/V0562azS4LSC95QV6qP1IBIsX8EyeJkuzkK w9Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PyxJvpgr; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 189-20020a6206c6000000b00652dc29b5dasi1158590pfg.178.2023.06.02.12.33.28; Fri, 02 Jun 2023 12:33:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PyxJvpgr; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236483AbjFBTWW (ORCPT + 99 others); Fri, 2 Jun 2023 15:22:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237200AbjFBTWT (ORCPT ); Fri, 2 Jun 2023 15:22:19 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B093D1BC; Fri, 2 Jun 2023 12:22:08 -0700 (PDT) Date: Fri, 02 Jun 2023 19:22:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1685733726; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ThsPPSvvi0NQuDbE3V2XkRsox2z+4m2CiOPtkRH1F7w=; b=PyxJvpgrfSc+7RQ+v9un/vJOraVQL5Wj49KBWiagvT+LfqxbJCKpbd4QEKI6pBa0S3RgGI 1B1WRV3TkdlDkBaMhKczjBQbHBI1WXrXUF6bDc2sU/oAUsKKXjJWUK49gXCP1ChFyzwbMd bWse7C3qA6jzIdgb35OAzsredZqRA81IVHH1t815UloN4JIdIKSVc4Bgtq+3xnvBaoZlOn PkqYULmLDAAQ23lYlMXzazRTYx8PawTBXiot6huh6XnHFm6ox8RyFHAJAMa0bEyOB2tuB/ oM6Ut59fdaiLQNuYkEjU+d7HQtLll8mk3zjzGzxnbGIrwkGqxh/6dTOljAXg6Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1685733726; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ThsPPSvvi0NQuDbE3V2XkRsox2z+4m2CiOPtkRH1F7w=; b=qAqjZDruE0UXn2lqVEHDwTiOWV1JwVjiiFfhCY4jUA5FACpr/k7F0snb+GuWf7Cy/8obty 2guLfndcUNMSg8DQ== From: "tip-bot2 for Josh Poimboeuf" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] objtool: Add __kunit_abort() to noreturns Cc: Stephen Rothwell , Josh Poimboeuf , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230602175453.swsn3ehyochtwkhy@treble> References: <20230602175453.swsn3ehyochtwkhy@treble> MIME-Version: 1.0 Message-ID: <168573372607.404.6955816775416345418.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767615896258823091?= X-GMAIL-MSGID: =?utf-8?q?1767620655771881709?= The following commit has been merged into the objtool/core branch of tip: Commit-ID: ff9a6459bbec06df7da2545020d7383aba13b3fb Gitweb: https://git.kernel.org/tip/ff9a6459bbec06df7da2545020d7383aba13b3fb Author: Josh Poimboeuf AuthorDate: Fri, 02 Jun 2023 10:54:53 -07:00 Committer: Peter Zijlstra CommitterDate: Fri, 02 Jun 2023 21:12:24 +02:00 objtool: Add __kunit_abort() to noreturns Fixes a bunch of warnings like: drivers/input/tests/input_test.o: warning: objtool: input_test_init+0x1cb: stack state mismatch: cfa1=4+64 cfa2=4+56 lib/kunit/kunit-test.o: warning: objtool: kunit_log_newline_test+0xfb: return with modified stack frame ... Fixes: 260755184cbd ("kunit: Move kunit_abort() call out of kunit_do_failed_assertion()") Reported-by: Stephen Rothwell Signed-off-by: Josh Poimboeuf Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20230602175453.swsn3ehyochtwkhy@treble --- tools/objtool/noreturns.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/objtool/noreturns.h b/tools/objtool/noreturns.h index cede606..1514e84 100644 --- a/tools/objtool/noreturns.h +++ b/tools/objtool/noreturns.h @@ -7,6 +7,7 @@ * Yes, this is unfortunate. A better solution is in the works. */ NORETURN(__invalid_creds) +NORETURN(__kunit_abort) NORETURN(__module_put_and_kthread_exit) NORETURN(__reiserfs_panic) NORETURN(__stack_chk_fail)