Messages in this thread Patch in this message | | | Date | Mon, 3 Jan 2005 10:11:44 -0800 | From | William Lee Irwin III <> | Subject | Re: [8/8] fix module_param() type mismatch in drivers/char/n_hdlc.c |
| |
On Mon, Jan 03, 2005 at 09:47:13AM -0800, William Lee Irwin III wrote: > maxframe is a variable of type ssize_t; this patch repairs the warning > arising from the type mismatch in the module_param() declaration. > Signed-off-by: William Irwin <wli@holomorphy.com>
I flubbed the testing cycle for that patch only. The following patch should be applied instead.
Index: mm1-2.6.10/drivers/char/n_hdlc.c =================================================================== --- mm1-2.6.10.orig/drivers/char/n_hdlc.c 2005-01-03 06:46:06.000000000 -0800 +++ mm1-2.6.10/drivers/char/n_hdlc.c 2005-01-03 09:38:17.000000000 -0800 @@ -177,7 +177,7 @@ static int debuglevel; /* max frame size for memory allocations */ -static ssize_t maxframe = 4096; +static int maxframe = 4096; /* TTY callbacks */ @@ -672,7 +672,7 @@ if (debuglevel & DEBUG_LEVEL_INFO) printk (KERN_WARNING "n_hdlc_tty_write: truncating user packet " - "from %lu to %Zd\n", (unsigned long) count, + "from %lu to %d\n", (unsigned long) count, maxframe ); count = maxframe; } - 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/
| |