diff options
author | Wolfgang M. Reimer <linuxball@gmail.com> | 2019-09-16 16:54:04 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2019-10-05 20:50:24 +0200 |
commit | 67d64918a163fd62cf3b668d69133b723c48ed96 (patch) | |
tree | c7958798f2af07cb1b7a305fa1da133f5c6e1225 /kernel/locking | |
parent | rcutorture: Make in-kernel-loop testing more brutal (diff) | |
download | linux-67d64918a163fd62cf3b668d69133b723c48ed96.tar.xz linux-67d64918a163fd62cf3b668d69133b723c48ed96.zip |
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>
Diffstat (limited to 'kernel/locking')
-rw-r--r-- | kernel/locking/locktorture.c | 1 |
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> |