[patch] 2.6.9-rc1-mm3: char/riscom8.c doesn't compile

From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 09/04/04

  • Next message: Keith Whitwell: "Re: New proposed DRM interface design"
    Date:	Sat, 4 Sep 2004 12:21:16 +0200
    To: Andrew Morton <akpm@osdl.org>, Maximilian Attems <janitor@sternwelten.at>
    
    

    On Fri, Sep 03, 2004 at 01:48:11AM -0700, Andrew Morton wrote:
    >...
    > Changes since 2.6.9-rc1-mm2:
    >...
    > +drivers-char-riscom8c-min-max-removal.patch
    >...
    > Janitorial things
    >...

    Doesn't compile:

    <-- snip -->

    ...
      CC drivers/char/riscom8.o
    drivers/char/riscom8.c:1178: macro `min_t' used with only 2 args
    ...
    make[2]: *** [drivers/char/riscom8.o] Error 1

    <-- snip -->

    Trivial fix:

    Signed-off-by: Adrian Bunk <bunk@fs.tum.de>

    --- linux-2.6.9-rc1-mm3-full/drivers/char/riscom8.c.old 2004-09-04 11:36:08.000000000 +0200
    +++ linux-2.6.9-rc1-mm3-full/drivers/char/riscom8.c 2004-09-04 11:36:57.000000000 +0200
    @@ -1174,7 +1174,7 @@
                             }
     
                             cli();
    - c = min_t(c, min(SERIAL_XMIT_SIZE - port->xmit_cnt - 1,
    + c = min_t(int, c, min(SERIAL_XMIT_SIZE - port->xmit_cnt - 1,
                                              SERIAL_XMIT_SIZE - port->xmit_head));
                             memcpy(port->xmit_buf + port->xmit_head, tmp_buf, c);
                             port->xmit_head = (port->xmit_head + c) & (SERIAL_XMIT_SIZE-1);
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Keith Whitwell: "Re: New proposed DRM interface design"

    Relevant Pages

    • Re: Recommended Block Lists
      ... > Thanks for the response, ... You add the entry to your sendmail.mc, then run the m4 macro. ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • Re: crob chgrp
      ... if I run it as root. ... and it is not a macro. ... will instead be mailed to the owner of the cron task. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Idea for weekly/monthy wallpaper/themes package
      ... On 4/18/07, Dusty Wilson wrote: ... > water, sky, macro, etc. ... and assign tags and such things... ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)
    • [PATCH] 2.6.8.1-mm3, fix qla1280 build on visws
      ... attached patch fixes qla1280 SCSI driver build failure on visws ... due to undefined RD_REG_WORD_dmasyncmacro. ... Best regards. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Driver Core update for 2.6.4
      ... add decl_subsys_namemacro for users who want to set the subsystem name ... files changed, 8 insertions(+) ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)