public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] WARNING: space prohibited between function name and open parenthesis '('
@ 2011-10-10 18:59 Stephen Warren
  2011-10-10 20:36 ` Wolfgang Denk
  2011-10-10 20:46 ` Mike Frysinger
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Warren @ 2011-10-10 18:59 UTC (permalink / raw)
  To: u-boot

I'm getting a lot of the following when running checkpatch:

WARNING: space prohibited between function name and open parenthesis '('

Should I ignore these?

So far, I've written completely new code such that it doesn't trigger
this warning, but where editing existing code (e.g. just changing the
name of a function), I've avoided fixing this checkpatch warning so it's
more obvious what my diff is doing; equally, fixing this would cause the
lines I edit to be inconsistent with those around them.

Any guidance appreciated. Thanks.

-- 
nvpublic

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

* [U-Boot] WARNING: space prohibited between function name and open parenthesis '('
  2011-10-10 18:59 [U-Boot] WARNING: space prohibited between function name and open parenthesis '(' Stephen Warren
@ 2011-10-10 20:36 ` Wolfgang Denk
  2011-10-10 20:46 ` Mike Frysinger
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2011-10-10 20:36 UTC (permalink / raw)
  To: u-boot

Dear Stephen Warren,

In message <74CDBE0F657A3D45AFBB94109FB122FF173B23B59F@HQMAIL01.nvidia.com> you wrote:
> I'm getting a lot of the following when running checkpatch:
> 
> WARNING: space prohibited between function name and open parenthesis '('
> 
> Should I ignore these?

No, these should be fixed.

> So far, I've written completely new code such that it doesn't trigger
> this warning, but where editing existing code (e.g. just changing the
> name of a function), I've avoided fixing this checkpatch warning so it's
> more obvious what my diff is doing; equally, fixing this would cause the
> lines I edit to be inconsistent with those around them.
> 
> Any guidance appreciated. Thanks.

The normal procedure is to submit a [COSMETIC] patch first that fixes
the coding style issues of the affected file (and _only_ these), and
then submit a chackpatch-clean patch with the actual changes.



Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
				 EARTH
			     smog  |   bricks
			 AIR  --  mud  --  FIRE
			soda water |   tequila
				 WATER

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

* [U-Boot] WARNING: space prohibited between function name and open parenthesis '('
  2011-10-10 18:59 [U-Boot] WARNING: space prohibited between function name and open parenthesis '(' Stephen Warren
  2011-10-10 20:36 ` Wolfgang Denk
@ 2011-10-10 20:46 ` Mike Frysinger
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2011-10-10 20:46 UTC (permalink / raw)
  To: u-boot

On Monday 10 October 2011 14:59:17 Stephen Warren wrote:
> I'm getting a lot of the following when running checkpatch:
> 
> WARNING: space prohibited between function name and open parenthesis '('
> 
> Should I ignore these?
> 
> So far, I've written completely new code such that it doesn't trigger
> this warning, but where editing existing code (e.g. just changing the
> name of a function), I've avoided fixing this checkpatch warning so it's
> more obvious what my diff is doing; equally, fixing this would cause the
> lines I edit to be inconsistent with those around them.
> 
> Any guidance appreciated. Thanks.

you'll probably hit a bit of this for a while as there is a lot of 
existing/old code in u-boot which doesn't follow checkpatch :(

hopefully that'll become less frequent over time
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111010/d4b19dbc/attachment.pgp 

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

end of thread, other threads:[~2011-10-10 20:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-10 18:59 [U-Boot] WARNING: space prohibited between function name and open parenthesis '(' Stephen Warren
2011-10-10 20:36 ` Wolfgang Denk
2011-10-10 20:46 ` Mike Frysinger

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