lkml.org 
[lkml]   [2009]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 1/6] m32r: make PAGE_SIZE available to assembly.
    Date
    page.h includes ifndef __ASSEMBLY__ guards, but PAGE_SIZE is defined
    using "1UL", which the assembler does not support. Use the _AC macro
    from const.h to make it available to assembly (and linker scripts).

    Signed-off-by: Tim Abbott <tabbott@ksplice.com>
    Cc: Hirokazu Takata <takata@linux-m32r.org>
    ---
    arch/m32r/include/asm/page.h | 4 +++-
    1 files changed, 3 insertions(+), 1 deletions(-)

    diff --git a/arch/m32r/include/asm/page.h b/arch/m32r/include/asm/page.h
    index 11777f7..725ede8 100644
    --- a/arch/m32r/include/asm/page.h
    +++ b/arch/m32r/include/asm/page.h
    @@ -1,9 +1,11 @@
    #ifndef _ASM_M32R_PAGE_H
    #define _ASM_M32R_PAGE_H

    +#include <linux/const.h>
    +
    /* PAGE_SHIFT determines the page size */
    #define PAGE_SHIFT 12
    -#define PAGE_SIZE (1UL << PAGE_SHIFT)
    +#define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
    #define PAGE_MASK (~(PAGE_SIZE-1))

    #ifndef __ASSEMBLY__
    --
    1.6.3.3


    \
     
     \ /
      Last update: 2009-09-18 22:35    [W:3.927 / U:0.036 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site