Skip to contentSkip to conversation

clocksource: mxs_timer: add missing semicolon when DEBUG is defined

PATCH Superseded [email protected] 2 participants 3 messages Jan 18, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clocksource: mxs_timer: add missing semicolon when DEBUG is defined

From: Tom Rix <[email protected]>

When DEBUG is defined this error occurs

drivers/clocksource/mxs_timer.c:138:1: error:
expected ‘;’ before ‘}’ token

The preceding statement needs a semicolon.

Fixes eb8703e2ef7c ("clockevents/drivers/mxs: Migrate to new 'set-state' interface")
---
 drivers/clocksource/mxs_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/mxs_timer.c +1 -1
index bc96a4cbf26c..55aa6b72d075 100644
@@ -133,7 +133,7 @@ static void mxs_irq_clear(char *state)
 	timrot_irq_acknowledge();
 
 #ifdef DEBUG
-	pr_info("%s: changing mode to %s\n", __func__, state)
+	pr_info("%s: changing mode to %s\n", __func__, state);
 #endif /* DEBUG */
 }
 
Signature · 7 lines
2.27.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
Quoted 20 lines · On 18/01/2021 14:49, [email protected] wrote:

From: Tom Rix <[email protected]>

When DEBUG is defined this error occurs

drivers/clocksource/mxs_timer.c:138:1: error:
expected ‘;’ before ‘}’ token

The preceding statement needs a semicolon.

Fixes eb8703e2ef7c ("clockevents/drivers/mxs: Migrate to new 'set-state' interface")
---
 drivers/clocksource/mxs_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/mxs_timer.c +0 -0
index bc96a4cbf26c..55aa6b72d075 100644

drivers/clocksource/mxs_timer.c static void mxs_irq_clear(char *state) · line 137

Quoted 6 lines
drivers/clocksource/mxs_timer.c +1 -1
@@ -133,7 +133,7 @@ static void mxs_irq_clear(char *state)
 	timrot_irq_acknowledge();
 
 #ifdef DEBUG
-	pr_info("%s: changing mode to %s\n", __func__, state)
+	pr_info("%s: changing mode to %s\n", __func__, state);
 #endif /* DEBUG */

Mind to replace by pr_debug and remove the #ifdef ?

Quoted 3 lines
drivers/clocksource/mxs_timer.c +0 -0
 }
 
Signature · 10 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author
#2 lore raw
Quoted 23 lines · Daniel Lezcano
Quoted 22 lines · On 18/01/2021 14:49, [email protected] wrote:

From: Tom Rix <[email protected]>

When DEBUG is defined this error occurs

drivers/clocksource/mxs_timer.c:138:1: error:
expected ‘;’ before ‘}’ token

The preceding statement needs a semicolon.

Fixes eb8703e2ef7c ("clockevents/drivers/mxs: Migrate to new 'set-state' interface")
---
 drivers/clocksource/mxs_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/mxs_timer.c +0 -0
index bc96a4cbf26c..55aa6b72d075 100644
@@ -133,7 +133,7 @@ static void mxs_irq_clear(char *state)
 	timrot_irq_acknowledge();
 
Quoted 5 lines

drivers/clocksource/mxs_timer.c static void mxs_irq_clear(char *state) · line 137

Quoted 4 lines
drivers/clocksource/mxs_timer.c +1 -1
 #ifdef DEBUG
-	pr_info("%s: changing mode to %s\n", __func__, state)
+	pr_info("%s: changing mode to %s\n", __func__, state);
 #endif /* DEBUG */

Mind to replace by pr_debug and remove the #ifdef ?

ok.

Quoted 5 lines

drivers/clocksource/mxs_timer.c static void mxs_irq_clear(char *state) · line 139

Quoted 4 lines
drivers/clocksource/mxs_timer.c +0 -0
 }
 

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel