Thread (24 messages) 24 messages, 5 authors, 2007-06-16

Re: [PATCH 5/13] Remove a couple of unused definitions from pgtable_32.c

flat view

From: Kumar Gala <hidden>
Date: 2007-06-14 21:04:08

On Jun 12, 2007, at 11:52 PM, David Gibson wrote:
quoted hunk ↗ jump to hunk
In arch/powerpc/mm/pgtable_32.c, the varialbe io_bat_index and the
macro is_power_of_4() no longer have any users.  This patch removes
them.

Signed-off-by: David Gibson <redacted>
---

 arch/powerpc/mm/pgtable_32.c |    4 ----
 1 file changed, 4 deletions(-)

Index: working-2.6/arch/powerpc/mm/pgtable_32.c
===================================================================
--- working-2.6.orig/arch/powerpc/mm/pgtable_32.c	2007-05-10 14:13:36.000000000 +1000
+++ working-2.6/arch/powerpc/mm/pgtable_32.c	2007-05-10 14:13:44.000000000 +1000
@@ -36,7 +36,6 @@
 unsigned long ioremap_base;
 unsigned long ioremap_bot;
 EXPORT_SYMBOL(ioremap_bot);	/* aka VMALLOC_END */
-int io_bat_index;

 #if defined(CONFIG_6xx) || defined(CONFIG_POWER3)
 #define HAVE_BATS	1
@@ -299,9 +298,6 @@ void __init mapin_ram(void)
 	}
 }

-/* is x a power of 4? */
-#define is_power_of_4(x)	is_power_of_2(x) && (ffs(x) & 1)
-
is_power_of_4 is used by HAVE_TLBCAM, why are you killing it?

- k
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help