[PATCH] x86: Fix warnings in dmi.h
From: huzhi001
Date: Wed Jul 12 2023 - 08:09:12 EST
The following checkpatch warnings are removed:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Signed-off-by: ZhiHu <huzhi001@xxxxxxxxxx>
---
arch/x86/include/asm/dmi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/dmi.h b/arch/x86/include/asm/dmi.h
index b825cb201251..ca2f6254ca4f 100644
--- a/arch/x86/include/asm/dmi.h
+++ b/arch/x86/include/asm/dmi.h
@@ -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));
}