Re: [PATCH v6] x86/sev: Add SEV-SNP guest feature negotiation support
From: Nikunj A. Dadhania
Date: Wed Jan 18 2023 - 01:35:31 EST
On 16/01/23 14:40, Nikunj A Dadhania wrote:
> +static void __noreturn sev_es_ghcb_terminate(struct ghcb *ghcb, unsigned int set,
> + unsigned int reason, u64 exit_info_2)
> +{
Found this today:
In file included from arch/x86/kernel/sev.c:519:
At top level:
arch/x86/kernel/sev-shared.c:167:24: warning: ‘sev_es_ghcb_terminate’ defined but not used [-Wunused-function]
167 | static void __noreturn sev_es_ghcb_terminate(struct ghcb *ghcb, unsigned int set,
| ^~~~~~~~~~~~~~~~~~~~~
I am wondering why I did not get this error in my build testing.
sev-shared.c gets included from two files boot/compressed/sev.c and kernel/sev.c, sev_es_ghcb_terminate()
has only one user. I will move helper function to boot/compressed/sev.c and send an updated version.
Regards
Nikunj