public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [x86] is checkpatch.pl broken
@ 2007-12-25 17:07 Cyrill Gorcunov
  2007-12-25 23:47 ` H. Peter Anvin
  2007-12-25 23:48 ` H. Peter Anvin
  0 siblings, 2 replies; 12+ messages in thread
From: Cyrill Gorcunov @ 2007-12-25 17:07 UTC (permalink / raw)
  To: LKML; +Cc: Ingo Molnar

Hi list,

by doing cleanup of arch/x86/boot/*.[ch] i found that
checkpatch does ignore obvious things. For example,
run it over edd.c showed only one warning:

---
cyrill@cvg linux-2.6.git $ scripts/checkpatch.pl --file arch/x86/boot/edd.c 
WARNING: externs should be avoided in .c files
#45: FILE: x86/boot/edd.c:45:
+       extern char _end[];

total: 0 errors, 1 warnings, 167 lines checked

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
---

but on line 53 we have:

mbr_base = (buf_base+sector_size-1) & ~(sector_size-1);

so checkpatch should at least worn me about missed space
btw math operators. Am I wrong?


--
BTW, is there someone who is already involved in a such
cleanup to eliminate double effort?

			- Cyrill -


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

end of thread, other threads:[~2007-12-31  7:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-25 17:07 [x86] is checkpatch.pl broken Cyrill Gorcunov
2007-12-25 23:47 ` H. Peter Anvin
2007-12-25 23:48 ` H. Peter Anvin
2007-12-26 10:38   ` Cyrill Gorcunov
2007-12-26 17:44     ` H. Peter Anvin
2007-12-26 18:15       ` Cyrill Gorcunov
2007-12-30 17:22     ` Ingo Molnar
2007-12-30 18:26       ` Cyrill Gorcunov
2007-12-30 20:27         ` H. Peter Anvin
2007-12-31  7:46           ` Cyrill Gorcunov
2007-12-30 20:59       ` Cyrill Gorcunov
2007-12-30 21:08         ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox