Commit db397520 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] console_font_op annotated

->vc_font switched to console_font (from console_font_op, of all things!)
console_font_op annotated (->data is finally makred __user).
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 728702c6
...@@ -915,7 +915,7 @@ int vt_ioctl(struct tty_struct *tty, struct file * file, ...@@ -915,7 +915,7 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,
op.width = 8; op.width = 8;
op.height = 0; op.height = 0;
op.charcount = 256; op.charcount = 256;
op.data = (char *) arg; op.data = up;
return con_font_op(fg_console, &op); return con_font_op(fg_console, &op);
} }
...@@ -925,7 +925,7 @@ int vt_ioctl(struct tty_struct *tty, struct file * file, ...@@ -925,7 +925,7 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,
op.width = 8; op.width = 8;
op.height = 32; op.height = 32;
op.charcount = 256; op.charcount = 256;
op.data = (char *) arg; op.data = up;
return con_font_op(fg_console, &op); return con_font_op(fg_console, &op);
} }
......
...@@ -2162,7 +2162,7 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h, ...@@ -2162,7 +2162,7 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h,
static int fbcon_copy_font(struct vc_data *vc, int con) static int fbcon_copy_font(struct vc_data *vc, int con)
{ {
struct display *od = &fb_display[con]; struct display *od = &fb_display[con];
struct console_font_op *f = &vc->vc_font; struct console_font *f = &vc->vc_font;
if (od->fontdata == f->data) if (od->fontdata == f->data)
return 0; /* already the same font... */ return 0; /* already the same font... */
......
...@@ -40,7 +40,7 @@ struct vc_data { ...@@ -40,7 +40,7 @@ struct vc_data {
unsigned long vc_pos; /* Cursor address */ unsigned long vc_pos; /* Cursor address */
/* fonts */ /* fonts */
unsigned short vc_hi_font_mask; /* [#] Attribute set for upper 256 chars of font or 0 if not supported */ unsigned short vc_hi_font_mask; /* [#] Attribute set for upper 256 chars of font or 0 if not supported */
struct console_font_op vc_font; /* Current VC font set */ struct console_font vc_font; /* Current VC font set */
unsigned short vc_video_erase_char; /* Background erase character */ unsigned short vc_video_erase_char; /* Background erase character */
/* VT terminal data */ /* VT terminal data */
unsigned int vc_state; /* Escape sequence parser state */ unsigned int vc_state; /* Escape sequence parser state */
......
...@@ -149,7 +149,7 @@ struct console_font_op { ...@@ -149,7 +149,7 @@ struct console_font_op {
unsigned int flags; /* KD_FONT_FLAG_* */ unsigned int flags; /* KD_FONT_FLAG_* */
unsigned int width, height; /* font size */ unsigned int width, height; /* font size */
unsigned int charcount; unsigned int charcount;
unsigned char *data; /* font data with height fixed to 32 */ unsigned char __user *data; /* font data with height fixed to 32 */
}; };
struct console_font { struct console_font {
......
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