From: Alexey Dobriyan Date: Fri, 18 Sep 2009 14:09:33 +0000 (+0100) Subject: Fix "W" macro in arch/arm/include/asm/unified.h X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=74109b8913277b1dbd072039d1e0a930d2834389;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git Fix "W" macro in arch/arm/include/asm/unified.h Please, fold into 0becb088501886f37ade38762c8eaaf4263572cc aka "Thumb-2: Add macros for the unified assembler syntax" otherwise: crypto/cast6.c:372:39: error: macro "W" passed 2 arguments, but takes just 1 Signed-off-by: Alexey Dobriyan Signed-off-by: Catalin Marinas --- diff --git a/arch/arm/include/asm/unified.h b/arch/arm/include/asm/unified.h index 073e85b9b96..bc631161e9c 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 +#endif #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 +#endif #define BSYM(sym) sym #endif /* CONFIG_THUMB2_KERNEL */