Commit 3fe81239 authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Linus Torvalds

[PATCH] fix module_param() type mismatch in drivers/char/n_hdlc.c

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: default avatarWilliam Irwin <wli@holomorphy.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 28c947d5
...@@ -177,7 +177,7 @@ static struct n_hdlc *n_hdlc_alloc (void); ...@@ -177,7 +177,7 @@ static struct n_hdlc *n_hdlc_alloc (void);
static int debuglevel; static int debuglevel;
/* max frame size for memory allocations */ /* max frame size for memory allocations */
static ssize_t maxframe = 4096; static int maxframe = 4096;
/* TTY callbacks */ /* TTY callbacks */
...@@ -672,7 +672,7 @@ static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file, ...@@ -672,7 +672,7 @@ static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file,
if (debuglevel & DEBUG_LEVEL_INFO) if (debuglevel & DEBUG_LEVEL_INFO)
printk (KERN_WARNING printk (KERN_WARNING
"n_hdlc_tty_write: truncating user packet " "n_hdlc_tty_write: truncating user packet "
"from %lu to %Zd\n", (unsigned long) count, "from %lu to %d\n", (unsigned long) count,
maxframe ); maxframe );
count = maxframe; count = maxframe;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment