public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* checkpatch false ERROR: trailing statements should be on next line
@ 2007-12-25 21:50 Erez Zadok
  2007-12-26 13:02 ` Andy Whitcroft
  0 siblings, 1 reply; 2+ messages in thread
From: Erez Zadok @ 2007-12-25 21:50 UTC (permalink / raw)
  To: apw, linux-kernel

Using v2.6.24-rc6-125-g5356f66, code such as this:

	if (is_file)	/* dirs can be unlinked but chdir'ed to */
		err = -ESTALE;

produces this false checkpatch error:

	foo.c:947: ERROR: trailing statements should be on next line

I think comments such as the above should be allowed (plus a comment isn't a
statement).  It's often very useful to put them right on the affected line.

Thanks,
Erez.

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

* Re: checkpatch false ERROR: trailing statements should be on next line
  2007-12-25 21:50 checkpatch false ERROR: trailing statements should be on next line Erez Zadok
@ 2007-12-26 13:02 ` Andy Whitcroft
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Whitcroft @ 2007-12-26 13:02 UTC (permalink / raw)
  To: Erez Zadok; +Cc: linux-kernel

On Tue, Dec 25, 2007 at 04:50:04PM -0500, Erez Zadok wrote:
> Using v2.6.24-rc6-125-g5356f66, code such as this:
> 
> 	if (is_file)	/* dirs can be unlinked but chdir'ed to */
> 		err = -ESTALE;
> 
> produces this false checkpatch error:
> 
> 	foo.c:947: ERROR: trailing statements should be on next line
> 
> I think comments such as the above should be allowed (plus a comment isn't a
> statement).  It's often very useful to put them right on the affected line.

Agreed.  checkpatch 0.13 already ignores these as statements.  A
positive side effect of other changes in this area.

Thanks for the report.

-apw

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

end of thread, other threads:[~2007-12-26 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-25 21:50 checkpatch false ERROR: trailing statements should be on next line Erez Zadok
2007-12-26 13:02 ` Andy Whitcroft

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