Commit 2fe6d66a authored by hanliyang's avatar hanliyang
Browse files

x86: mm: Fix objtool warning about bool noinstr csv3_active()

hygon inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBEPNK


CVE: NA

---------------------------

This change will fix the objtool warning:

  vmlinux.o: warning: objtool: csv3_active+0x39: call to native_cpuid.constprop.0() leaves .noinstr.text section

Fixes: ce19f236 ("x86/kernel: Add CSV3 early update(enc/dec)/reset memory helpers")
Signed-off-by: default avatarhanliyang <hanliyang@hygon.cn>
parent 19045783
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ static bool __init __maybe_unused csv3_check_cpu_support(void)
}

/* csv3_active() indicate whether the guest is protected by CSV3 */
bool noinstr csv3_active(void)
bool csv3_active(void)
{
	if (vendor_ebx == 0 || vendor_ecx == 0 || vendor_edx == 0) {
		u32 eax = 0;