Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fbcon: make display_desc a static array in fbcon_startup()

display_desc is a pointer to a RO string. Instead, switch display_desc
to a static array as we are used to. It BTW saves unnecessary 8B on the
stack.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Helge Deller <deller@gmx.de>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Tested-by: Helge Deller <deller@gmx.de> # parisc STI console
Link: https://lore.kernel.org/r/20240122110401.7289-3-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
b041c605 17465747

+1 -1
+1 -1
drivers/video/fbdev/core/fbcon.c
··· 921 921 922 922 static const char *fbcon_startup(void) 923 923 { 924 - const char *display_desc = "frame buffer device"; 924 + static const char display_desc[] = "frame buffer device"; 925 925 struct fbcon_display *p = &fb_display[fg_console]; 926 926 struct vc_data *vc = vc_cons[fg_console].d; 927 927 const struct font_desc *font = NULL;