Messages in this thread | | | Date | Mon, 28 Jan 2008 11:27:41 +0000 | From | Andy Whitcroft <> | Subject | Re: [PATCH] Add iSCSI iBFT support (v0.4.5) |
| |
On Sat, Jan 26, 2008 at 10:01:23PM -0800, Andrew Morton wrote:
> > int __initdata user_defined_memmap = 0; > > checkpatch should have told you that this "= 0" shouldn't be there. But it > doesn't.
Ok, this line would be correctly picked up if it was being added by this author, but this line is in the context only. We do not blame the current author for those.
ERROR: do not initialise externals to 0 or NULL #1: FILE: Z57.c:1: +int __initdata user_defined_memmap = 0;
> > + for (pos = (u8 *)hdr; pos < (u8 *)hdr + len; pos ++) > > checkpatch should have caught the " ++" but didn't. I think it used to. > It seems to be going backwards?
Somehow this variant was not covered. Added to the tests and to the next version:
ERROR: no space before that '++' (ctx:WxB) #3: FILE: Z57.c:3: + for (pos = (u8 *)hdr; pos < (u8 *)hdr + len; pos ++)
-apw
| |