Skip to content

Commit

Permalink
m32r: use __stringify() macro in assembler.h
Browse files Browse the repository at this point in the history
Replace #x with __stringify(x).
Also, #ifndef __STR is removed and undefine __STR macro at the beginning.

The __STR() macro is still remained, because the assembler.h might be
included from assembly codes as well as C codes.

Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
  • Loading branch information
Hirokazu Takata committed May 2, 2009
1 parent 9c88b06 commit 9cd6724
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arch/m32r/include/asm/assembler.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
* This file contains M32R architecture specific macro definitions.
*/

#include <linux/stringify.h>

#undef __STR

#ifndef __STR
#ifdef __ASSEMBLY__
#define __STR(x) x
#else
#define __STR(x) #x
#define __STR(x) __stringify(x)
#endif
#endif /* __STR */

#ifdef CONFIG_SMP
#define M32R_LOCK __STR(lock)
Expand Down

0 comments on commit 9cd6724

Please sign in to comment.