Skip to contentSkip to conversation

arm64: mm: prefer 'unsigned int' to bare use of 'unsigned'

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

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 arm64: mm: prefer 'unsigned int' to bare use of 'unsigned'

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'

---
 arch/arm64/mm/ptdump.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/mm/ptdump.c +0 -0
index e305b6593c4e..0a755fddbcf2 100644
@@ -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)