Skip to content

Commit 67d6491

Browse files
linuxballpaulmckrcu
authored andcommitted
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 <[email protected]> Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Acked-by: Davidlohr Bueso <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent fbbd5e3 commit 67d6491

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/locking/locktorture.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <linux/kthread.h>
1717
#include <linux/sched/rt.h>
1818
#include <linux/spinlock.h>
19-
#include <linux/rwlock.h>
2019
#include <linux/mutex.h>
2120
#include <linux/rwsem.h>
2221
#include <linux/smp.h>

0 commit comments

Comments
 (0)