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 4eec42f392 ("watchdog: Change
the default timeout and configure nmi watchdog period based").

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-05-23 21:07:40 -07:00
parent 5e152b4c9e
commit 5f2e8e2b0b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}