Re: [PATCH 24/29] sysctl: Replace root_list with links between sysctl_table_sets.

2 messages, 2 authors, 2012-01-31 · open the first message on its own page

Re: [PATCH 24/29] sysctl: Replace root_list with links between sysctl_table_sets.

From: Eric W. Biederman <hidden>
Date: 2012-01-31 02:11:40

Dave Jones [off-list ref] writes:
On Thu, Jan 26, 2012 at 08:52:00PM -0800, Eric W. Biederman wrote:

 > +	memset(set, sizeof(*set), 0);

checkpatch should warn you about this mistake.
Is there a way to tie checkpatch into git.  Perhaps into git commit?

Having something that would catch this before I embarrassed myself
certainly sounds nice.  However my overall impression of checkpatch
is that it catches newbie mistakes so unless it is trivial to run
checkpatch I don't expect I will run it because I don't expect to
tell me anything useful.

Eric

Re: [PATCH 24/29] sysctl: Replace root_list with links between sysctl_table_sets.

From: Joe Perches <joe@perches.com>
Date: 2012-01-31 02:13:27

On Mon, 2012-01-30 at 18:11 -0800, Eric W. Biederman wrote:
Is there a way to tie checkpatch into git.  Perhaps into git commit?
$ git log --format=email -p -1 $commit | \
  ./scripts/checkpatch.pl -

or maybe a front-end script prior to git commit

$ git diff --stat -p <paths> | \
  ./scripts.checkpatch.pl -
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help