On Sun, 02 Dec 2007 13:03:35 +0100, Christer Weinigel said: > WARNING: no space between function name and open parenthesis '(' > #520: FILE: drivers/spi/spi_s3c24xx_dma.c:478: > + list_for_each_entry (transfer, &message->transfers, transfer_list) { > > which I think is a bit bogus since it actually is a for statement in > disguise. That's how it's *implemented*. I obviously studied too much Lisp as an undergrad, I keep thinking of list_for_* helpers as functions that take a lambda-expression as input. In which case, it's a function and no blank is used. :)
Attachment:
pgp65gJaaSY4v.pgp
Description: PGP signature
- References:
- [PATCH] teach checkpatch.pl about list_for_each
- From: Christer Weinigel <[email protected]>
- [PATCH] teach checkpatch.pl about list_for_each
- Prev by Date: Need lockdep help
- Next by Date: Re: [v4l-dvb-maintainer] [PATCH 1/2] ivtv: Some general fixes
- Previous by thread: Re: [PATCH] teach checkpatch.pl about list_for_each
- Next by thread: [PATCH 0/3] x86_64: some minor paging cleanups
- Index(es):