Commit 5f2e8e2b authored by Linus Torvalds's avatar Linus Torvalds

kernel/watchdog.c: Use proper ANSI C prototypes

We try to enforce it by using -Wstrict-prototypes, but apparently they
sometimes get through.  Introduced by 4eec42f3 ("watchdog: Change
the default timeout and configure nmi watchdog period based").
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5e152b4c
...@@ -98,7 +98,7 @@ __setup("nosoftlockup", nosoftlockup_setup); ...@@ -98,7 +98,7 @@ __setup("nosoftlockup", nosoftlockup_setup);
* the thresholds with a factor: we make the soft threshold twice the amount of * the thresholds with a factor: we make the soft threshold twice the amount of
* time the hard threshold is. * time the hard threshold is.
*/ */
static int get_softlockup_thresh() static int get_softlockup_thresh(void)
{ {
return watchdog_thresh * 2; return watchdog_thresh * 2;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment