[v11,5/7] x86/sev: Change sev_guestreq_err_t to u64

Message ID 20230111194001.1947849-6-dionnaglaze@google.com
State New
Headers
Series Add throttling detection to sev-guest |

Commit Message

Dionna Amalie Glaze Jan. 11, 2023, 7:39 p.m. UTC
  As part of changing the signature across modules, this step ensures the
new type will continue to compile before the typedef is removed.

Cc: Borislav Petkov <Borislav.Petkov@amd.com>
Cc: Peter Gonda <pgonda@google.com>
Cc: Thomas Lendacky <Thomas.Lendacky@amd.com>

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
---
 arch/x86/include/asm/sev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/arch/x86/include/asm/sev.h b/arch/x86/include/asm/sev.h
index 5b03ba18fee7..301e3b69f477 100644
--- a/arch/x86/include/asm/sev.h
+++ b/arch/x86/include/asm/sev.h
@@ -137,7 +137,7 @@  struct snp_secrets_page_layout {
  * Use a type alias temporarily to cleanly change the snp_issue_guest_request
  * signature cleanly over multiple patches.
  */
-typedef unsigned long sev_guestreq_err_t;
+typedef u64 sev_guestreq_err_t;
 
 #ifdef CONFIG_AMD_MEM_ENCRYPT
 extern struct static_key_false sev_es_enable_key;