Skip to contentSkip to conversation

locking/selftest: remove unused macros

PATCH New Alex Shi 1 participant 1 message Jan 21, 2020

Subsystems (2)
lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 locking/selftest: remove unused macros

WLU is never used. and DO_TESTCASE_6_SUCCESS isn't used from commit cfb6133399a4 ("locking/selftest: Remove the bad unlock ordering test")

So better to remove them.

Cc Peter Zijlstra <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Will Deacon <[email protected]>
---
 lib/locking-selftest.c | 12 ------------
 1 file changed, 12 deletions(-)
lib/locking-selftest.c +0 -12
index 14f44f59e733..6b0f55581485 100644
@@ -216,7 +216,6 @@ static void init_shared_classes(void)
 
 #define WL(x)			write_lock(&rwlock_##x)
 #define WU(x)			write_unlock(&rwlock_##x)
-#define WLU(x)			WL(x); WU(x)
 
 #define RL(x)			read_lock(&rwlock_##x)
 #define RU(x)			read_unlock(&rwlock_##x)
@@ -1224,17 +1223,6 @@ static inline void print_testname(const char *testname)
 	dotest_rt(name##_rtmutex, FAILURE, LOCKTYPE_RTMUTEX);	\
 	pr_cont("\n");
 
-#define DO_TESTCASE_6_SUCCESS(desc, name)			\
-	print_testname(desc);					\
-	dotest(name##_spin, SUCCESS, LOCKTYPE_SPIN);		\
-	dotest(name##_wlock, SUCCESS, LOCKTYPE_RWLOCK);		\
-	dotest(name##_rlock, SUCCESS, LOCKTYPE_RWLOCK);		\
-	dotest(name##_mutex, SUCCESS, LOCKTYPE_MUTEX);		\
-	dotest(name##_wsem, SUCCESS, LOCKTYPE_RWSEM);		\
-	dotest(name##_rsem, SUCCESS, LOCKTYPE_RWSEM);		\
-	dotest_rt(name##_rtmutex, SUCCESS, LOCKTYPE_RTMUTEX);	\
-	pr_cont("\n");
-
 /*
  * 'read' variant: rlocks must not trigger.
  */
Signature · 1 line
1.8.3.1