about summary refs log tree commit diff
path: root/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/pthread_arch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/pthread_arch.h b/arch/arm/pthread_arch.h
index 7ab90580..5cbb209e 100644
--- a/arch/arm/pthread_arch.h
+++ b/arch/arm/pthread_arch.h
@@ -1,7 +1,7 @@
 #if ((__ARM_ARCH_6K__ || __ARM_ARCH_6ZK__) && !__thumb__) \
  || __ARM_ARCH_7A__ || __ARM_ARCH_7R__ || __ARM_ARCH >= 7
 
-static inline __attribute__((const)) pthread_t __pthread_self()
+static inline pthread_t __pthread_self()
 {
 	char *p;
 	__asm__( "mrc p15,0,%0,c13,c0,3" : "=r"(p) );
@@ -10,7 +10,7 @@ static inline __attribute__((const)) pthread_t __pthread_self()
 
 #else
 
-static inline __attribute__((const)) pthread_t __pthread_self()
+static inline pthread_t __pthread_self()
 {
 #ifdef __clang__
 	char *p;