Re: [PATCH v8 09/11] x86/tdx: Add MSR support for TDX guest

From: Kuppuswamy, Sathyanarayanan
Date: Tue Oct 05 2021 - 20:49:08 EST




On 10/5/21 4:22 PM, Josh Poimboeuf wrote:
This fails to build:

arch/x86/kernel/tdx.c: In function ‘tdx_write_msr_safe’:
arch/x86/kernel/tdx.c:135:22: error: implicit declaration of function ‘tdx_is_context_switched_msr’ [-Werror=implicit-function-declaration]
135 | WARN_ON_ONCE(tdx_is_context_switched_msr(msr));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/bug.h:104:32: note: in definition of macro ‘WARN_ON_ONCE’
104 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~


Sorry, it looks like the removal is split across two patches. So I did not catch
it in my compilation test. I will fix this and repost it.

--
Sathyanarayanan Kuppuswamy
Linux Kernel Developer