aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/mmu-hash64.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2007-06-13 14:52:56 +1000
committerPaul Mackerras <paulus@samba.org>2007-06-14 22:30:16 +1000
commit8e561e7eda02819c711a75b64a000bf34948cdbb (patch)
treeecbb09ccf6095006bb2d98172c0bac33c78e598d /include/asm-powerpc/mmu-hash64.h
parent[POWERPC] Start factoring pgtable-ppc32.h and pgtable-ppc64.h (diff)
downloadlinux-dev-8e561e7eda02819c711a75b64a000bf34948cdbb.tar.xz
linux-dev-8e561e7eda02819c711a75b64a000bf34948cdbb.zip
[POWERPC] Kill typedef-ed structs for hash PTEs and BATs
Using typedefs to rename structure types if frowned on by CodingStyle. However, we do so for the hash PTE structure on both ppc32 (where it's called "PTE") and ppc64 (where it's called "hpte_t"). On ppc32 we also have such a typedef for the BATs ("BAT"). This removes this unhelpful use of typedefs, in the process bringing ppc32 and ppc64 closer together, by using the name "struct hash_pte" in both cases. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/mmu-hash64.h')
-rw-r--r--include/asm-powerpc/mmu-hash64.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-powerpc/mmu-hash64.h b/include/asm-powerpc/mmu-hash64.h
index b8dca30bd0b5..ba32019c51dd 100644
--- a/include/asm-powerpc/mmu-hash64.h
+++ b/include/asm-powerpc/mmu-hash64.h
@@ -103,12 +103,12 @@ extern char initial_stab[];
#ifndef __ASSEMBLY__
-typedef struct {
+struct hash_pte {
unsigned long v;
unsigned long r;
-} hpte_t;
+};
-extern hpte_t *htab_address;
+extern struct hash_pte *htab_address;
extern unsigned long htab_size_bytes;
extern unsigned long htab_hash_mask;