linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] treewide: Complete variable type
@ 2022-08-15 19:53 Xin Gao
  2022-08-16  6:42 ` Christophe Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: Xin Gao @ 2022-08-15 19:53 UTC (permalink / raw)
  To: mpe; +Cc: benh, linuxppc-dev, linux-kernel, Xin Gao

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

Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
---
 arch/powerpc/boot/epapr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/boot/epapr.c b/arch/powerpc/boot/epapr.c
index 7c5b26ade6c4..4133bee28673 100644
--- a/arch/powerpc/boot/epapr.c
+++ b/arch/powerpc/boot/epapr.c
@@ -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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] treewide: Complete variable type
  2022-08-15 19:53 [PATCH] treewide: Complete variable type Xin Gao
@ 2022-08-16  6:42 ` Christophe Leroy
  0 siblings, 0 replies; 2+ messages in thread
From: Christophe Leroy @ 2022-08-16  6:42 UTC (permalink / raw)
  To: Xin Gao, mpe; +Cc: linuxppc-dev, linux-kernel



Le 15/08/2022 à 21:53, Xin Gao a écrit :
> 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

> 
> Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
> ---
>   arch/powerpc/boot/epapr.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/powerpc/boot/epapr.c b/arch/powerpc/boot/epapr.c
> index 7c5b26ade6c4..4133bee28673 100644
> --- a/arch/powerpc/boot/epapr.c
> +++ b/arch/powerpc/boot/epapr.c
> @@ -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
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-16  8:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-15 19:53 [PATCH] treewide: Complete variable type Xin Gao
2022-08-16  6:42 ` Christophe Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).