[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9c21eeae0703060958o1c54c3a9x8645d106c4798266@mail.gmail.com>
Date: Tue, 6 Mar 2007 09:58:30 -0800
From: "David Brown" <dmlb2000@...il.com>
To: "David M. Lloyd" <dmlloyd@...rg.com>
Cc: "Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] remove availability for PAGE_SIZE and friends (i386)
Pfft, did I seriously screw that up... (/me failed)
On 3/6/07, David M. Lloyd <dmlloyd@...rg.com> wrote:
> On Tue, 2007-03-06 at 08:31 -0800, David Brown wrote:
> > +#define __KERNEL__
>
> That's a #define, not an #ifdef...
>
> - DML
>
>
diff --git a/include/asm-i386/page.h b/include/asm-i386/page.h
index 7b19f45..a9eedd0 100644
--- a/include/asm-i386/page.h
+++ b/include/asm-i386/page.h
@@ -1,6 +1,8 @@
#ifndef _I386_PAGE_H
#define _I386_PAGE_H
+#ifdef __KERNEL__
+
/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT 12
#define PAGE_SIZE (1UL << PAGE_SHIFT)
@@ -9,7 +11,6 @@
#define LARGE_PAGE_MASK (~(LARGE_PAGE_SIZE-1))
#define LARGE_PAGE_SIZE (1UL << PMD_SHIFT)
-#ifdef __KERNEL__
#ifndef __ASSEMBLY__
Revised patch.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists