console: Delete dummy con_font_set() and con_font_default() callback implementations
authorPeilin Ye <yepeilin.cs@gmail.com>
Thu, 12 Nov 2020 12:11:20 +0000 (07:11 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 16 Nov 2020 15:31:09 +0000 (16:31 +0100)
commit259a252c1f4e19045b06660f81014fb51e17f3f6
tree008d544481c581efea9b9325e31b63a05f63d2d4
parent7a089ec7d77fe7d50f6bb7b178fa25eec9fd822b
console: Delete dummy con_font_set() and con_font_default() callback implementations

.con_font_set and .con_font_default callbacks should not pass `struct
console_font *` as a parameter, since `struct console_font` is a UAPI
structure.

We are trying to let them use our new kernel font descriptor, `struct
font_desc` instead. To make that work slightly easier, first delete all of
their no-op implementations used by dummy consoles.

This will make KD_FONT_OP_SET and KD_FONT_OP_SET_DEFAULT ioctl() requests
on dummy consoles start to fail and return `-ENOSYS`, which is intended,
since no user should ever expect such operations to succeed on dummy
consoles.

Suggested-by: Daniel Vetter <daniel@ffwll.ch>
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/9952c7538d2a32bb1a82af323be482e7afb3dedf.1605169912.git.yepeilin.cs@gmail.com
drivers/usb/misc/sisusbvga/sisusb_con.c
drivers/video/console/dummycon.c