| Date | Tue, 16 Nov 2021 15:33:14 -0000 | From | "tip-bot2 for Borislav Petkov" <> | Subject | [tip: x86/sev] x86/sev: Remove do_early_exception() forward declarations |
| |
The following commit has been merged into the x86/sev branch of tip:
Commit-ID: 75cc9a84c9eb36e436e3fcee5158fe31d1dfd78f Gitweb: https://git.kernel.org/tip/75cc9a84c9eb36e436e3fcee5158fe31d1dfd78f Author: Borislav Petkov <bp@suse.de> AuthorDate: Wed, 10 Nov 2021 16:06:53 -06:00 Committer: Borislav Petkov <bp@suse.de> CommitterDate: Mon, 15 Nov 2021 21:06:33 +01:00
x86/sev: Remove do_early_exception() forward declarations
There's a perfectly fine prototype in the asm/setup.h header. Use it.
No functional changes.
Signed-off-by: Borislav Petkov <bp@suse.de> Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20211110220731.2396491-8-brijesh.singh@amd.com --- arch/x86/kernel/sev.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/arch/x86/kernel/sev.c b/arch/x86/kernel/sev.c index 0a6c82e..03f9aff 100644 --- a/arch/x86/kernel/sev.c +++ b/arch/x86/kernel/sev.c @@ -26,6 +26,7 @@ #include <asm/fpu/xcr.h> #include <asm/processor.h> #include <asm/realmode.h> +#include <asm/setup.h> #include <asm/traps.h> #include <asm/svm.h> #include <asm/smp.h> @@ -86,9 +87,6 @@ struct ghcb_state { static DEFINE_PER_CPU(struct sev_es_runtime_data*, runtime_data); DEFINE_STATIC_KEY_FALSE(sev_es_enable_key); -/* Needed in vc_early_forward_exception */ -void do_early_exception(struct pt_regs *regs, int trapnr); - static __always_inline bool on_vc_stack(struct pt_regs *regs) { unsigned long sp = regs->sp; @@ -209,9 +207,6 @@ static noinstr struct ghcb *__sev_get_ghcb(struct ghcb_state *state) return ghcb; } -/* Needed in vc_early_forward_exception */ -void do_early_exception(struct pt_regs *regs, int trapnr); - static inline u64 sev_es_rd_ghcb_msr(void) { return __rdmsr(MSR_AMD64_SEV_ES_GHCB);
|