]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fbdev: Declare src parameter of fb_pad_ helpers as constant
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 9 Mar 2026 14:14:43 +0000 (15:14 +0100)
committerHelge Deller <deller@gmx.de>
Mon, 9 Mar 2026 14:47:20 +0000 (15:47 +0100)
commitb9e0180b2e6a48532eb80e5cd8793157196586cf
tree226103e39f1015c8bcdac1c8b2a97414c9d70a65
parent02fe86e5fc22faee9b29e761d9fdd17fdfe583e6
fbdev: Declare src parameter of fb_pad_ helpers as constant

Fbdev's padding helpers do not modify the source buffer. Declare the
parameter as 'const'.

Fbcon's font-rendering code calls these helpers with the font data.
Declaring src as const will allow for making the font data constant
as well.

While at it, also remove the extern qualifier from the function
declarations in the header file.

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