[x86] is checkpatch.pl broken

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LKML <linux-kernel@...>
Cc: Ingo Molnar <mingo@...>
Date: Tuesday, December 25, 2007 - 1:07 pm

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 -

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

Messages in current thread:
[x86] is checkpatch.pl broken, Cyrill Gorcunov, (Tue Dec 25, 1:07 pm)
Re: [x86] is checkpatch.pl broken, H. Peter Anvin, (Tue Dec 25, 7:48 pm)
Re: [x86] is checkpatch.pl broken, Cyrill Gorcunov, (Wed Dec 26, 6:38 am)
Re: [x86] is checkpatch.pl broken, Ingo Molnar, (Sun Dec 30, 1:22 pm)
Re: [x86] is checkpatch.pl broken, Cyrill Gorcunov, (Sun Dec 30, 4:59 pm)
Re: [x86] is checkpatch.pl broken, Ingo Molnar, (Sun Dec 30, 5:08 pm)
Re: [x86] is checkpatch.pl broken, Cyrill Gorcunov, (Sun Dec 30, 2:26 pm)
Re: [x86] is checkpatch.pl broken, H. Peter Anvin, (Sun Dec 30, 4:27 pm)
Re: [x86] is checkpatch.pl broken, Cyrill Gorcunov, (Mon Dec 31, 3:46 am)
Re: [x86] is checkpatch.pl broken, H. Peter Anvin, (Wed Dec 26, 1:44 pm)
Re: [x86] is checkpatch.pl broken, Cyrill Gorcunov, (Wed Dec 26, 2:15 pm)
Re: [x86] is checkpatch.pl broken, H. Peter Anvin, (Tue Dec 25, 7:47 pm)