From: Catalin Marinas <catalin.marinas@arm.com>
To: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>,
Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Alexey Dobriyan <adobriyan@gmail.com>
Subject: [PATCH] Fix "W" macro in arch/arm/include/asm/unified.h
Date: Thu, 17 Sep 2009 10:12:37 +0100 [thread overview]
Message-ID: <20090917091237.8258.29171.stgit@pc1117.cambridge.arm.com> (raw)
From: Alexey Dobriyan <adobriyan@gmail.com>
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 <adobriyan@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
---
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
+#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 */
next reply other threads:[~2009-09-17 9:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-17 9:12 Catalin Marinas [this message]
2009-09-18 19:34 ` [PATCH] Fix "W" macro in arch/arm/include/asm/unified.h Russell King - ARM Linux
2009-09-20 19:40 ` [PATCH v2] arm: export "W" macro just for assembly code Sebastian Andrzej Siewior
2009-09-21 11:41 ` Catalin Marinas
2009-09-21 11:42 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090917091237.8258.29171.stgit@pc1117.cambridge.arm.com \
--to=catalin.marinas@arm.com \
--cc=adobriyan@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+kernel@arm.linux.org.uk \
--cc=sebastian@breakpoint.cc \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox