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 4/4] SPARC: cleanup - use _AC macro to define PAGE_SIZE
    Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
    ---

    page.h | 11 ++++-------
    1 file changed, 4 insertions(+), 7 deletions(-)

    Index: linux-2.6.git/include/asm-sparc/page.h
    ===================================================================
    --- linux-2.6.git.orig/include/asm-sparc/page.h 2008-01-21 19:35:29.000000000 +0300
    +++ linux-2.6.git/include/asm-sparc/page.h 2008-02-03 14:02:48.000000000 +0300
    @@ -10,18 +10,15 @@

    #ifdef __KERNEL__

    +#include <linux/const.h>
    +
    #ifdef CONFIG_SUN4
    #define PAGE_SHIFT 13
    #else
    #define PAGE_SHIFT 12
    #endif
    -#ifndef __ASSEMBLY__
    -/* I have my suspicions... -DaveM */
    -#define PAGE_SIZE (1UL << PAGE_SHIFT)
    -#else
    -#define PAGE_SIZE (1 << PAGE_SHIFT)
    -#endif
    -#define PAGE_MASK (~(PAGE_SIZE-1))
    +#define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
    +#define PAGE_MASK (~(PAGE_SIZE-1))

    #include <asm/btfixup.h>

    --


    \
     
     \ /
      Last update: 2008-02-03 12:37    [W:0.024 / U:0.644 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site