Skip to content

Commit 75cc9a8

Browse files
committed
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 <[email protected]> Signed-off-by: Brijesh Singh <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 5ed0a99 commit 75cc9a8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

arch/x86/kernel/sev.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <asm/fpu/xcr.h>
2727
#include <asm/processor.h>
2828
#include <asm/realmode.h>
29+
#include <asm/setup.h>
2930
#include <asm/traps.h>
3031
#include <asm/svm.h>
3132
#include <asm/smp.h>
@@ -86,9 +87,6 @@ struct ghcb_state {
8687
static DEFINE_PER_CPU(struct sev_es_runtime_data*, runtime_data);
8788
DEFINE_STATIC_KEY_FALSE(sev_es_enable_key);
8889

89-
/* Needed in vc_early_forward_exception */
90-
void do_early_exception(struct pt_regs *regs, int trapnr);
91-
9290
static __always_inline bool on_vc_stack(struct pt_regs *regs)
9391
{
9492
unsigned long sp = regs->sp;
@@ -209,9 +207,6 @@ static noinstr struct ghcb *__sev_get_ghcb(struct ghcb_state *state)
209207
return ghcb;
210208
}
211209

212-
/* Needed in vc_early_forward_exception */
213-
void do_early_exception(struct pt_regs *regs, int trapnr);
214-
215210
static inline u64 sev_es_rd_ghcb_msr(void)
216211
{
217212
return __rdmsr(MSR_AMD64_SEV_ES_GHCB);

0 commit comments

Comments
 (0)