From: Paul Mackerras Date: Tue, 9 May 2006 06:00:59 +0000 (+1000) Subject: powerpc/32: Define an is_kernel_addr() to fix ARCH=ppc compilation X-Git-Tag: v2.6.17-rc4~12 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4de00215c3af02116db3d486bf53700dfe10619;p=linux-2.6 powerpc/32: Define an is_kernel_addr() to fix ARCH=ppc compilation My commit 6bfd93c32a5065d0e858780b3beb0b667081601c broke the ARCH=ppc compilation by using the is_kernel_addr() macro in asm/uaccess.h. This fixes it by defining a suitable is_kernel_addr() for ARCH=ppc. Signed-off-by: Paul Mackerras --- diff --git a/include/asm-ppc/page.h b/include/asm-ppc/page.h index a70ba2ee55..0fb68a0b01 100644 --- a/include/asm-ppc/page.h +++ b/include/asm-ppc/page.h @@ -20,6 +20,7 @@ /* This must match what is in arch/ppc/Makefile */ #define PAGE_OFFSET CONFIG_KERNEL_START #define KERNELBASE PAGE_OFFSET +#define is_kernel_addr(x) ((x) >= PAGE_OFFSET) #ifndef __ASSEMBLY__