]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: warn about memset with swapped arguments
authorDave Jones <davej@redhat.com>
Tue, 22 Mar 2011 23:34:44 +0000 (16:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Mar 2011 00:44:15 +0000 (17:44 -0700)
commit0a89d826cf8a855d339f3ced93753b79666cc7da
tree2226c4b1c86395078abfccdb54b17be93ea6e8ad
parentf7ecdebc84e4c323c1de9fa663d61915c3f44e88
checkpatch: warn about memset with swapped arguments

Because the second and third arguments of memset have the same type, it
turns out to be really easy to mix them up.

This bug comes up time after time, so checkpatch should really be checking
for it at patch submission time.

Signed-off-by: Dave Jones <davej@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl