Skip to contentSkip to conversation

x86/acrn: Remove redundant chars from ACRN signature

PATCH Applied Shuo Liu 2 participants 3 messages Aug 6, 2020 x86

lore
Share & tools
lore

Shuo Liu

author
#0 lore raw

PATCH 1/1 x86/acrn: Remove redundant chars from ACRN signature

hypervisor_cpuid_base() only handles 12 chars of the hypervisor signature string but is provided with 14 chars.

Remove the redundancy. Additionally, replace the user space uint32_t with preferred kernel type u32.

---
 arch/x86/kernel/cpu/acrn.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/acrn.c +2 -2
index 3b08cdfc6514..0b2c03943ac6 100644
@@ -17,9 +17,9 @@
 #include <asm/idtentry.h>
 #include <asm/irq_regs.h>
 
-static uint32_t __init acrn_detect(void)
+static u32 __init acrn_detect(void)
 {
-	return hypervisor_cpuid_base("ACRNACRNACRN\0\0", 0);
+	return hypervisor_cpuid_base("ACRNACRNACRN", 0);
 }
 
 static void __init acrn_init_platform(void)

base-commit: 48778464bb7d346b47157d21ffde2af6b2d39110

Signature · 1 line
2.28.0
merge bot Applied
#1 lore raw
The following commit has been merged into the x86/urgent branch of tip:

The following commit has been merged into the x86/urgent branch of tip:

Commit-ID:     d60ed6f07c9c8ed2cbdacea7ab9597ad81454545
Gitweb:        https://git.kernel.org/tip/d60ed6f07c9c8ed2cbdacea7ab9597ad81454545
Author:        Shuo Liu <[email protected]>
AuthorDate:    Thu, 06 Aug 2020 19:41:11 +08:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Thu, 06 Aug 2020 15:20:17 +02:00

x86/acrn: Remove redundant chars from ACRN signature

hypervisor_cpuid_base() only handles 12 chars of the hypervisor signature string but is provided with 14 chars.

Remove the redundancy. Additionally, replace the user space uint32_t with preferred kernel type u32.

---
 arch/x86/kernel/cpu/acrn.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/acrn.c +2 -2
index 3b08cdf..0b2c039 100644
@@ -17,9 +17,9 @@
 #include <asm/idtentry.h>
 #include <asm/irq_regs.h>
 
-static uint32_t __init acrn_detect(void)
+static u32 __init acrn_detect(void)
 {
-	return hypervisor_cpuid_base("ACRNACRNACRN\0\0", 0);
+	return hypervisor_cpuid_base("ACRNACRNACRN", 0);
 }
 
 static void __init acrn_init_platform(void)
merge bot Applied
#2 lore raw
In reply to Shuo Liu
The following commit has been merged into the x86/urgent branch of tip:

The following commit has been merged into the x86/urgent branch of tip:

Commit-ID:     4c7bfa383efd837d4ab8f86ef05886959ed8bfe5
Gitweb:        https://git.kernel.org/tip/4c7bfa383efd837d4ab8f86ef05886959ed8bfe5
Author:        Shuo Liu <[email protected]>
AuthorDate:    Thu, 06 Aug 2020 19:41:11 +08:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 07 Aug 2020 01:32:00 +02:00

x86/acrn: Remove redundant chars from ACRN signature

hypervisor_cpuid_base() only handles 12 chars of the hypervisor signature string but is provided with 14 chars.

Remove the redundancy. Additionally, replace the user space uint32_t with preferred kernel type u32.

---
 arch/x86/kernel/cpu/acrn.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/acrn.c +2 -2
index 3b08cdf..0b2c039 100644
@@ -17,9 +17,9 @@
 #include <asm/idtentry.h>
 #include <asm/irq_regs.h>
 
-static uint32_t __init acrn_detect(void)
+static u32 __init acrn_detect(void)
 {
-	return hypervisor_cpuid_base("ACRNACRNACRN\0\0", 0);
+	return hypervisor_cpuid_base("ACRNACRNACRN", 0);
 }
 
 static void __init acrn_init_platform(void)