lkml.org 
[lkml]   [2023]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v6] x86/sev: Add SEV-SNP guest feature negotiation support
From


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

\
 
 \ /
  Last update: 2023-03-26 23:45    [W:0.202 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site