diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-02-03 12:22:18 +0100 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-04-20 02:40:06 +0200 |
commit | e573ebb0326f2f4a29ee2bd143bfc88ab0332926 (patch) | |
tree | 26d041a57b3d25ea612d52559d201d0fe76e43c8 | |
parent | Generate raw keyboard codes for AVR32 architecture (diff) | |
download | linux-e573ebb0326f2f4a29ee2bd143bfc88ab0332926.tar.xz linux-e573ebb0326f2f4a29ee2bd143bfc88ab0332926.zip |
avr32: cleanup - use _AC macro to define PAGE_SIZE
PAGE_SIZE is used both from assembly and C code. We want to have type
specifiers when using it from C, but this will make the assembler
confused, so we need to make it conditional.
This is exactly what the _AC macro is for, so using it allows us to
get rid of a few lines of cpp noise.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
-rw-r--r-- | include/asm-avr32/page.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/asm-avr32/page.h b/include/asm-avr32/page.h index 5582968feee8..cbbc5ca9728b 100644 --- a/include/asm-avr32/page.h +++ b/include/asm-avr32/page.h @@ -8,13 +8,11 @@ #ifndef __ASM_AVR32_PAGE_H #define __ASM_AVR32_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)) #define PTE_MASK PAGE_MASK |