]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
locking: locktorture: Do not include rwlock.h directly
authorWolfgang M. Reimer <linuxball@gmail.com>
Mon, 16 Sep 2019 14:54:04 +0000 (16:54 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Sat, 5 Oct 2019 18:50:24 +0000 (11:50 -0700)
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

index 8dd900247205b750c94971ed7485aeaf70ed44f5..99475a66c94f82f6e44e5a5bd1574409198ace5e 100644 (file)
@@ -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>