From cef81d1790d8d1915ee56b40de5a18d729bec97e Mon Sep 17 00:00:00 2001 From: Zengruan Ye Date: Tue, 22 Dec 2020 17:26:46 +0800 Subject: [PATCH] KVM: arm: replace WARN_ON with pr_warn for UNKNOWN type euleros inclusion category: bugfix bugzilla: 46842 CVE: NA ------------------------------------------------- In addition to the Kunpeng processor, other CPU processors may be supported. The call trace here may cause confusion. Signed-off-by: Zengruan Ye Signed-off-by: Xiangyou Xie Reviewed-by: Ying Fang Signed-off-by: Yang Yingliang --- virt/kvm/arm/hisi_cpu_model.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virt/kvm/arm/hisi_cpu_model.c b/virt/kvm/arm/hisi_cpu_model.c index b0f7e0d7ef1c..52eecf1ba1cf 100644 --- a/virt/kvm/arm/hisi_cpu_model.c +++ b/virt/kvm/arm/hisi_cpu_model.c @@ -78,7 +78,8 @@ void probe_hisi_cpu_type(void) else of_get_hw_cpu_type(); - WARN_ON(hi_cpu_type == UNKNOWN_HI_TYPE); + if (hi_cpu_type == UNKNOWN_HI_TYPE) + pr_warn("UNKNOWN Hisi cpu type.\n"); } #define NCSNP_MMIO_BASE 0x20107E238 -- GitLab