[PATCH net-next] l2tp: Remove duplicate included header file trace.h

Thorsten Blum posted 1 patch 1 year, 5 months ago
net/l2tp/l2tp_core.c | 1 -
1 file changed, 1 deletion(-)
[PATCH net-next] l2tp: Remove duplicate included header file trace.h
Posted by Thorsten Blum 1 year, 5 months ago
Remove duplicate included header file trace.h and the following warning
reported by make includecheck:

  trace.h is included more than once

Compile-tested only.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
---
 net/l2tp/l2tp_core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c
index 88a34db265d8..e45e38be1e7c 100644
--- a/net/l2tp/l2tp_core.c
+++ b/net/l2tp/l2tp_core.c
@@ -61,7 +61,6 @@
 #include <linux/atomic.h>
 
 #include "l2tp_core.h"
-#include "trace.h"
 
 #define CREATE_TRACE_POINTS
 #include "trace.h"
-- 
2.45.2
Re: [PATCH net-next] l2tp: Remove duplicate included header file trace.h
Posted by Michal Kubiak 1 year, 5 months ago
On Wed, Jul 03, 2024 at 08:11:48AM +0200, Thorsten Blum wrote:
> Remove duplicate included header file trace.h and the following warning
> reported by make includecheck:
> 
>   trace.h is included more than once
> 
> Compile-tested only.
> 
> Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
> ---
>  net/l2tp/l2tp_core.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c
> index 88a34db265d8..e45e38be1e7c 100644
> --- a/net/l2tp/l2tp_core.c
> +++ b/net/l2tp/l2tp_core.c
> @@ -61,7 +61,6 @@
>  #include <linux/atomic.h>
>  
>  #include "l2tp_core.h"
> -#include "trace.h"
>  
>  #define CREATE_TRACE_POINTS
>  #include "trace.h"
> -- 
> 2.45.2
> 
> 

Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>