From patchwork Fri Mar 10 20:54:55 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: 67701 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1103602wrd; Fri, 10 Mar 2023 13:16:50 -0800 (PST) X-Google-Smtp-Source: AK7set9V03IfLLTdqCEdkJWkArPz6XUgQS5dOrv0B5D6Ya86nGWyyDsU1oF2yLn+4Z5n70/gPZQd X-Received: by 2002:a17:903:260a:b0:19e:6bd5:7ab6 with SMTP id jd10-20020a170903260a00b0019e6bd57ab6mr23023569plb.14.1678483009993; Fri, 10 Mar 2023 13:16:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678483009; cv=none; d=google.com; s=arc-20160816; b=NU1zmwNdUOb8LN/ZX5h+HkGtFeha62FnhiNnBX8CYf8I0Gm+X2JhhFDsqhm9EVeMdv IpWig78I4y/K5GCeABsIFJU1DoVYcRG7GX/d11/4q841TwHzcq36lfqm3FKzKxvXTsrC w0dVKRxQDwFsdn5VFW4A2Rlo5Bm9RU+ORuhHQLnXNrzcM3qT9Rhfv4J2gmfESj/LSrcK j/X9K8o05ou1WZikFbde+LOVdVjn9iOmeX4s590YWtJVsH7cq38BvqebscCh97q6umY2 bo/fonhDxal6/kBpiQO+BGUtCzuQJyp3s5S1IyGn2fXc7WqxK5PdE0sxWfRMc0t6nS3A lXOA== 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=aBWg/DR4Hke3Z1o2x99mcKWAlfHQVtpi4pzh5iMUYvI=; b=VdG21oZlqoZCnPuqJv8Yccezh8NdErPqdCL8zwZIDUsR05PGlRd/RD9o7ZERq9dBYM 9ls9BZQeqYBsPBRMsAEUqjmINgCloCf57YH5zTSu74AOgDd3rk72UKNvQzTQs/AjkyCD 4Tcx1+/bauoGGZF/2EMYhWyrb/btgNv6i/UUja7O9E5fWYwto2MS0w6y9tg4RXKWVZXf iluM4RNn7tlXqdrEwaBbTt5HB24oxyDt758gKGXIkkF1CSm7hsVaI23AL4bB1wPKRDig 8wqYunVPK8Q7QO/C07oH6bNFoqOnZSxk2/lBOo3ZFejJm7xYH5CYEr982YAb1WLNQ/pG ydwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ANTgaut3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 b8-20020a170902b60800b0019cdd3e2aecsi750869pls.312.2023.03.10.13.16.10; Fri, 10 Mar 2023 13:16:49 -0800 (PST) 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=ANTgaut3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S231778AbjCJU4M (ORCPT + 99 others); Fri, 10 Mar 2023 15:56:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231600AbjCJUy6 (ORCPT ); Fri, 10 Mar 2023 15:54:58 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8831B13B2A9; Fri, 10 Mar 2023 12:54:57 -0800 (PST) Date: Fri, 10 Mar 2023 20:54:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1678481696; 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=aBWg/DR4Hke3Z1o2x99mcKWAlfHQVtpi4pzh5iMUYvI=; b=ANTgaut3mPNb5LvRS1zKh8BX4hwr1voMqWf/5qqFqbD4YDuyJHrY207OdofQ9YwvZBVaZ0 WvPiDD3GeHe7dj2T2q1RLw5Vhgw+aEtzA3BMNDC+oor+QQo0HBWDPaxIX7UxQ6kIRyFLzF pAtv0ETzMr03eojAZpuIE3oKLbl5DUG6U3ZqugZJZcgztF54eQCbbsU2SoOo+nkAMpvJaQ VNLkjsWpbYy8LbKlisorScryzrAkvHM4Vef4v5aWd9UwL1ieZDeW62FgbP12jF5p1xzlo2 237EvI1evVozsm4yf0Q5aHPI+3VZj2qrGs4cIvzs+pO3DCPIYxFL1ECKiIaF6Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1678481696; 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=aBWg/DR4Hke3Z1o2x99mcKWAlfHQVtpi4pzh5iMUYvI=; b=vLBCPOKsSsxsyrxzQeXCMzNMvXZ7in0880KmPf7uh3jgNsWKZLjcdkqKSZcLgVQ+LFZY6q LqjeY2T24dFVF3Dg== 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] alpha/cpu: Make sure arch_cpu_idle_dead() doesn't return Cc: Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <19ffef09a175fecb783abcd44d6bcfeade2857eb.1676358308.git.jpoimboe@kernel.org> References: <19ffef09a175fecb783abcd44d6bcfeade2857eb.1676358308.git.jpoimboe@kernel.org> MIME-Version: 1.0 Message-ID: <167848169589.5837.10610874531476586578.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,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?1757789376401315654?= X-GMAIL-MSGID: =?utf-8?q?1760017000347618844?= The following commit has been merged into the objtool/core branch of tip: Commit-ID: 550db6795e9bb0b1b40f9c52bbe3d0ee735dbdb0 Gitweb: https://git.kernel.org/tip/550db6795e9bb0b1b40f9c52bbe3d0ee735dbdb0 Author: Josh Poimboeuf AuthorDate: Mon, 13 Feb 2023 23:05:36 -08:00 Committer: Josh Poimboeuf CommitterDate: Mon, 06 Mar 2023 15:34:03 -08:00 alpha/cpu: Make sure arch_cpu_idle_dead() doesn't return arch_cpu_idle_dead() doesn't return. Make that more explicit with a BUG(). BUG() is preferable to unreachable() because BUG() is a more explicit failure mode and avoids undefined behavior like falling off the edge of the function into whatever code happens to be next. Link: https://lore.kernel.org/r/19ffef09a175fecb783abcd44d6bcfeade2857eb.1676358308.git.jpoimboe@kernel.org Signed-off-by: Josh Poimboeuf --- arch/alpha/kernel/process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c index 3251102..a82fefa 100644 --- a/arch/alpha/kernel/process.c +++ b/arch/alpha/kernel/process.c @@ -63,6 +63,7 @@ void arch_cpu_idle(void) void arch_cpu_idle_dead(void) { wtint(INT_MAX); + BUG(); } #endif /* ALPHA_WTINT */