Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[POWERPC] Remove a couple of unused definitions from pgtable_32.c

In arch/powerpc/mm/pgtable_32.c, the variable io_bat_index and the
macro is_power_of_4() no longer have any users. This removes them.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

David Gibson and committed by
Paul Mackerras
c0770f68 f21f49ea

-4
-4
arch/powerpc/mm/pgtable_32.c
··· 36 36 unsigned long ioremap_base; 37 37 unsigned long ioremap_bot; 38 38 EXPORT_SYMBOL(ioremap_bot); /* aka VMALLOC_END */ 39 - int io_bat_index; 40 39 41 40 #if defined(CONFIG_6xx) || defined(CONFIG_POWER3) 42 41 #define HAVE_BATS 1 ··· 297 298 p += PAGE_SIZE; 298 299 } 299 300 } 300 - 301 - /* is x a power of 4? */ 302 - #define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1) 303 301 304 302 /* Scan the real Linux page tables and return a PTE pointer for 305 303 * a virtual address in a context.