mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: xuanzhenggang001@208suo.com
To: catalin.marinas@arm.com, will@kernel.org
Cc: mark.rutland@arm.com, ryan.roberts@arm.com,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH] arm64: mm: prefer 'unsigned int' to bare use of 'unsigned'
Date: Sun, 09 Jul 2023 20:05:21 +0800	[thread overview]
Message-ID: <7b527a83b74ebb9eca3026e4b85eb9d8@208suo.com> (raw)
In-Reply-To: <20230709115215.52448-1-denghuilong@cdjrlc.com>

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)

           reply	other threads:[~2023-07-09 12:05 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20230709115215.52448-1-denghuilong@cdjrlc.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7b527a83b74ebb9eca3026e4b85eb9d8@208suo.com \
    --to=xuanzhenggang001@208suo.com \
    --cc=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=ryan.roberts@arm.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®