summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang M. Reimer <linuxball@gmail.com>2019-09-16 17:54:04 +0300
committerPaul E. McKenney <paulmck@kernel.org>2019-10-05 21:50:24 +0300
commit67d64918a163fd62cf3b668d69133b723c48ed96 (patch)
treec7958798f2af07cb1b7a305fa1da133f5c6e1225
parentfbbd5e358cecb5fa490550ace66463517a7577e8 (diff)
downloadlinux-67d64918a163fd62cf3b668d69133b723c48ed96.tar.xz
locking: locktorture: Do not include rwlock.h directly
Including rwlock.h directly will cause kernel builds to fail if CONFIG_PREEMPT_RT is defined. The correct header file (rwlock_rt.h OR rwlock.h) will be included by spinlock.h which is included by locktorture.c anyway. Remove the include of linux/rwlock.h. Signed-off-by: Wolfgang M. Reimer <linuxball@gmail.com> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Acked-by: Davidlohr Bueso <dbueso@suse.de> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rw-r--r--kernel/locking/locktorture.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/locking/locktorture.c b/kernel/locking/locktorture.c
index 8dd900247205..99475a66c94f 100644
--- a/kernel/locking/locktorture.c
+++ b/kernel/locking/locktorture.c
@@ -16,7 +16,6 @@
#include <linux/kthread.h>
#include <linux/sched/rt.h>
#include <linux/spinlock.h>
-#include <linux/rwlock.h>
#include <linux/mutex.h>
#include <linux/rwsem.h>
#include <linux/smp.h>