Skip to content

Commit 1f6113a

Browse files
ardbiesheuvelbp3tk0v
authored andcommitted
x86/boot: Drop erroneous __init annotation from early_set_pages_state()
The kexec code will call set_pages_state() after tearing down all the GHCBs, which will therefore result in a call to early_set_pages_state(). This means the __init annotation is wrong, and must be dropped. Fixes: c5c30a3 ("x86/boot: Move startup code out of __head section") Reported-by: Srikanth Aithal <Srikanth.Aithal@amd.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Tested-by: Srikanth Aithal <Srikanth.Aithal@amd.com>
1 parent 648dbcc commit 1f6113a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/boot/startup/sev-startup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
/* Include code shared with pre-decompression boot stage */
4545
#include "sev-shared.c"
4646

47-
void __init
47+
void
4848
early_set_pages_state(unsigned long vaddr, unsigned long paddr,
4949
unsigned long npages, const struct psc_desc *desc)
5050
{

0 commit comments

Comments
 (0)