]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix module_param() type mismatch in drivers/char/n_hdlc.c
authorWilliam Lee Irwin III <wli@holomorphy.com>
Tue, 11 Jan 2005 01:22:25 +0000 (17:22 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 11 Jan 2005 01:22:25 +0000 (17:22 -0800)
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>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/n_hdlc.c

index 0256d5823504dad39d8d743a225c489d96a4fce8..24ccc233b213998b011f19bd97454df626edc6d2 100644 (file)
@@ -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 tty_struct *tty, struct file *file,
                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;
        }