diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-24 00:07:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-24 00:07:40 -0400 |
commit | 5f2e8e2b0bf0f3a1819b25f6117a7f20bd15521d (patch) | |
tree | f7188c9376072d0ad37ae06832a2554dec320c67 /kernel | |
parent | 5e152b4c9e0fce6149c74406346a7ae7e7a17727 (diff) |
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 4eec42f39204 ("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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/watchdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 6e63097fa73a..7daa4b072e9f 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c | |||
@@ -98,7 +98,7 @@ __setup("nosoftlockup", nosoftlockup_setup); | |||
98 | * the thresholds with a factor: we make the soft threshold twice the amount of | 98 | * the thresholds with a factor: we make the soft threshold twice the amount of |
99 | * time the hard threshold is. | 99 | * time the hard threshold is. |
100 | */ | 100 | */ |
101 | static int get_softlockup_thresh() | 101 | static int get_softlockup_thresh(void) |
102 | { | 102 | { |
103 | return watchdog_thresh * 2; | 103 | return watchdog_thresh * 2; |
104 | } | 104 | } |