Skip to contentSkip to conversation

m68k: Complete variable type

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

Subsystems (2)
lore
Share & tools
lore

Xin Gao

author
#0 lore raw

PATCH 1/1 m68k: Complete variable type

Complete the variable type of line 109.

---
 arch/m68k/coldfire/m520x.c | 2 +-
 arch/m68k/q40/q40ints.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/m68k/coldfire/m520x.c +1 -1
index d2f96b40aee1..dca89214bbc6 100644
@@ -106,7 +106,7 @@ static struct clk * const disable_clks[] __initconst = {
 
 static void __init m520x_clk_init(void)
 {
-	unsigned i;
+	unsigned int i;
 
 	/* make sure these clocks are enabled */
 	for (i = 0; i < ARRAY_SIZE(enable_clks); ++i)
arch/m68k/q40/q40ints.c +1 -1
index 100c05544c6a..fdac8a0cb75f 100644
@@ -169,7 +169,7 @@ void q40_sched_init (void)
  *
 */
 
-struct IRQ_TABLE{ unsigned int 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},
Signature · 1 line
2.30.2
maintainer
#1 lore raw
Quoted 26 lines · Xin Gao

Complete the variable type of line 109.

---
  arch/m68k/coldfire/m520x.c | 2 +-
  arch/m68k/q40/q40ints.c    | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
arch/m68k/coldfire/m520x.c +1 -1
index d2f96b40aee1..dca89214bbc6 100644
@@ -106,7 +106,7 @@ static struct clk * const disable_clks[] __initconst = {
 
  static void __init m520x_clk_init(void)
  {
-	unsigned i;
+	unsigned int i;
 
  	/* make sure these clocks are enabled */
  	for (i = 0; i < ARRAY_SIZE(enable_clks); ++i)
arch/m68k/q40/q40ints.c +0 -0
index 100c05544c6a..fdac8a0cb75f 100644

arch/m68k/q40/q40ints.c void q40_sched_init (void) · line 175

Quoted 8 lines
arch/m68k/q40/q40ints.c +1 -1
@@ -169,7 +169,7 @@ void q40_sched_init (void)
   *
  */
 
-struct IRQ_TABLE{ unsigned int 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},

This last change doesn't match the commit message. It should be a separate patch.

Regards
Greg

#2 lore raw
Quoted 12 lines · Greg Ungerer

arch/m68k/q40/q40ints.c void q40_sched_init (void) · line 174

Quoted 8 lines · Xin Gao
arch/m68k/q40/q40ints.c +1 -1
@@ -169,7 +169,7 @@ void q40_sched_init (void)
   *
  */
-struct IRQ_TABLE{ unsigned int 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},

This last change doesn't match the commit message. It should be a separate patch.

The last change is not a valid C. Never had been.
In C semicolon is *NOT* a separator - it's a part of declaration.

Signature · 1 line
improve the kernel quality - git rm scripts/checkpatch.pl