Skip to contentSkip to conversation

kernel: fix silly warning

PATCH In review Alan Cox 2 participants 2 messages May 24, 2011

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 kernel: fix silly warning

() should be (void)

---

 kernel/watchdog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/watchdog.c +1 -1
index 6e63097..7daa4b0 100644
@@ -98,7 +98,7 @@ __setup("nosoftlockup", nosoftlockup_setup);
  * the thresholds with a factor: we make the soft threshold twice the amount of
  * time the hard threshold is.
  */
-static int get_softlockup_thresh()
+static int get_softlockup_thresh(void)
 {
 	return watchdog_thresh * 2;
 }
#1 lore raw
Quoted 13 lines · Alan Cox

() should be (void)

---

 kernel/watchdog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/watchdog.c +0 -0
index 6e63097..7daa4b0 100644

kernel/watchdog.c __setup("nosoftlockup", nosoftlockup_setup); · line 101

Quoted 5 lines
kernel/watchdog.c +1 -1
@@ -98,7 +98,7 @@ __setup("nosoftlockup", nosoftlockup_setup);
  * the thresholds with a factor: we make the soft threshold twice the amount of
  * time the hard threshold is.
  */
-static int get_softlockup_thresh()
+static int get_softlockup_thresh(void)

Yeah. This should already be fixed upstream, Linus pushed it out about 12 hours ago.

Thanks,

Ingo