From 67d64918a163fd62cf3b668d69133b723c48ed96 Mon Sep 17 00:00:00 2001
From: "Wolfgang M. Reimer" <linuxball@gmail.com>
Date: Mon, 16 Sep 2019 16:54:04 +0200
Subject: 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>
---
 kernel/locking/locktorture.c | 1 -
 1 file changed, 1 deletion(-)

(limited to 'kernel/locking/locktorture.c')

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>
-- 
cgit v1.2.3-58-ga151