Re: [PATCH] locking: remove duplicate include of percpu-rwsem.h

From: Paul E. McKenney
Date: Sat Nov 07 2020 - 14:30:31 EST


On Sat, Nov 07, 2020 at 04:24:03PM +0800, Wang Qing wrote:
> Remove duplicate header include which is unnecessary.
>
> Signed-off-by: Wang Qing <wangqing@xxxxxxxx>

Queued for further review and testing, thank you!

I had to apply against v5.10-rc1 and then cherry-pick the result, which
did work fine. However, in the future, could you please post patches
against the -rcu tree's "dev" branch?

Please see https://kernel.org/pub/linux/kernel/people/paulmck/rcutodo.html
for more information.

And as always, I could not resist a bit of wordsmithing, so please see
below and let me know if I messed anything up.

Thanx, Paul

------------------------------------------------------------------------

commit ad6dcb7c338ad322ddeeb75594bc77dcdbeb43de
Author: Wang Qing <wangqing@xxxxxxxx>
Date: Sat Nov 7 16:24:03 2020 +0800

locking: Remove duplicate include of percpu-rwsem.h

This commit removes an unnecessary #include.

Signed-off-by: Wang Qing <wangqing@xxxxxxxx>
Signed-off-by: Paul E. McKenney <paulmck@xxxxxxxxxx>

diff --git a/kernel/locking/locktorture.c b/kernel/locking/locktorture.c
index fd838ce..0ab94e1 100644
--- a/kernel/locking/locktorture.c
+++ b/kernel/locking/locktorture.c
@@ -27,7 +27,6 @@
#include <linux/moduleparam.h>
#include <linux/delay.h>
#include <linux/slab.h>
-#include <linux/percpu-rwsem.h>
#include <linux/torture.h>
#include <linux/reboot.h>