From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (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 AA45740099B for ; Fri, 7 Aug 2026 15:25:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786116307; cv=none; b=QWHsOUVLTGXYytqxKif1aKg9y9pm+0o+uNoCPHhUf62a/YmB8DN2g2GUGc1AvItad3GhSk6/8L10O4Ym4yfiwEQJc9wSXwT2Em8Odkre0Cph3dxeYhZ0Wn5lsDw8XszzUriIcB9C5dLgEThyAmK524acPTJkJqcOXv566zoba/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786116307; c=relaxed/simple; bh=Te66I3/oXUwQciXEYplZBLazQetOY/A4HNBH3qQlFvo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WrIA8gTm0/iv/PIXP3JfjWbLkeb3cuoCm0M2v+7jB4Qg3KlmfqP1awR4guBOlOTyf2w+1qJoS/J7XmUyMhq0tMrRZYd72+PG+j9uunm7m9o4dIE3uaIwMWqharabmucGZyHKEuPMMDZe4qHYFwoTEE06bVnnYQiMqwxtVuJqHAk= 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=TY1sqpWk; arc=none smtp.client-ip=95.215.58.174 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="TY1sqpWk" 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=1786116302; 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; bh=iN95xa6NnO/iEg8YYVWS4Ihnptc/Q/Aco6C/8mmiemA=; b=TY1sqpWk+aXtgOi/zxhRUdMmq0ZpsyS/7iBZILGYgW+p3dyHkm70P4DRC0w8KkvLShwUvC gOIGpz1nxt8R5gbiYtcRqLwENamF9MhIsrYDiLmQtafX4jbqkqvrL/ORp49h6Ii69VtE5S nwp6zJHqjhmuJkAYAEYwFom7vmjg3ac= From: Thorsten Blum To: Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , Geoff Levand Cc: Thorsten Blum , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/boot: Mark exit() and ps3_exit() as __noreturn Date: Fri, 7 Aug 2026 17:23:53 +0200 Message-ID: <20260807152353.306889-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1059; i=thorsten.blum@linux.dev; h=from:subject; bh=Te66I3/oXUwQciXEYplZBLazQetOY/A4HNBH3qQlFvo=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFmlP7oy52x/aJxX+iVYTbU8foHTIt9uqX1hEsrmS3rYK tqM2FZ2lLIwiHExyIopsjyY9WOGb2lN5SaTiJ0wc1iZQIYwcHEKwETmvWb4H37tbl3DhVd7A/ZM ZfvOsYvBw2LBx7cy31suHG/hM2t8y87I8HF93s39i6U3a774t3Mxu/6/r7de7l+kaMS7+M7U6df iDjICAA== X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Since neither exit() nor ps3_exit() return, annotate both functions with the __noreturn attribute to improve compiler optimizations. Signed-off-by: Thorsten Blum --- arch/powerpc/boot/ops.h | 2 +- arch/powerpc/boot/ps3.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h index a40c2162a4e9..df52b14816e2 100644 --- a/arch/powerpc/boot/ops.h +++ b/arch/powerpc/boot/ops.h @@ -217,7 +217,7 @@ static inline void free(void *ptr) platform_ops.free(ptr); } -static inline void exit(void) +static inline void __noreturn exit(void) { if (platform_ops.exit) platform_ops.exit(); diff --git a/arch/powerpc/boot/ps3.c b/arch/powerpc/boot/ps3.c index 89ff46b8b225..22fa35960926 100644 --- a/arch/powerpc/boot/ps3.c +++ b/arch/powerpc/boot/ps3.c @@ -45,7 +45,7 @@ static void ps3_console_write(const char *buf, int len) { } -static void ps3_exit(void) +static void __noreturn ps3_exit(void) { printf("ps3_exit\n");