[lkml]   [2009]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH v2] arm: export "W" macro just for assembly code
    From: Alexey Dobriyan <>

    The W macro which got introduced in 0becb08 aka "Thumb-2: Add macros for
    the unified assembler syntax" clashes with the W function in
    crypto/cast6.c since commit 8b59278 aka "Thumb-2: Implement the unified
    arch/arm/lib functions" due to the following include path:
    |arch/arm/include/asm/unified.h <---

    This patch allows the usage of the new W macro only in assembly files
    since it is the place where it is used.

    [sebastian@breakpoint]: patch description
    Signed-off-by: Alexey Dobriyan <>
    Signed-off-by: Catalin Marinas <>
    Signed-off-by: Sebastian Andrzej Siewior <>
    Russel, I've added a new patch description for this patch since my
    rename edition was a little larger.

    arch/arm/include/asm/unified.h | 4 ++++
    1 files changed, 4 insertions(+), 0 deletions(-)

    diff --git a/arch/arm/include/asm/unified.h b/arch/arm/include/asm/unified.h
    index 073e85b..bc63116 100644
    --- a/arch/arm/include/asm/unified.h
    +++ b/arch/arm/include/asm/unified.h
    @@ -35,7 +35,9 @@

    #define ARM(x...)
    #define THUMB(x...) x
    +#ifdef __ASSEMBLY__
    #define W(instr) instr.w
    #define BSYM(sym) sym + 1

    #else /* !CONFIG_THUMB2_KERNEL */
    @@ -45,7 +47,9 @@

    #define ARM(x...) x
    #define THUMB(x...)
    +#ifdef __ASSEMBLY__
    #define W(instr) instr
    #define BSYM(sym) sym

    #endif /* CONFIG_THUMB2_KERNEL */

     \ /
      Last update: 2009-09-20 21:43    [W:0.043 / U:14.280 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site