mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arm64: mm: prefer 'unsigned int' to bare use of 'unsigned'
       [not found] <20230709115215.52448-1-denghuilong@cdjrlc.com>
@ 2023-07-09 12:05 ` xuanzhenggang001
  0 siblings, 0 replies; only message in thread
From: xuanzhenggang001 @ 2023-07-09 12:05 UTC (permalink / raw)
  To: catalin.marinas, will
  Cc: mark.rutland, ryan.roberts, linux-arm-kernel, linux-kernel

Fix the following warnings reported by checkpatch:

arch/arm64/mm/ptdump.c:207: WARNING: Prefer 'unsigned int' to bare use 
of 'unsigned'
arch/arm64/mm/ptdump.c:334: WARNING: Prefer 'unsigned int' to bare use 
of 'unsigned'

Signed-off-by: Zhenggang Xuan <xuanzhenggang001@208suo.com>
---
  arch/arm64/mm/ptdump.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/mm/ptdump.c b/arch/arm64/mm/ptdump.c
index e305b6593c4e..0a755fddbcf2 100644
--- a/arch/arm64/mm/ptdump.c
+++ b/arch/arm64/mm/ptdump.c
@@ -204,7 +204,7 @@ static struct pg_level pg_level[] = {
  static void dump_prot(struct pg_state *st, const struct prot_bits 
*bits,
              size_t num)
  {
-    unsigned i;
+    unsigned int i;

      for (i = 0; i < num; i++, bits++) {
          const char *s;
@@ -331,7 +331,7 @@ void ptdump_walk(struct seq_file *s, struct 
ptdump_info *info)

  static void __init ptdump_initialize(void)
  {
-    unsigned i, j;
+    unsigned int i, j;

      for (i = 0; i < ARRAY_SIZE(pg_level); i++)
          if (pg_level[i].bits)

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230709115215.52448-1-denghuilong@cdjrlc.com>
2023-07-09 12:05 ` [PATCH] arm64: mm: prefer 'unsigned int' to bare use of 'unsigned' xuanzhenggang001

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®