diff mbox series

include: events: remove spaces after '(' and before ')'

Message ID 7d6b48368594b2f815dff7c5375be638@208suo.com (mailing list archive)
State Rejected
Headers show
Series include: events: remove spaces after '(' and before ')' | expand

Commit Message

Ran Sun July 19, 2023, 3:21 a.m. UTC
Fix four occurrences of the checkpatch error:

ERROR: space prohibited after that open parenthesis '('
ERROR: space prohibited before that close parenthesis ')'

Signed-off-by: Ran Sun <sunran001@208suo.com>
---
  include/trace/events/nmi.h | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Steven Rostedt July 23, 2023, 3:12 p.m. UTC | #1
On Wed, 19 Jul 2023 11:21:03 +0800
sunran001@208suo.com wrote:

> Fix four occurrences of the checkpatch error:
> 
> ERROR: space prohibited after that open parenthesis '('
> ERROR: space prohibited before that close parenthesis ')'
> 
> Signed-off-by: Ran Sun <sunran001@208suo.com>
> ---
>   include/trace/events/nmi.h | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/include/trace/events/nmi.h b/include/trace/events/nmi.h
> index 18e0411398ba..99abd0bc8ebd 100644
> --- a/include/trace/events/nmi.h
> +++ b/include/trace/events/nmi.h
> @@ -15,9 +15,9 @@ TRACE_EVENT(nmi_handler,
>   	TP_ARGS(handler, delta_ns, handled),
> 
>   	TP_STRUCT__entry(
> -		__field(	void *,		handler	)
> -		__field(	s64,		delta_ns)
> -		__field(	int,		handled	)
> +		__field(void *,	handler)
> +		__field(s64, delta_ns)
> +		__field(int, handled)

NACK!

Which version looks better?

checkpatch.pl fails horribly on TRACE_EVENT macros. DON'T MODIFY THEM!

-- Steve

>   	),
> 
>   	TP_fast_assign(
diff mbox series

Patch

diff --git a/include/trace/events/nmi.h b/include/trace/events/nmi.h
index 18e0411398ba..99abd0bc8ebd 100644
--- a/include/trace/events/nmi.h
+++ b/include/trace/events/nmi.h
@@ -15,9 +15,9 @@  TRACE_EVENT(nmi_handler,
  	TP_ARGS(handler, delta_ns, handled),

  	TP_STRUCT__entry(
-		__field(	void *,		handler	)
-		__field(	s64,		delta_ns)
-		__field(	int,		handled	)
+		__field(void *,	handler)
+		__field(s64, delta_ns)
+		__field(int, handled)
  	),

  	TP_fast_assign(