lkml.org 
[lkml]   [2008]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 2/4] BLACKFIN: cleanup - use _AC macro to define PAGE_SIZE
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---

page.h | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)

Index: linux-2.6.git/include/asm-blackfin/page.h
===================================================================
--- linux-2.6.git.orig/include/asm-blackfin/page.h 2008-02-03 13:39:38.000000000 +0300
+++ linux-2.6.git/include/asm-blackfin/page.h 2008-02-03 13:42:10.000000000 +0300
@@ -1,14 +1,12 @@
#ifndef _BLACKFIN_PAGE_H
#define _BLACKFIN_PAGE_H

+#include <linux/const.h>
+
/* PAGE_SHIFT determines the page size */

#define PAGE_SHIFT 12
-#ifdef __ASSEMBLY__
-#define PAGE_SIZE (1 << PAGE_SHIFT)
-#else
-#define PAGE_SIZE (1UL << PAGE_SHIFT)
-#endif
+#define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
#define PAGE_MASK (~(PAGE_SIZE-1))

#ifdef __KERNEL__
--


\
 
 \ /
  Last update: 2008-02-03 12:35    [W:0.023 / U:0.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site