From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF9EA310630 for ; Mon, 10 Nov 2025 13:29:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762781359; cv=none; b=ki0JlcNa1oyuQFuDjfka6gNYJq86genI9hxmA0pS2QjfIx/DCE/c/lh4Npc+Ab9F0qt7004LulJjD81RlhQtmHcWACRwd1c2xXLFMAFs5+/q+Ys3MvEfTGthAn3N3vWfQyHvk0j70xO9L1fHYe56RXgBM5KAmZfnaySuJynv93E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762781359; c=relaxed/simple; bh=NQHYzOxzMSFlK5q4fg9nfPPuCyjP3a7r6rDd6M5f+4A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ral1Tl1ht8UgVBasez9bzqGBhpELH7bxufOUJnL0heb8CemWenIcCNbRdIjEqC1ixBRmCMUNsCY5wboUF8L/M/kMkbgbeSh60KfPaNItyuN5bhjlTzWobC+wxyiUPAtLMDQPcRVsKqoZNiT67laY1hK+WCFtRsYy1JCx9JkB2e8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=YGOGJ2Yq; arc=none smtp.client-ip=91.218.175.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="YGOGJ2Yq" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1762781354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UXrzkiqOIat+yMo66KFgP8YRHTHFfZvWlhYSmGepi0I=; b=YGOGJ2YqrBlPDzoDVSlMuNlcqVZijPEIf4p6/NGkoQPQyJQUIxd0Uw9mjNIPlJkvKlyDDw 8JywBrPijsmwXNdq+nLsPNvYjym4CLK3dso77Ey3Hmd91yZxAip4bNM2DE4miXE0IKIog5 3jnStzMP35Lj5ikmVrNhuM0xAH+UnKE= From: Thorsten Blum To: Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle Cc: Thorsten Blum , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] s390/kdump: Mark __machine_kdump as __noreturn Date: Mon, 10 Nov 2025 14:27:52 +0100 Message-ID: <20251110132803.1520-2-thorsten.blum@linux.dev> In-Reply-To: <20251110132803.1520-1-thorsten.blum@linux.dev> References: <20251110132803.1520-1-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT __machine_kdump() ends by calling the non-returning function store_status() and therefore also never returns. Annotate it with the __noreturn attribute to improve compiler optimizations. Signed-off-by: Thorsten Blum --- arch/s390/kernel/machine_kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kernel/machine_kexec.c b/arch/s390/kernel/machine_kexec.c index baeb3dcfc1c8..b6b0a85816f3 100644 --- a/arch/s390/kernel/machine_kexec.c +++ b/arch/s390/kernel/machine_kexec.c @@ -77,7 +77,7 @@ static void __do_machine_kdump(void *data) * Start kdump: create a LGR log entry, store status of all CPUs and * branch to __do_machine_kdump. */ -static noinline void __machine_kdump(void *image) +static noinline void __noreturn __machine_kdump(void *image) { struct mcesa *mcesa; union ctlreg2 cr2_old, cr2_new; -- 2.51.1