]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
UBUNTU: SAUCE: fix FTBFS in machine_real_restart()
authorPaolo Pisati <paolo.pisati@canonical.com>
Wed, 22 Apr 2020 14:09:47 +0000 (14:09 +0000)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 15 Dec 2020 08:17:53 +0000 (09:17 +0100)
(focal-amd64)ppisati@kathleen:~/linux$ make -j128
  DESCEND  objtool
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      arch/x86/kernel/reboot.o
  CHK     kernel/kheaders_data.tar.xz
arch/x86/kernel/reboot.o: warning: objtool: machine_real_restart()+0x63: retpoline_safe hint not an indirect jump/call
make[2]: *** [scripts/Makefile.build:275: arch/x86/kernel/reboot.o] Error 255
make[2]: *** Deleting file 'arch/x86/kernel/reboot.o'
make[1]: *** [scripts/Makefile.build:496: arch/x86/kernel] Error 2
make: *** [Makefile:1734: arch/x86] Error 2
make: *** Waiting for unfinished jobs....

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/x86/kernel/reboot.c

index 36ca4dc77e0deb1e2880742ea4b384e011756e02..52b78b4bf21c09a6d1c5e29e658573401a15d5b5 100644 (file)
@@ -128,11 +128,11 @@ void __noreturn machine_real_restart(unsigned int type)
 
        /* Jump to the identity-mapped low memory code */
 #ifdef CONFIG_X86_32
-       asm volatile(ANNOTATE_RETPOLINE_SAFE "jmpl *%0" : :
+       asm volatile("jmpl *%0" : :
                     "rm" (real_mode_header->machine_real_restart_asm),
                     "a" (type));
 #else
-       asm volatile(ANNOTATE_RETPOLINE_SAFE "ljmpl *%0" : :
+       asm volatile("ljmpl *%0" : :
                     "m" (real_mode_header->machine_real_restart_asm),
                     "D" (type));
 #endif