Skip to content

Commit

Permalink
kernel/watchdog.c: Use proper ANSI C prototypes
Browse files Browse the repository at this point in the history
We try to enforce it by using -Wstrict-prototypes, but apparently they
sometimes get through.  Introduced by 4eec42f ("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>
  • Loading branch information
Linus Torvalds committed May 24, 2011
1 parent 5e152b4 commit 5f2e8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5f2e8e2

Please sign in to comment.