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: 67716 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1112932wrd; Fri, 10 Mar 2023 13:42:58 -0800 (PST) X-Google-Smtp-Source: AK7set98ptT1cN9+ZcuSfKLiDvQvoqmTHHTD/wqr/Yrsg/IqXh4LQ5WMHYzHRyBfK+7DsAUKlU0c X-Received: by 2002:a05:6a20:7290:b0:b8:a0e1:2739 with SMTP id o16-20020a056a20729000b000b8a0e12739mr28380995pzk.3.1678484577715; Fri, 10 Mar 2023 13:42:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678484577; cv=none; d=google.com; s=arc-20160816; b=DSfoKj1F3cIBrtcS3cvUukUxM7tr4jzq4ULB8V4BMtkxOX5VyQOkoKDFr2WMMo04b/ ptTRoQzAzui9/6wEAR8RLG6mWcWQajO6RWAgsH4aEWY4tr0GdX+FqWTGpg81EUT5U0rU pdqNpLgrM1hY3NPNZiNv4v5BVEJscu+ZUO91ZsLM7gH3gLpW2o2UtGJIhwqjZyOeq8Ob EltJQQiXnKCmmKuX6Yx722OYY7f7wqNxjIedlntqNmZB9t23/VqCV0sEBb+jFqUcqu/P JpU/RgCUKECLQ3ZD9xyoTombl7wl1CDKE6wiJTty4nV+FqCDvr8EFKVh8UDUrfaac5r8 4bdg== 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=u6Vobpw+4vgUYr0JhP/C3/4m0sqFlHx1JqSixKRFPIQ=; b=EJAIhJmg/ivuh5RfmE9aw0+fSfh2LViGe4PlD+gmrOQS/4WicG4rRrBcYB1bTHH5Su 2V4P7gKeTakq4yphFrJZKEQrw0UwZszs4avF9JxoRSIUdEDApf2vr7sVmk1iSCNGvxcI T7342KIbjC0Zi2cIUKmae2nnYFdQt1pdMaq3IjkycVDM92ERHruX0HyX9sxeyXXNnbql dfaCBloDeiHCrlcNmLBqxxaombgHaPpyMFMEl5CZRMXzP0MRHjt/80xgjCmtoaJ1RRlR Qk4/HvNHg4T30GaP+VINWG3qmy3RxR/NRN2S3w9zU0sIySNj6ViKufIdrBq0DPC3yS0g jWTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QmmJ9tXt; 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 n15-20020a63ee4f000000b00502f407953asi702284pgk.116.2023.03.10.13.42.42; Fri, 10 Mar 2023 13:42:57 -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=QmmJ9tXt; 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 S231835AbjCJU40 (ORCPT + 99 others); Fri, 10 Mar 2023 15:56:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231601AbjCJUy6 (ORCPT ); Fri, 10 Mar 2023 15:54:58 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E3A11A96C; 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=1678481695; 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=u6Vobpw+4vgUYr0JhP/C3/4m0sqFlHx1JqSixKRFPIQ=; b=QmmJ9tXtwGv8NFgrkV6lNJlqsfiGyoHjgXT48Unihibk5mf5cAQWAKuLryj10D6y90tuqt FiMQGkH7DegBcHcyKj7wD1OYlnIda91UMHnKUvalN5zku8UWWFhjJwVhJ6FAE48SlcLe9R AREeCs3QoyybymcMMmAFPPANeA/zeYBHn4k0DaFwFs8ibR5ie9SuGxi1KuIBPCMoYxuJOL PnfD943Wqsd+pGOdnWqMxoHScJe+bk3BJKSBtT6ZDcI4iGBNUAu6InOH+Hy4rIIyeF86yB Gbte1PqbaWsCBDqb8lzkNtvlO+2qhZuywgP9/aAF5U5gWP8H0y+2mPX1a7qb4g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1678481695; 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=u6Vobpw+4vgUYr0JhP/C3/4m0sqFlHx1JqSixKRFPIQ=; b=4HCUsrWHwy9up3WiH7e3o1fZDK4hYtZb/6lgn/ACagv44CVgo09hkeLDnT6U/wamAoWkYE myf+Bg6Fkw3bMvCA== 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] arm/cpu: Add unreachable() to arch_cpu_idle_dead() Cc: Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230216183851.s5bnvniomq44rytu@treble> References: <20230216183851.s5bnvniomq44rytu@treble> MIME-Version: 1.0 Message-ID: <167848169549.5837.9296234527293777617.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?1758014177786316402?= X-GMAIL-MSGID: =?utf-8?q?1760018644352081213?= The following commit has been merged into the objtool/core branch of tip: Commit-ID: b40c7d6d31ac2f6b78371cdc08bc1b6b62f01375 Gitweb: https://git.kernel.org/tip/b40c7d6d31ac2f6b78371cdc08bc1b6b62f01375 Author: Josh Poimboeuf AuthorDate: Thu, 16 Feb 2023 10:38:55 -08:00 Committer: Josh Poimboeuf CommitterDate: Mon, 06 Mar 2023 15:34:04 -08:00 arm/cpu: Add unreachable() to arch_cpu_idle_dead() arch_cpu_idle_dead() doesn't return. Make that visible to the compiler with an unreachable() code annotation. Link: https://lkml.kernel.org/r/20230216183851.s5bnvniomq44rytu@treble Signed-off-by: Josh Poimboeuf --- arch/arm/kernel/smp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 0b8c257..441ea5c 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -382,6 +382,8 @@ void arch_cpu_idle_dead(void) : "r" (task_stack_page(current) + THREAD_SIZE - 8), "r" (current) : "r0"); + + unreachable(); } #endif /* CONFIG_HOTPLUG_CPU */