* [PATCH] m68k: q40: prefer 'unsigned int' to bare use of 'unsigned'
[not found] <tencent_7098E5576B2FD785B3A3B9CD6CE0643D4C07@qq.com>
@ 2023-07-08 15:51 ` xuanzhenggang001
2023-07-24 8:55 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: xuanzhenggang001 @ 2023-07-08 15:51 UTC (permalink / raw)
To: geert; +Cc: linux-m68k, linux-kernel
Fix the following warnings reported by checkpatch:
./arch/m68k/q40/q40ints.c:172: WARNING: Prefer 'unsigned int' to bare
use of 'unsigned'
./arch/m68k/q40/q40ints.c:211: WARNING: Prefer 'unsigned int' to bare
use of 'unsigned'
Signed-off-by: Zhenggang Xuan <xuanzhenggang001@208suo.com>
---
arch/m68k/q40/q40ints.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/m68k/q40/q40ints.c b/arch/m68k/q40/q40ints.c
index 127d7ecdbd49..9605d7b6cb30 100644
--- a/arch/m68k/q40/q40ints.c
+++ b/arch/m68k/q40/q40ints.c
@@ -169,7 +169,7 @@ void q40_sched_init (void)
*
*/
-struct IRQ_TABLE{ unsigned mask; int irq ;};
+struct IRQ_TABLE { unsigned int mask ; int irq ; };
#if 0
static struct IRQ_TABLE iirqs[]={
{Q40_IRQ_FRAME_MASK,Q40_IRQ_FRAME},
@@ -208,7 +208,7 @@ static int aliased_irq; /* how many times
inside handler ?*/
/* got interrupt, dispatch to ISA or keyboard/timer IRQs */
static void q40_irq_handler(unsigned int irq, struct pt_regs *fp)
{
- unsigned mir, mer;
+ unsigned int mir, mer;
int i;
//repeat:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] m68k: q40: prefer 'unsigned int' to bare use of 'unsigned'
2023-07-08 15:51 ` [PATCH] m68k: q40: prefer 'unsigned int' to bare use of 'unsigned' xuanzhenggang001
@ 2023-07-24 8:55 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2023-07-24 8:55 UTC (permalink / raw)
To: xuanzhenggang001; +Cc: linux-m68k, linux-kernel
Hi Zhenggang,
On Sat, Jul 8, 2023 at 6:06 PM <xuanzhenggang001@208suo.com> wrote:
> Fix the following warnings reported by checkpatch:
>
> ./arch/m68k/q40/q40ints.c:172: WARNING: Prefer 'unsigned int' to bare
> use of 'unsigned'
> ./arch/m68k/q40/q40ints.c:211: WARNING: Prefer 'unsigned int' to bare
> use of 'unsigned'
>
> Signed-off-by: Zhenggang Xuan <xuanzhenggang001@208suo.com>
Thanks for your patch!
But obviously you forgot to run scripts/checkpatch.pl on your own patch:
WARNING: From:/Signed-off-by: email name mismatch: 'From:
xuanzhenggang001@208suo.com' != 'Signed-off-by: Zhenggang Xuan
<xuanzhenggang001@208suo.com>'
> --- a/arch/m68k/q40/q40ints.c
> +++ b/arch/m68k/q40/q40ints.c
> @@ -169,7 +169,7 @@ void q40_sched_init (void)
> *
> */
>
> -struct IRQ_TABLE{ unsigned mask; int irq ;};
> +struct IRQ_TABLE { unsigned int mask ; int irq ; };
> #if 0
> static struct IRQ_TABLE iirqs[]={
> {Q40_IRQ_FRAME_MASK,Q40_IRQ_FRAME},
> @@ -208,7 +208,7 @@ static int aliased_irq; /* how many times
> inside handler ?*/
> /* got interrupt, dispatch to ISA or keyboard/timer IRQs */
> static void q40_irq_handler(unsigned int irq, struct pt_regs *fp)
> {
> - unsigned mir, mer;
> + unsigned int mir, mer;
This part is white-space damaged, and thus fails to apply.
> int i;
>
> //repeat:
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-24 8:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <tencent_7098E5576B2FD785B3A3B9CD6CE0643D4C07@qq.com>
2023-07-08 15:51 ` [PATCH] m68k: q40: prefer 'unsigned int' to bare use of 'unsigned' xuanzhenggang001
2023-07-24 8:55 ` Geert Uytterhoeven
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®