From f8303bf23e7d1cf30cf0035ec03a69dba7a00853 Mon Sep 17 00:00:00 2001 From: Andrea Righi Date: Wed, 10 Jan 2024 10:21:49 +0100 Subject: [PATCH] Revert "UBUNTU: SAUCE: vga_set_mode -- avoid jump tables" BugLink: https://bugs.launchpad.net/bugs/2046440 Not needed anymore with the change to make objtool warnings as fatal errors for RETPOLINE and SLS. Signed-off-by: Andrea Righi --- arch/x86/boot/video-vga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/video-vga.c b/arch/x86/boot/video-vga.c index 03dd57043326..4816cb9cf996 100644 --- a/arch/x86/boot/video-vga.c +++ b/arch/x86/boot/video-vga.c @@ -188,7 +188,7 @@ static void vga_set_80x60(void) vga_set_vertical_end(60*8); } -static int __attribute__((optimize("no-jump-tables"))) vga_set_mode(struct mode_info *mode) +static int vga_set_mode(struct mode_info *mode) { /* Set the basic mode */ vga_set_basic_mode();