mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: xuanzhenggang001@208suo.com
To: geert@linux-m68k.org
Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org
Subject: [PATCH] m68k: q40: prefer 'unsigned int' to bare use of 'unsigned'
Date: Sat, 08 Jul 2023 23:51:40 +0800	[thread overview]
Message-ID: <4d862263222c7358840745c2cd0ce0fa@208suo.com> (raw)
In-Reply-To: <tencent_7098E5576B2FD785B3A3B9CD6CE0643D4C07@qq.com>

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:

       reply	other threads:[~2023-07-08 15:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <tencent_7098E5576B2FD785B3A3B9CD6CE0643D4C07@qq.com>
2023-07-08 15:51 ` xuanzhenggang001 [this message]
2023-07-24  8:55   ` Geert Uytterhoeven

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=4d862263222c7358840745c2cd0ce0fa@208suo.com \
    --to=xuanzhenggang001@208suo.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@lists.linux-m68k.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®