[PATCH] ppc64: Remove unused code

Anton Blanchard anton at samba.org
Mon Sep 12 13:19:51 EST 2005


ppc64_attention_msg and ppc64_dump_msg are not used so remove them. 

Signed-off-by: Anton Blanchard <anton at samba.org>
---

Index: build/arch/ppc64/kernel/setup.c
===================================================================
--- build.orig/arch/ppc64/kernel/setup.c	2005-09-06 11:29:32.000000000 +1000
+++ build/arch/ppc64/kernel/setup.c	2005-09-06 11:29:55.000000000 +1000
@@ -1064,8 +1064,6 @@
 #define PPC64_LINUX_FUNCTION 0x0f000000
 #define PPC64_IPL_MESSAGE 0xc0000000
 #define PPC64_TERM_MESSAGE 0xb0000000
-#define PPC64_ATTN_MESSAGE 0xa0000000
-#define PPC64_DUMP_MESSAGE 0xd0000000
 
 static void ppc64_do_msg(unsigned int src, const char *msg)
 {
@@ -1093,20 +1091,6 @@
 	printk("[terminate]%04x %s\n", src, msg);
 }
 
-/* Print something that needs attention (device error, etc) */
-void ppc64_attention_msg(unsigned int src, const char *msg)
-{
-	ppc64_do_msg(PPC64_LINUX_FUNCTION|PPC64_ATTN_MESSAGE|src, msg);
-	printk("[attention]%04x %s\n", src, msg);
-}
-
-/* Print a dump progress message. */
-void ppc64_dump_msg(unsigned int src, const char *msg)
-{
-	ppc64_do_msg(PPC64_LINUX_FUNCTION|PPC64_DUMP_MESSAGE|src, msg);
-	printk("[dump]%04x %s\n", src, msg);
-}
-
 /* This should only be called on processor 0 during calibrate decr */
 void __init setup_default_decr(void)
 {
Index: build/include/asm-ppc64/machdep.h
===================================================================
--- build.orig/include/asm-ppc64/machdep.h	2005-09-06 11:29:14.000000000 +1000
+++ build/include/asm-ppc64/machdep.h	2005-09-06 11:29:55.000000000 +1000
@@ -173,10 +173,6 @@
 void ppc64_boot_msg(unsigned int src, const char *msg);
 /* Print a termination message (print only -- does not stop the kernel) */
 void ppc64_terminate_msg(unsigned int src, const char *msg);
-/* Print something that needs attention (device error, etc) */
-void ppc64_attention_msg(unsigned int src, const char *msg);
-/* Print a dump progress message. */
-void ppc64_dump_msg(unsigned int src, const char *msg);
 
 static inline void log_error(char *buf, unsigned int err_type, int fatal)
 {



More information about the Linuxppc64-dev mailing list