projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b4a270
)
watchdog: Fix section mismatch and potential undefined behavior.
author
David Daney
<
[email protected]
>
Fri, 5 Nov 2010 23:17:39 +0000
(16:17 -0700)
committer
Linus Torvalds
<
[email protected]
>
Sat, 6 Nov 2010 00:45:35 +0000
(17:45 -0700)
Commit
d9ca07a05ce1
("watchdog: Avoid kernel crash when disabling
watchdog") introduces a section mismatch.
Now that we reference no_watchdog from non-__init code it can no longer
be __initdata.
Signed-off-by: David Daney <
[email protected]
>
Cc: Stephane Eranian <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/watchdog.c
patch
|
blob
|
history
diff --git
a/kernel/watchdog.c
b/kernel/watchdog.c
index bafba687a6d849a11f0201acd3d7ae5e63e9301e..6e3c41a4024c1cc66be01218e2c37498498f2469 100644
(file)
--- a/
kernel/watchdog.c
+++ b/
kernel/watchdog.c
@@
-43,7
+43,7
@@
static DEFINE_PER_CPU(unsigned long, hrtimer_interrupts_saved);
static DEFINE_PER_CPU(struct perf_event *, watchdog_ev);
#endif
-static int
__initdata
no_watchdog;
+static int no_watchdog;
/* boot commands */