[PATCH] arm: Use RTEMS_XCONCAT()

Sebastian Huber sebastian.huber at embedded-brains.de
Wed May 24 13:02:12 UTC 2023


Prefer macros with a proper namespace.
---
 cpukit/score/cpu/arm/include/rtems/asm.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/cpukit/score/cpu/arm/include/rtems/asm.h b/cpukit/score/cpu/arm/include/rtems/asm.h
index 79892aae0c..9f676e40ab 100644
--- a/cpukit/score/cpu/arm/include/rtems/asm.h
+++ b/cpukit/score/cpu/arm/include/rtems/asm.h
@@ -89,15 +89,13 @@
 #define __REGISTER_PREFIX__
 #endif
 
-#include <rtems/concat.h>
-
 /* Use the right prefix for global labels.  */
 
-#define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
+#define SYM(x) RTEMS_XCONCAT(__USER_LABEL_PREFIX__, x)
 
 /* Use the right prefix for registers.  */
 
-#define REG(x) CONCAT1 (__REGISTER_PREFIX__, x)
+#define REG(x) RTEMS_XCONCAT(__REGISTER_PREFIX__, x)
 
 /*
  *  define macros for all of the registers on this CPU
-- 
2.35.3



More information about the devel mailing list