]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
UBUNTU: SAUCE: vga_set_mode -- avoid jump tables
authorAndy Whitcroft <apw@canonical.com>
Wed, 21 Mar 2018 09:49:40 +0000 (09:49 +0000)
committerAndrea Righi <andrea.righi@canonical.com>
Thu, 9 Mar 2023 14:57:15 +0000 (15:57 +0100)
BugLink: http://bugs.launchpad.net/bugs/1758856
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/x86/boot/video-vga.c

index 4816cb9cf99682227e03539a550595d2d03ff93a..03dd57043326d976172d4614289fda61b0481934 100644 (file)
@@ -188,7 +188,7 @@ static void vga_set_80x60(void)
        vga_set_vertical_end(60*8);
 }
 
-static int vga_set_mode(struct mode_info *mode)
+static int __attribute__((optimize("no-jump-tables"))) vga_set_mode(struct mode_info *mode)
 {
        /* Set the basic mode */
        vga_set_basic_mode();