[PATCH] ppc64: Remove old includes

Anton Blanchard anton at samba.org
Tue Sep 6 11:57:00 EST 2005


From: Milton Miller <miltonm at bga.com>

Trim some no longer needed includes from udbg.c and friends.

Signed-off-by: Milton Miller <miltonm at bga.com>
Signed-off-by: Anton Blanchard <anton at samba.org>

Index: build/arch/ppc64/kernel/udbg.c
===================================================================
--- build.orig/arch/ppc64/kernel/udbg.c	2005-09-05 20:29:46.000000000 +1000
+++ build/arch/ppc64/kernel/udbg.c	2005-09-05 20:29:47.000000000 +1000
@@ -13,12 +13,9 @@
 #define WANT_PPCDBG_TAB /* Only defined here */
 #include <linux/config.h>
 #include <linux/types.h>
+#include <linux/sched.h>
 #include <asm/ppcdebug.h>
 #include <asm/processor.h>
-#include <asm/uaccess.h>
-#include <asm/machdep.h>
-#include <asm/io.h>
-#include <asm/prom.h>
 
 void (*udbg_putc)(unsigned char c);
 unsigned char (*udbg_getc)(void);
Index: build/arch/ppc64/kernel/udbg_16550.c
===================================================================
--- build.orig/arch/ppc64/kernel/udbg_16550.c	2005-09-05 20:29:46.000000000 +1000
+++ build/arch/ppc64/kernel/udbg_16550.c	2005-09-05 20:29:47.000000000 +1000
@@ -10,13 +10,8 @@
  */
 #include <linux/config.h>
 #include <linux/types.h>
-#include <asm/ppcdebug.h>
-#include <asm/processor.h>
-#include <asm/naca.h>
-#include <asm/uaccess.h>
-#include <asm/machdep.h>
+#include <asm/udbg.h>
 #include <asm/io.h>
-#include <asm/prom.h>
 
 extern u8 real_readb(volatile u8 __iomem  *addr);
 extern void real_writeb(u8 data, volatile u8 __iomem *addr);
Index: build/arch/ppc64/kernel/udbg_scc.c
===================================================================
--- build.orig/arch/ppc64/kernel/udbg_scc.c	2005-09-05 20:29:46.000000000 +1000
+++ build/arch/ppc64/kernel/udbg_scc.c	2005-09-05 20:29:47.000000000 +1000
@@ -10,11 +10,9 @@
  */
 #include <linux/config.h>
 #include <linux/types.h>
-#include <asm/ppcdebug.h>
+#include <asm/udbg.h>
 #include <asm/processor.h>
 #include <asm/naca.h>
-#include <asm/uaccess.h>
-#include <asm/machdep.h>
 #include <asm/io.h>
 #include <asm/prom.h>
 #include <asm/pmac_feature.h>



More information about the Linuxppc64-dev mailing list