Unverified Commit 5672a2cb authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14373 [OLK-6.6]Hygon: Fix objtool warning cause by csv3_active()

Merge Pull Request from: @hanliyang 
 
issue:
https://gitee.com/open_euler/dashboard?issue_id=IBEPNK

Remove 'noinstr' attribute of the function csv3_active(). 
 
Link:https://gitee.com/openeuler/kernel/pulls/14373

 

Reviewed-by: default avatarZhang Peng <zhangpeng362@huawei.com>
Signed-off-by: default avatarZhang Peng <zhangpeng362@huawei.com>
parents 19045783 2fe6d66a
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;