x86/head64: Add missing "__head" for sme_postprocess_startup()
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 1/1 x86/head64: Add missing "__head" for sme_postprocess_startup()
This function was previously part of __startup_64(), which is marked "__head", and is currently only called from there. It also calls sme_encrypt_kernel(), which is marked as "__init".
Signed-off-by Marco Bonelli <[email protected]>
--- arch/x86/kernel/head64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/head64.c +1 -1
@@ -126,7 +126,7 @@ static bool __head check_la57_support(unsigned long physaddr) }#endif -static unsigned long sme_postprocess_startup (struct boot_params *bp,pmdval_t *pmd) +static unsigned long __head sme_postprocess_startup (struct boot_params *bp,pmdval_t *pmd) {unsigned long vaddr, vaddr_end;int i;
Signature · 1 line
2.30.2
[tip: x86/sev] x86/head64: Add missing __head annotation to sme_postprocess_startup()
The following commit has been merged into the x86/sev branch of tip:
The following commit has been merged into the x86/sev branch of tip:
Commit-ID: 5f117033243488a0080f837540c27999aa31870e Gitweb: https://git.kernel.org/tip/5f117033243488a0080f837540c27999aa31870e Author: Marco Bonelli <[email protected]> AuthorDate: Fri, 11 Feb 2022 17:23:50 +01:00 Committer: Borislav Petkov <[email protected]> CommitterDate: Sat, 12 Feb 2022 11:37:09 +01:00
x86/head64: Add missing __head annotation to sme_postprocess_startup()
This function was previously part of __startup_64() which is marked __head, and is currently only called from there. Mark it __head too.
Signed-off-by Marco Bonelli <[email protected]>
Signed-off-by Borislav Petkov <[email protected]>
--- arch/x86/kernel/head64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/head64.c +1 -1
@@ -126,7 +126,7 @@ static bool __head check_la57_support(unsigned long physaddr) }#endif -static unsigned long sme_postprocess_startup (struct boot_params *bp,pmdval_t *pmd) +static unsigned long __head sme_postprocess_startup (struct boot_params *bp,pmdval_t *pmd) {unsigned long vaddr, vaddr_end;int i;