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

Remove tas()

tas() has no users, so get rid of it.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: <linux-arch@vger.kernel.org>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Jeff Dike and committed by
Linus Torvalds
5dc12dde c343c14a

-38
-3
include/asm-alpha/system.h
··· 548 548 sizeof(*(ptr))); \ 549 549 }) 550 550 551 - #define tas(ptr) (xchg((ptr),1)) 552 - 553 - 554 551 /* 555 552 * Atomic compare and exchange. Compare OLD with MEM, if identical, 556 553 * store NEW in MEM. Return the initial value in MEM. Success is
-2
include/asm-arm/system.h
··· 103 103 #define xchg(ptr,x) \ 104 104 ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 105 105 106 - #define tas(ptr) (xchg((ptr),1)) 107 - 108 106 extern asmlinkage void __backtrace(void); 109 107 extern asmlinkage void c_backtrace(unsigned long fp, int pmode); 110 108
-2
include/asm-arm26/system.h
··· 52 52 #define xchg(ptr,x) \ 53 53 ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 54 54 55 - #define tas(ptr) (xchg((ptr),1)) 56 - 57 55 extern asmlinkage void __backtrace(void); 58 56 59 57 #define set_cr(x) \
-1
include/asm-blackfin/system.h
··· 138 138 #endif 139 139 140 140 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 141 - #define tas(ptr) ((void)xchg((ptr),1)) 142 141 143 142 struct __xchg_dummy { 144 143 unsigned long a[100];
-1
include/asm-h8300/system.h
··· 98 98 #endif 99 99 100 100 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 101 - #define tas(ptr) (xchg((ptr),1)) 102 101 103 102 struct __xchg_dummy { unsigned long a[100]; }; 104 103 #define __xg(x) ((volatile struct __xchg_dummy *)(x))
-2
include/asm-i386/system.h
··· 197 197 198 198 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr)))) 199 199 200 - #define tas(ptr) (xchg((ptr),1)) 201 - 202 200 struct __xchg_dummy { unsigned long a[100]; }; 203 201 #define __xg(x) ((struct __xchg_dummy *)(x)) 204 202
-2
include/asm-m32r/system.h
··· 122 122 #define xchg(ptr,x) \ 123 123 ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 124 124 125 - #define tas(ptr) (xchg((ptr),1)) 126 - 127 125 #ifdef CONFIG_SMP 128 126 extern void __xchg_called_with_bad_pointer(void); 129 127 #endif
-1
include/asm-m68k/system.h
··· 88 88 89 89 90 90 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 91 - #define tas(ptr) (xchg((ptr),1)) 92 91 93 92 struct __xchg_dummy { unsigned long a[100]; }; 94 93 #define __xg(x) ((volatile struct __xchg_dummy *)(x))
-1
include/asm-m68knommu/system.h
··· 120 120 #endif 121 121 122 122 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 123 - #define tas(ptr) (xchg((ptr),1)) 124 123 125 124 struct __xchg_dummy { unsigned long a[100]; }; 126 125 #define __xg(x) ((volatile struct __xchg_dummy *)(x))
-1
include/asm-mips/system.h
··· 201 201 } 202 202 203 203 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 204 - #define tas(ptr) (xchg((ptr),1)) 205 204 206 205 #define __HAVE_ARCH_CMPXCHG 1 207 206
-2
include/asm-powerpc/system.h
··· 335 335 (unsigned long)_x_, sizeof(*(ptr))); \ 336 336 }) 337 337 338 - #define tas(ptr) (xchg((ptr),1)) 339 - 340 338 /* 341 339 * Compare and exchange - if *p == old, set it to new, 342 340 * and return the old value of *p.
-1
include/asm-ppc/system.h
··· 169 169 extern void __xchg_called_with_bad_pointer(void); 170 170 171 171 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 172 - #define tas(ptr) (xchg((ptr),1)) 173 172 174 173 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size) 175 174 {
-10
include/asm-sh/system.h
··· 82 82 } 83 83 #endif 84 84 85 - static inline unsigned long tas(volatile int *m) 86 - { 87 - unsigned long retval; 88 - 89 - __asm__ __volatile__ ("tas.b @%1\n\t" 90 - "movt %0" 91 - : "=r" (retval): "r" (m): "t", "memory"); 92 - return retval; 93 - } 94 - 95 85 /* 96 86 * A brief note on ctrl_barrier(), the control register write barrier. 97 87 *
-2
include/asm-sh64/system.h
··· 43 43 44 44 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 45 45 46 - #define tas(ptr) (xchg((ptr), 1)) 47 - 48 46 extern void __xchg_called_with_bad_pointer(void); 49 47 50 48 #define mb() __asm__ __volatile__ ("synco": : :"memory")
-1
include/asm-sparc/system.h
··· 241 241 } 242 242 243 243 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 244 - #define tas(ptr) (xchg((ptr),1)) 245 244 246 245 extern void __xchg_called_with_bad_pointer(void); 247 246
-1
include/asm-sparc64/system.h
··· 253 253 } 254 254 255 255 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 256 - #define tas(ptr) (xchg((ptr),1)) 257 256 258 257 extern void __xchg_called_with_bad_pointer(void); 259 258
-1
include/asm-v850/system.h
··· 76 76 77 77 #define xchg(ptr, with) \ 78 78 ((__typeof__ (*(ptr)))__xchg ((unsigned long)(with), (ptr), sizeof (*(ptr)))) 79 - #define tas(ptr) (xchg ((ptr), 1)) 80 79 81 80 static inline unsigned long __xchg (unsigned long with, 82 81 __volatile__ void *ptr, int size)
-2
include/asm-x86_64/system.h
··· 126 126 127 127 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr)))) 128 128 129 - #define tas(ptr) (xchg((ptr),1)) 130 - 131 129 #define __xg(x) ((volatile long *)(x)) 132 130 133 131 static inline void set_64bit(volatile unsigned long *ptr, unsigned long val)
-2
include/asm-xtensa/system.h
··· 183 183 return tmp; 184 184 } 185 185 186 - #define tas(ptr) (xchg((ptr),1)) 187 - 188 186 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 189 187 190 188 /*