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

From: Adrian Bunk
Date: Sat Sep 04 2004 - 05:24:00 EST


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@xxxxxxxxx>

--- 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/