console: Delete unused con_font_copy() callback implementations
Recently in commit3c4e0dff20("vt: Disable KD_FONT_OP_COPY") we disabled the KD_FONT_OP_COPY ioctl() option. Delete all the con_font_copy() callbacks, since we no longer use them. Mark KD_FONT_OP_COPY as "obsolete" in include/uapi/linux/kd.h, just like what we have done for PPPIOCDETACH in commitaf8d3c7c00("ppp: remove the PPPIOCDETACH ioctl"). Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/c8d28007edf50de4387e1532eb3eb736db716f73.1605169912.git.yepeilin.cs@gmail.com
This commit is contained in:
@@ -2451,16 +2451,6 @@ static int fbcon_do_set_font(struct vc_data *vc, int w, int h,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int fbcon_copy_font(struct vc_data *vc, int con)
|
||||
{
|
||||
struct fbcon_display *od = &fb_display[con];
|
||||
struct console_font *f = &vc->vc_font;
|
||||
|
||||
if (od->fontdata == f->data)
|
||||
return 0; /* already the same font... */
|
||||
return fbcon_do_set_font(vc, f->width, f->height, od->fontdata, od->userfont);
|
||||
}
|
||||
|
||||
/*
|
||||
* User asked to set font; we are guaranteed that
|
||||
* a) width and height are in range 1..32
|
||||
@@ -3111,7 +3101,6 @@ static const struct consw fb_con = {
|
||||
.con_font_set = fbcon_set_font,
|
||||
.con_font_get = fbcon_get_font,
|
||||
.con_font_default = fbcon_set_def_font,
|
||||
.con_font_copy = fbcon_copy_font,
|
||||
.con_set_palette = fbcon_set_palette,
|
||||
.con_invert_region = fbcon_invert_region,
|
||||
.con_screen_pos = fbcon_screen_pos,
|
||||
|
||||
Reference in New Issue
Block a user