mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thorsten Blum <blum@kernel.org>
To: Geoff Levand <geoff@infradead.org>,
	Madhavan Srinivasan <maddy@linux.ibm.com>,
	Michael Ellerman <mpe@ellerman.id.au>,
	Nicholas Piggin <npiggin@gmail.com>,
	"Christophe Leroy (CS GROUP)" <chleroy@kernel.org>,
	"Ritesh Harjani (IBM)" <ritesh.list@gmail.com>,
	Shrikanth Hegde <sshegde@linux.ibm.com>
Cc: Thorsten Blum <blum@kernel.org>,
	linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: [PATCH] powerpc/ps3: Remove dead printf() calls from the bootwrapper
Date: Thu,  5 Nov 2026 16:27:38 +0100	[thread overview]
Message-ID: <20261105152737.359236-2-blum@kernel.org> (raw)

The bootwrapper uses an empty console write callback, so its printf()
calls produce no output. Remove them and the empty ps3_console_write()
callback. Also leave console_ops.write unset and remove now-unused
header includes.

Signed-off-by: Thorsten Blum <blum@kernel.org>
---
 arch/powerpc/boot/ps3.c | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/arch/powerpc/boot/ps3.c b/arch/powerpc/boot/ps3.c
index 89ff46b8b225..c557f90cdd82 100644
--- a/arch/powerpc/boot/ps3.c
+++ b/arch/powerpc/boot/ps3.c
@@ -6,12 +6,10 @@
  *  Copyright 2007 Sony Corp.
  */
 
-#include <stdarg.h>
 #include <stddef.h>
 #include "types.h"
 #include "elf.h"
 #include "string.h"
-#include "stdio.h"
 #include "page.h"
 #include "ops.h"
 
@@ -37,18 +35,10 @@ static void prep_cmdline(void *chosen)
 		getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1);
 	else
 		setprop_str(chosen, "bootargs", cmdline);
-
-	printf("cmdline: '%s'\n", cmdline);
-}
-
-static void ps3_console_write(const char *buf, int len)
-{
 }
 
 static void ps3_exit(void)
 {
-	printf("ps3_exit\n");
-
 	/* lv1_panic will shutdown the lpar. */
 
 	lv1_panic(0); /* zero = do not reboot */
@@ -83,12 +73,6 @@ static int ps3_repository_read_rm_size(u64 *rm_size)
 		0x7075000000000000ULL, ppe_id, 0x726d5f73697a6500ULL, rm_size,
 		&v2);
 
-	printf("%s:%d: ppe_id  %lu \n", __func__, __LINE__,
-		(unsigned long)ppe_id);
-	printf("%s:%d: lpar_id %lu \n", __func__, __LINE__,
-		(unsigned long)lpar_id);
-	printf("%s:%d: rm_size %llxh \n", __func__, __LINE__, *rm_size);
-
 	return result ? -1 : 0;
 }
 
@@ -107,11 +91,8 @@ void platform_init(void)
 	unsigned long ft_addr;
 	u64 rm_size;
 
-	console_ops.write = ps3_console_write;
 	platform_ops.exit = ps3_exit;
 
-	printf("\n-- PS3 bootwrapper --\n");
-
 	simple_alloc_init(_end, heapsize, 32, 64);
 	fdt_init(_dtb_start);
 
@@ -131,8 +112,6 @@ void platform_init(void)
 
 	ps3_copy_vectors();
 
-	printf(" flat tree at 0x%lx\n\r", ft_addr);
-
 	((kernel_entry_t)0)(ft_addr, 0, NULL);
 
 	ps3_exit();

                 reply	other threads:[~2026-11-05 15:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261105152737.359236-2-blum@kernel.org \
    --to=blum@kernel.org \
    --cc=chleroy@kernel.org \
    --cc=geoff@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maddy@linux.ibm.com \
    --cc=mpe@ellerman.id.au \
    --cc=npiggin@gmail.com \
    --cc=ritesh.list@gmail.com \
    --cc=sshegde@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®