aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/vt.c
diff options
context:
space:
mode:
authorqiaochong <qiaochong@loongson.cn>2010-08-09 20:21:27 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-09 23:45:11 -0400
commit9e0ba741aabdf129d561e62d207c75146adef5e8 (patch)
treee4f86d12f1f1487c11d5752b14cdcfd5ffe95947 /drivers/char/vt.c
parent02f0777a0d6560eb995aade34a1b82f95c0452da (diff)
drivers/char/vt.c:vc_do_resize(): local var `end' should be unsigned long
According include/linux/console_struct.h,vc_scr_end is unsigned long. struct vc_data { unsigned short vc_num; /* Console number */ unsigned int vc_cols; /* [#] Console size */ unsigned int vc_rows; unsigned int vc_size_row; /* Bytes per row */ unsigned int vc_scan_lines; /* # of scan lines */ unsigned long vc_origin; /* [!] Start of real screen */ unsigned long vc_scr_end; /* [!] End of real screen */ unsigned long vc_visible_origin; /* [!] Top of visible window */ unsigned int vc_top, vc_bottom; /* Scrolling region */ const struct consw *vc_sw; unsigned short *vc_screenbuf; ... } Signed-off-by: qiaochong <qiaochong@loongson.cn> Cc: Greg KH <greg@kroah.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/vt.c')
-rw-r--r--drivers/char/vt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c
index cff1d4bce21d..44f03ddd8871 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -837,9 +837,10 @@ static int vc_do_resize(struct tty_struct *tty, struct vc_data *vc,
837 unsigned int cols, unsigned int lines) 837 unsigned int cols, unsigned int lines)
838{ 838{
839 unsigned long old_origin, new_origin, new_scr_end, rlth, rrem, err = 0; 839 unsigned long old_origin, new_origin, new_scr_end, rlth, rrem, err = 0;
840 unsigned long end;
840 unsigned int old_cols, old_rows, old_row_size, old_screen_size; 841 unsigned int old_cols, old_rows, old_row_size, old_screen_size;
841 unsigned int new_cols, new_rows, new_row_size, new_screen_size; 842 unsigned int new_cols, new_rows, new_row_size, new_screen_size;
842 unsigned int end, user; 843 unsigned int user;
843 unsigned short *newscreen; 844 unsigned short *newscreen;
844 845
845 WARN_CONSOLE_UNLOCKED(); 846 WARN_CONSOLE_UNLOCKED();