linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] ring-buffer: remove leading spaces before tabs
@ 2021-06-08  8:10 Zhen Lei
  2021-06-08 14:59 ` Steven Rostedt
  0 siblings, 1 reply; 3+ messages in thread
From: Zhen Lei @ 2021-06-08  8:10 UTC (permalink / raw)
  To: Steven Rostedt, Ingo Molnar, linux-kernel; +Cc: Zhen Lei

1) Run the following command to find and remove the leading spaces before
   tabs:
   find kernel/trace/ -type f | xargs sed -r -i 's/^[ ]+\t/\t/'
2) Manually check and correct if necessary

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
 kernel/trace/ring_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index 833ade3d0b00..a555258556c5 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -5887,7 +5887,7 @@ static __init int test_ringbuffer(void)
 		}
 
 		kthread_bind(rb_threads[cpu], cpu);
- 		wake_up_process(rb_threads[cpu]);
+		wake_up_process(rb_threads[cpu]);
 	}
 
 	/* Now create the rb hammer! */
-- 
2.25.1



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

* Re: [PATCH 1/1] ring-buffer: remove leading spaces before tabs
  2021-06-08  8:10 [PATCH 1/1] ring-buffer: remove leading spaces before tabs Zhen Lei
@ 2021-06-08 14:59 ` Steven Rostedt
  2021-06-09  3:06   ` Leizhen (ThunderTown)
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2021-06-08 14:59 UTC (permalink / raw)
  To: Zhen Lei; +Cc: Ingo Molnar, linux-kernel

On Tue, 8 Jun 2021 16:10:51 +0800
Zhen Lei <thunder.leizhen@huawei.com> wrote:

> 1) Run the following command to find and remove the leading spaces before
>    tabs:
>    find kernel/trace/ -type f | xargs sed -r -i 's/^[ ]+\t/\t/'
> 2) Manually check and correct if necessary
> 
> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

Sorry, but I do not accept whitespace changes. Clean ups like this is
only welcomed if they come along with actual changes to the code around
them. Otherwise, this just causes extra churn and unwelcomed work for
the maintainer.

-- Steve


> ---
>  kernel/trace/ring_buffer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
> index 833ade3d0b00..a555258556c5 100644
> --- a/kernel/trace/ring_buffer.c
> +++ b/kernel/trace/ring_buffer.c
> @@ -5887,7 +5887,7 @@ static __init int test_ringbuffer(void)
>  		}
>  
>  		kthread_bind(rb_threads[cpu], cpu);
> - 		wake_up_process(rb_threads[cpu]);
> +		wake_up_process(rb_threads[cpu]);
>  	}
>  
>  	/* Now create the rb hammer! */


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

* Re: [PATCH 1/1] ring-buffer: remove leading spaces before tabs
  2021-06-08 14:59 ` Steven Rostedt
@ 2021-06-09  3:06   ` Leizhen (ThunderTown)
  0 siblings, 0 replies; 3+ messages in thread
From: Leizhen (ThunderTown) @ 2021-06-09  3:06 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: Ingo Molnar, linux-kernel



On 2021/6/8 22:59, Steven Rostedt wrote:
> On Tue, 8 Jun 2021 16:10:51 +0800
> Zhen Lei <thunder.leizhen@huawei.com> wrote:
> 
>> 1) Run the following command to find and remove the leading spaces before
>>    tabs:
>>    find kernel/trace/ -type f | xargs sed -r -i 's/^[ ]+\t/\t/'
>> 2) Manually check and correct if necessary
>>
>> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
> 
> Sorry, but I do not accept whitespace changes. Clean ups like this is
> only welcomed if they come along with actual changes to the code around

It's the wrong way of thinking. It's like having mosquitoes in the house and
killing a mosquito only when you meet it. Mosquitoes will exist for a long
time, and not all mosquitoes will be killed. People who have been in the house
will always face being bitten unless they don't care.


> them. Otherwise, this just causes extra churn and unwelcomed work for
> the maintainer.

Yes, the changes are a little less. There is no owner for the whole kernel
module. So I had to take it apart. As a programmer, since I discovered it,
I had an instinctive drive to fix it. Even if it won't be accepted.

> 
> -- Steve
> 
> 
>> ---
>>  kernel/trace/ring_buffer.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
>> index 833ade3d0b00..a555258556c5 100644
>> --- a/kernel/trace/ring_buffer.c
>> +++ b/kernel/trace/ring_buffer.c
>> @@ -5887,7 +5887,7 @@ static __init int test_ringbuffer(void)
>>  		}
>>  
>>  		kthread_bind(rb_threads[cpu], cpu);
>> - 		wake_up_process(rb_threads[cpu]);
>> +		wake_up_process(rb_threads[cpu]);
>>  	}
>>  
>>  	/* Now create the rb hammer! */
> 
> 
> .
> 


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

end of thread, other threads:[~2021-06-09  3:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08  8:10 [PATCH 1/1] ring-buffer: remove leading spaces before tabs Zhen Lei
2021-06-08 14:59 ` Steven Rostedt
2021-06-09  3:06   ` Leizhen (ThunderTown)

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).