Skip to contentSkip to conversation

x86: Fix warnings in dmi.h

PATCH New [email protected] 1 participant 1 message Jul 12, 2023 1 message not in the archive x86

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 x86: Fix warnings in dmi.h

The following checkpatch warnings are removed:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

---
 arch/x86/include/asm/dmi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/include/asm/dmi.h +1 -1
index b825cb201251..ca2f6254ca4f 100644
@@ -8,7 +8,7 @@
 
 #include <asm/setup.h>
 
-static __always_inline __init void *dmi_alloc(unsigned len)
+static __always_inline __init void *dmi_alloc(unsigned int len)
 {
     return extend_brk(len, sizeof(int));
 }