All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] x86/head64: Add missing "__head" for sme_postprocess_startup()
       [not found] <YgaBsh6ipzp8aaYX@zn.tnic>
@ 2022-02-11 16:23 ` Marco Bonelli
  2022-02-12 11:17   ` [tip: x86/sev] x86/head64: Add missing __head annotation to sme_postprocess_startup() tip-bot2 for Marco Bonelli
  0 siblings, 1 reply; 2+ messages in thread
From: Marco Bonelli @ 2022-02-11 16:23 UTC (permalink / raw)
  To: bp
  Cc: Marco Bonelli, Thomas Gleixner, Ingo Molnar, Dave Hansen, x86,
	H. Peter Anvin

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 <marco@mebeim.net>
---
 arch/x86/kernel/head64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c
index de563db9cdcd..4f5ecbbaae77 100644
--- a/arch/x86/kernel/head64.c
+++ b/arch/x86/kernel/head64.c
@@ -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;
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip: x86/sev] x86/head64: Add missing __head annotation to sme_postprocess_startup()
  2022-02-11 16:23 ` [PATCH v2] x86/head64: Add missing "__head" for sme_postprocess_startup() Marco Bonelli
@ 2022-02-12 11:17   ` tip-bot2 for Marco Bonelli
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Marco Bonelli @ 2022-02-12 11:17 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Marco Bonelli, Borislav Petkov, x86, linux-kernel

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 <marco@mebeim.net>
AuthorDate:    Fri, 11 Feb 2022 17:23:50 +01:00
Committer:     Borislav Petkov <bp@suse.de>
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 <marco@mebeim.net>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220211162350.11780-1-marco@mebeim.net
---
 arch/x86/kernel/head64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c
index de563db..4f5ecbb 100644
--- a/arch/x86/kernel/head64.c
+++ b/arch/x86/kernel/head64.c
@@ -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;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-12 11:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <YgaBsh6ipzp8aaYX@zn.tnic>
2022-02-11 16:23 ` [PATCH v2] x86/head64: Add missing "__head" for sme_postprocess_startup() Marco Bonelli
2022-02-12 11:17   ` [tip: x86/sev] x86/head64: Add missing __head annotation to sme_postprocess_startup() tip-bot2 for Marco Bonelli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.