mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86: Fix warnings in dmi.h
       [not found] <tencent_068F41CEDE5E2BBE8CCEE6AC16AE3ABFCE05@qq.com>
@ 2023-07-12 12:08 ` huzhi001
  0 siblings, 0 replies; only message in thread
From: huzhi001 @ 2023-07-12 12:08 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, x86; +Cc: hpa, linux-kernel

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

Signed-off-by: ZhiHu <huzhi001@208suo.com>
---
  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));
  }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-12 12:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <tencent_068F41CEDE5E2BBE8CCEE6AC16AE3ABFCE05@qq.com>
2023-07-12 12:08 ` [PATCH] x86: Fix warnings in dmi.h huzhi001

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®