]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vt: Store font in struct vc_font
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 9 Mar 2026 14:14:45 +0000 (15:14 +0100)
committerHelge Deller <deller@gmx.de>
Mon, 9 Mar 2026 14:47:20 +0000 (15:47 +0100)
commit61912c607fa9955dcf3fc018b227baa98a6776dc
tree3d913efb8ca922f5e33e6bae039925e43430965a
parent982f8b002aadef2b5169147b3a60a9eb62f908df
vt: Store font in struct vc_font

Replace struct console_font with struct vc_font for the type of the
vc_font field of struct vc_data. Struct console_font is UAPI, which
prevents further changes. Hence a new data type is required.

Struct console_font has a documented vertical pitch of 32 bytes. This
is not the case after the font data has been loaded into the kernel.
Changing the type of vc_font addresses this inconsistency.

The font data is now declared as constant, as it might come from the
kernel's read-only section. There's some fallout throughout the console
code where non-const variables refer to it. Fix them. A later update
will declare the font data to a dedicated data type.

v3:
- fix typos

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/core/bitblit.c
drivers/video/fbdev/core/fbcon.c
drivers/video/fbdev/core/fbcon.h
include/linux/console_struct.h