Re: [PATCH 6/7] nfp: Use spinlock_t instead of struct spinlock

2019-07-05 Thread David Miller
From: Sebastian Andrzej Siewior 
Date: Thu,  4 Jul 2019 17:38:02 +0200

> For spinlocks the type spinlock_t should be used instead of "struct
> spinlock".
> 
> Use spinlock_t for spinlock's definition.
> 
> Cc: Jakub Kicinski 
> Cc: "David S. Miller" 
> Cc: oss-driv...@netronome.com
> Cc: net...@vger.kernel.org
> Signed-off-by: Sebastian Andrzej Siewior 

Applied to net-next, thanks.


Re: [PATCH 6/7] nfp: Use spinlock_t instead of struct spinlock

2019-07-04 Thread Jakub Kicinski
On Thu,  4 Jul 2019 17:38:02 +0200, Sebastian Andrzej Siewior wrote:
> For spinlocks the type spinlock_t should be used instead of "struct
> spinlock".
>
> Use spinlock_t for spinlock's definition.
>
> Cc: Jakub Kicinski 

Acked-by: Jakub Kicinski 


> Cc: "David S. Miller" 
> Cc: oss-driv...@netronome.com
> Cc: net...@vger.kernel.org
> Signed-off-by: Sebastian Andrzej Siewior 
> ---
>  drivers/net/ethernet/netronome/nfp/nfp_net.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net.h 
> b/drivers/net/ethernet/netronome/nfp/nfp_net.h
> index df9aff2684ed0..4690363fc5421 100644
> --- a/drivers/net/ethernet/netronome/nfp/nfp_net.h
> +++ b/drivers/net/ethernet/netronome/nfp/nfp_net.h
> @@ -392,7 +392,7 @@ struct nfp_net_r_vector {
>   struct {
>   struct tasklet_struct tasklet;
>   struct sk_buff_head queue;
> - struct spinlock lock;
> + spinlock_t lock;
>   };
>   };
>


[PATCH 6/7] nfp: Use spinlock_t instead of struct spinlock

2019-07-04 Thread Sebastian Andrzej Siewior
For spinlocks the type spinlock_t should be used instead of "struct
spinlock".

Use spinlock_t for spinlock's definition.

Cc: Jakub Kicinski 
Cc: "David S. Miller" 
Cc: oss-driv...@netronome.com
Cc: net...@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior 
---
 drivers/net/ethernet/netronome/nfp/nfp_net.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net.h 
b/drivers/net/ethernet/netronome/nfp/nfp_net.h
index df9aff2684ed0..4690363fc5421 100644
--- a/drivers/net/ethernet/netronome/nfp/nfp_net.h
+++ b/drivers/net/ethernet/netronome/nfp/nfp_net.h
@@ -392,7 +392,7 @@ struct nfp_net_r_vector {
struct {
struct tasklet_struct tasklet;
struct sk_buff_head queue;
-   struct spinlock lock;
+   spinlock_t lock;
};
};
 
-- 
2.20.1