Skip to contentSkip to conversation

x86/head64: Add missing "__head" for sme_postprocess_startup()

PATCH Applied Marco Bonelli 2 participants 2 messages Feb 12, 2022 1 message not in the archive x86

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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".

---
 arch/x86/kernel/head64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/head64.c +1 -1
index de563db9cdcd..4f5ecbbaae77 100644
@@ -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
merge bot Applied
#2 lore raw

[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.

---
 arch/x86/kernel/head64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/head64.c +1 -1
index de563db..4f5ecbb 100644
@@ -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;