linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix "W" macro in arch/arm/include/asm/unified.h
@ 2009-09-17  9:12 Catalin Marinas
  2009-09-18 19:34 ` Russell King - ARM Linux
  0 siblings, 1 reply; 5+ messages in thread
From: Catalin Marinas @ 2009-09-17  9:12 UTC (permalink / raw)
  To: linux-arm-kernel

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 */

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] Fix "W" macro in arch/arm/include/asm/unified.h
  2009-09-17  9:12 [PATCH] Fix "W" macro in arch/arm/include/asm/unified.h Catalin Marinas
@ 2009-09-18 19:34 ` Russell King - ARM Linux
  2009-09-20 19:40   ` [PATCH v2] arm: export "W" macro just for assembly code Sebastian Andrzej Siewior
  0 siblings, 1 reply; 5+ messages in thread
From: Russell King - ARM Linux @ 2009-09-18 19:34 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Sep 17, 2009 at 10:12:37AM +0100, Catalin Marinas wrote:
> From: Alexey Dobriyan <adobriyan@gmail.com>
> 
> Please, fold into 0becb088501886f37ade38762c8eaaf4263572cc
> aka "Thumb-2: Add macros for the unified assembler syntax"

Folding it into that commit is not possible; as such a better patch
description is desirable.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2] arm: export "W" macro just for assembly code
  2009-09-18 19:34 ` Russell King - ARM Linux
@ 2009-09-20 19:40   ` Sebastian Andrzej Siewior
  2009-09-21 11:41     ` Catalin Marinas
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Andrzej Siewior @ 2009-09-20 19:40 UTC (permalink / raw)
  To: linux-arm-kernel

From: Alexey Dobriyan <adobriyan@gmail.com>

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 <---
|arch/arm/include/asm/uaccess.h:20
|include/linux/uaccess.h:5
|include/linux/crypto.h:26
|crypto/cast6.c:23

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

[sebastian at breakpoint]: patch description
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
---
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
+#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 */

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2] arm: export "W" macro just for assembly code
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Catalin Marinas @ 2009-09-21 11:41 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, 2009-09-20 at 21:40 +0200, Sebastian Andrzej Siewior wrote:
> Russel, I've added a new patch description for this patch since my
> rename edition was a little larger.

I already added a patch with the modified description in my for-rmk
branch. I'm not sure Russell had time to pull it.

-- 
Catalin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2] arm: export "W" macro just for assembly code
  2009-09-21 11:41     ` Catalin Marinas
@ 2009-09-21 11:42       ` Russell King - ARM Linux
  0 siblings, 0 replies; 5+ messages in thread
From: Russell King - ARM Linux @ 2009-09-21 11:42 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Sep 21, 2009 at 12:41:28PM +0100, Catalin Marinas wrote:
> On Sun, 2009-09-20 at 21:40 +0200, Sebastian Andrzej Siewior wrote:
> > Russel, I've added a new patch description for this patch since my
> > rename edition was a little larger.
> 
> I already added a patch with the modified description in my for-rmk
> branch. I'm not sure Russell had time to pull it.

It got pulled before you modified it, so we're going to have to live
with it with its silly description now.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-09-21 11:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-17  9:12 [PATCH] Fix "W" macro in arch/arm/include/asm/unified.h Catalin Marinas
2009-09-18 19:34 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).