Re: checkpatch as a tool (was Re: [RFC][PATCH] SCHED_EDF scheduling class)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Walker
Date: Wednesday, September 23, 2009 - 7:43 am

On Wed, 2009-09-23 at 14:22 +0200, Ingo Molnar wrote:

I think short term you might be right, that it is a nuisance to deal
with these issues.. However, these are real code comments which is what
this list is designed for.. Long term I don't think I will be sending
many of these emails at all, in fact I've only been doing this 3 weeks
and I can already see a drop off in the number of errors that I'm
finding.. It's like advertising, as soon as people start seeing a lot of
checkpatch related emails, they start to remember to use the tool.

Not to mention that automated code review (in mass) is useful .. Our
eyes can miss things, and having a massively used tool that checks for
all the common problems that we encounter is a good thing.. For
instance, checkpatch already found a locked semaphore, and a mutex type
semaphore in the "Target_Core_Mod ConfigFS infrastructure", which I'm
sure no one would want to enter the kernel, but had been missed. It also
found one real code defect, 

http://lkml.indiana.edu/hypermail/linux/kernel/0909.1/00129.html

The more we use the tool the better the tool becomes, and the more real
problems can be caught prior to code inclusion ..

I could have a higher threshold for when these errors become note
worthy, and I've been struggling with that since I started doing this..
I don't think not commenting at all would be a good thing..

Daniel

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][PATCH] SCHED_EDF scheduling class, Raistlin, (Tue Sep 22, 3:30 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Claudio Scordino, (Tue Sep 22, 4:58 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Peter Zijlstra, (Tue Sep 22, 5:38 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Daniel Walker, (Tue Sep 22, 6:24 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Raistlin, (Tue Sep 22, 7:01 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Daniel Walker, (Tue Sep 22, 7:02 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Peter Zijlstra, (Tue Sep 22, 9:38 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Peter Zijlstra, (Tue Sep 22, 9:42 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Ingo Molnar, (Tue Sep 22, 12:11 pm)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Linus Walleij, (Tue Sep 22, 1:55 pm)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Jonathan Corbet, (Tue Sep 22, 4:39 pm)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Daniel Walker, (Tue Sep 22, 4:55 pm)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Jonathan Corbet, (Tue Sep 22, 5:06 pm)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Daniel Walker, (Tue Sep 22, 5:40 pm)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Raistlin, (Wed Sep 23, 12:03 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Avi Kivity, (Wed Sep 23, 4:46 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Ingo Molnar, (Wed Sep 23, 5:25 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Linus Walleij, (Wed Sep 23, 5:33 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Linus Walleij, (Wed Sep 23, 5:50 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Raistlin, (Wed Sep 23, 6:00 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Claudio Scordino, (Wed Sep 23, 6:22 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Raistlin, (Wed Sep 23, 6:30 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Linus Walleij, (Wed Sep 23, 7:08 am)
Re: checkpatch as a tool (was Re: [RFC][PATCH] SCHED_EDF s ..., Daniel Walker, (Wed Sep 23, 7:43 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Raistlin, (Wed Sep 23, 7:45 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Daniel Walker, (Wed Sep 23, 7:50 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Avi Kivity, (Wed Sep 23, 7:58 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Daniel Walker, (Wed Sep 23, 8:08 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Avi Kivity, (Wed Sep 23, 8:12 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Daniel Walker, (Wed Sep 23, 8:24 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Steven Rostedt, (Wed Sep 23, 2:39 pm)
Re: [RFC][PATCH] SCHED_EDF scheduling class, GeunSik Lim, (Wed Sep 23, 5:34 pm)
Re: [RFC][PATCH] SCHED_EDF scheduling class, GeunSik Lim, (Wed Sep 23, 5:58 pm)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Raistlin, (Wed Sep 23, 11:08 pm)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Claudio Scordino, (Thu Sep 24, 2:11 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Claudio Scordino, (Thu Sep 24, 9:08 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, roel kluin, (Tue Sep 29, 11:15 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Pavel Machek, (Wed Sep 30, 5:05 am)
Re: [RFC][PATCH] SCHED_EDF scheduling class, Raistlin, (Wed Sep 30, 8:59 am)