Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9cd67243 authored by Hirokazu Takata's avatar Hirokazu Takata
Browse files

m32r: use __stringify() macro in assembler.h



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: default avatarHirokazu Takata <takata@linux-m32r.org>
parent 9c88b06d
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -9,14 +9,15 @@
 * This file contains M32R architecture specific macro definitions.
 * This file contains M32R architecture specific macro definitions.
 */
 */


#include <linux/stringify.h>

#undef __STR


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


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