OSDN Git Service

net/mlx5e: Do not include rwlock.h directly
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 3 Jul 2020 16:44:32 +0000 (18:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jul 2020 22:28:51 +0000 (15:28 -0700)
rwlock.h should not be included directly. Instead linux/splinlock.h
should be included. Including it directly will break the RT build.

Fixes: 549c243e4e010 ("net/mlx5e: Extract neigh-specific code from en_rep.c to rep/neigh.c")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.c

index baa1624..c3d167f 100644 (file)
@@ -6,7 +6,6 @@
 #include <linux/rculist.h>
 #include <linux/rtnetlink.h>
 #include <linux/workqueue.h>
-#include <linux/rwlock.h>
 #include <linux/spinlock.h>
 #include <linux/notifier.h>
 #include <net/netevent.h>