Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Hirokazu Takata <takata@linux-m32r.org>

+4 -3
+4 -3
arch/m32r/include/asm/assembler.h
··· 9 9 * This file contains M32R architecture specific macro definitions. 10 10 */ 11 11 12 + #include <linux/stringify.h> 12 13 13 - #ifndef __STR 14 + #undef __STR 15 + 14 16 #ifdef __ASSEMBLY__ 15 17 #define __STR(x) x 16 18 #else 17 - #define __STR(x) #x 19 + #define __STR(x) __stringify(x) 18 20 #endif 19 - #endif /* __STR */ 20 21 21 22 #ifdef CONFIG_SMP 22 23 #define M32R_LOCK __STR(lock)