[lkml]   [2007]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] teach about list_for_each
    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.

    [unhandled content-type:application/pgp-signature]
     \ /
      Last update: 2007-12-02 20:51    [W:0.040 / U:31.832 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site