linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net/mlx5e: Do not include rwlock.h directly
@ 2020-07-03 16:44 Sebastian Andrzej Siewior
  2020-07-05 13:19 ` Leon Romanovsky
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2020-07-03 16:44 UTC (permalink / raw)
  To: netdev, linux-rdma
  Cc: Saeed Mahameed, Leon Romanovsky, David S. Miller, Jakub Kicinski, tglx

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>
---
It would be nice if this could get into v5.8 since this include has been
added in v5.8-rc1.

 drivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.c b/drivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.c
index baa162432e75e..c3d167fa944c7 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.c
@@ -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>
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net] net/mlx5e: Do not include rwlock.h directly
  2020-07-03 16:44 [PATCH net] net/mlx5e: Do not include rwlock.h directly Sebastian Andrzej Siewior
@ 2020-07-05 13:19 ` Leon Romanovsky
  2020-07-07  3:32 ` Saeed Mahameed
  2020-07-07 22:29 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Leon Romanovsky @ 2020-07-05 13:19 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior
  Cc: netdev, linux-rdma, Saeed Mahameed, David S. Miller,
	Jakub Kicinski, tglx

On Fri, Jul 03, 2020 at 06:44:32PM +0200, Sebastian Andrzej Siewior wrote:
> 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>
> ---
> It would be nice if this could get into v5.8 since this include has been
> added in v5.8-rc1.
>
>  drivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.c | 1 -
>  1 file changed, 1 deletion(-)
>

Thanks,
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net] net/mlx5e: Do not include rwlock.h directly
  2020-07-03 16:44 [PATCH net] net/mlx5e: Do not include rwlock.h directly Sebastian Andrzej Siewior
  2020-07-05 13:19 ` Leon Romanovsky
@ 2020-07-07  3:32 ` Saeed Mahameed
  2020-07-07 22:29 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: Saeed Mahameed @ 2020-07-07  3:32 UTC (permalink / raw)
  To: netdev, bigeasy, linux-rdma; +Cc: tglx, davem, kuba, leon

On Fri, 2020-07-03 at 18:44 +0200, Sebastian Andrzej Siewior wrote:
> 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>
> ---
> It would be nice if this could get into v5.8 since this include has
> been
> added in v5.8-rc1.
> 

I don't mind applying this to net.

Acked-by: Saeed Mahameed <saeedm@mellanox.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net] net/mlx5e: Do not include rwlock.h directly
  2020-07-03 16:44 [PATCH net] net/mlx5e: Do not include rwlock.h directly Sebastian Andrzej Siewior
  2020-07-05 13:19 ` Leon Romanovsky
  2020-07-07  3:32 ` Saeed Mahameed
@ 2020-07-07 22:29 ` David Miller
  2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2020-07-07 22:29 UTC (permalink / raw)
  To: bigeasy; +Cc: netdev, linux-rdma, saeedm, leon, kuba, tglx

From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Fri, 3 Jul 2020 18:44:32 +0200

> 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>
> ---
> It would be nice if this could get into v5.8 since this include has been
> added in v5.8-rc1.

Applied, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-07 22:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-03 16:44 [PATCH net] net/mlx5e: Do not include rwlock.h directly Sebastian Andrzej Siewior
2020-07-05 13:19 ` Leon Romanovsky
2020-07-07  3:32 ` Saeed Mahameed
2020-07-07 22:29 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).