Skip to contentSkip to conversation

treewide: Complete variable type

PATCH In review Xin Gao 2 participants 2 messages Aug 15, 2022 – Aug 16, 2022 PowerPC

lore
Share & tools
lore

Xin Gao

author
#0 lore raw

PATCH 1/1 treewide: Complete variable type

It is better to use "unsigned int" instead of "unsigned", line 24.

---
 arch/powerpc/boot/epapr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/boot/epapr.c +1 -1
index 7c5b26ade6c4..4133bee28673 100644
@@ -21,7 +21,7 @@ BSS_STACK(4096);
 #define EPAPR_SMAGIC	0x65504150
 #define EPAPR_EMAGIC	0x45504150
 
-static unsigned epapr_magic;
+static unsigned int epapr_magic;
 static unsigned long ima_size;
 static unsigned long fdt_addr;
 
Signature · 1 line
2.30.2
#1 lore raw

Le 15/08/2022 à 21:53, Xin Gao a écrit :

Quoted 1 line

It is better to use "unsigned int" instead of "unsigned", line 24.

The Subject in wrong: It is not a treewide patch but only a powerpc patch as far as I understand.

Christophe

Quoted 22 lines
---
  arch/powerpc/boot/epapr.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/boot/epapr.c +1 -2
index 7c5b26ade6c4..4133bee28673 100644
@@ -21,7 +21,7 @@ BSS_STACK(4096);
  #define EPAPR_SMAGIC   0x65504150
  #define EPAPR_EMAGIC   0x45504150
 
-static unsigned epapr_magic;
+static unsigned int epapr_magic;
  static unsigned long ima_size;
  static unsigned long fdt_addr;
 
--

2.30.2