powerpc: Fix 8xx build failure

Previous thread: powerpc/booke: Clean up the hardware watchpoint support by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:09 am. (1 message)

Next thread: powerpc: Enable tracehook for the architecture by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:10 am. (1 message)
From: Linux Kernel Mailing List
Date: Monday, July 28, 2008 - 10:09 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ff8dc7...
Commit:     ff8dc7698c904f2a911e89b3d54e7c4a74f5575d
Parent:     b9fa49a9a908407d9366b0e1e7222aee81a2df5b
Author:     Kumar Gala <galak@kernel.crashing.org>
AuthorDate: Sun Jul 27 03:57:30 2008 +1000
Committer:  Benjamin Herrenschmidt <benh@kernel.crashing.org>
CommitDate: Mon Jul 28 16:30:48 2008 +1000

    powerpc: Fix 8xx build failure
    
    The 'powerpc ioremap_prot' broke 8xx builds:
    
    include2/asm/pgtable-ppc32.h:555: error: '_PAGE_WRITETHRU' undeclared (first use in this function)
    include2/asm/pgtable-ppc32.h:555: error: (Each undeclared identifier is reported only once
    include2/asm/pgtable-ppc32.h:555: error: for each function it appears in.)
    
    Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 include/asm-powerpc/pgtable-ppc32.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/asm-powerpc/pgtable-ppc32.h b/include/asm-powerpc/pgtable-ppc32.h
index bdbab72..6fe39e3 100644
--- a/include/asm-powerpc/pgtable-ppc32.h
+++ b/include/asm-powerpc/pgtable-ppc32.h
@@ -401,6 +401,9 @@ extern int icache_44x_need_flush;
 #ifndef _PAGE_COHERENT
 #define _PAGE_COHERENT	0
 #endif
+#ifndef _PAGE_WRITETHRU
+#define _PAGE_WRITETHRU	0
+#endif
 #ifndef _PMD_PRESENT_MASK
 #define _PMD_PRESENT_MASK	_PMD_PRESENT
 #endif
--

Previous thread: powerpc/booke: Clean up the hardware watchpoint support by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:09 am. (1 message)

Next thread: powerpc: Enable tracehook for the architecture by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:10 am. (1 message)