Skip to content

Commit a46f322

Browse files
author
Ingo Molnar
committed
x86/cpuid: Use u32 in instead of uint32_t in <asm/cpuid/api.h>
Use u32 instead of uint32_t in hypervisor_cpuid_base(). Yes, uint32_t is used in Xen code et al, but this is a core x86 architecture header and we should standardize on the type that is being used overwhelmingly in related x86 architecture code. The two types are the same so there should be no build warnings. Signed-off-by: Ingo Molnar <[email protected]> Cc: Andrew Cooper <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: John Ogness <[email protected]> Cc: "Ahmed S. Darwish" <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected]
1 parent cfb4fc5 commit a46f322

File tree

1 file changed

+2
-2
lines changed
  • arch/x86/include/asm/cpuid

1 file changed

+2
-2
lines changed

arch/x86/include/asm/cpuid/api.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ static __always_inline bool cpuid_function_is_indexed(u32 function)
187187
#define for_each_possible_hypervisor_cpuid_base(function) \
188188
for (function = 0x40000000; function < 0x40010000; function += 0x100)
189189

190-
static inline uint32_t hypervisor_cpuid_base(const char *sig, uint32_t leaves)
190+
static inline u32 hypervisor_cpuid_base(const char *sig, u32 leaves)
191191
{
192-
uint32_t base, eax, signature[3];
192+
u32 base, eax, signature[3];
193193

194194
for_each_possible_hypervisor_cpuid_base(base) {
195195
cpuid(base, &eax, &signature[0], &signature[1], &signature[2]);

0 commit comments

Comments
 (0)