From: William Lee Irwin III 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 Signed-off-by: Andrew Morton --- 25-akpm/drivers/char/n_hdlc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/char/n_hdlc.c~fix-module_param-type-mismatch-in-drivers-char-n_hdlcc drivers/char/n_hdlc.c --- 25/drivers/char/n_hdlc.c~fix-module_param-type-mismatch-in-drivers-char-n_hdlcc 2005-01-10 17:29:35.868434088 -0800 +++ 25-akpm/drivers/char/n_hdlc.c 2005-01-10 17:29:35.872433480 -0800 @@ -177,7 +177,7 @@ static struct n_hdlc *n_hdlc_alloc (void static int debuglevel; /* max frame size for memory allocations */ -static ssize_t maxframe = 4096; +static int maxframe = 4096; /* TTY callbacks */ @@ -672,7 +672,7 @@ static ssize_t n_hdlc_tty_write(struct t 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; } _