diff options
| author | Andi Kleen <[email protected]> | 2017-11-17 23:27:06 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2017-11-18 00:10:01 +0000 |
| commit | aaf5dcfb223617ac2d16113e4b500199c65689de (patch) | |
| tree | 708dbc2baef2f18cfb368b2e785642f6a4ece283 /lib/dynamic_debug.c | |
| parent | kernel debug: support resetting WARN*_ONCE (diff) | |
| download | kernel-aaf5dcfb223617ac2d16113e4b500199c65689de.tar.gz kernel-aaf5dcfb223617ac2d16113e4b500199c65689de.zip | |
kernel debug: support resetting WARN_ONCE for all architectures
Some architectures store the WARN_ONCE state in the flags field of the
bug_entry. Clear that one too when resetting once state through
/sys/kernel/debug/clear_warn_once
Pointed out by Michael Ellerman
Improves the earlier patch that add clear_warn_once.
[[email protected]: add a missing ifdef CONFIG_MODULES]
Link: http://lkml.kernel.org/r/[email protected]
[[email protected]: fix unused var warning]
[[email protected]: Use 0200 for clear_warn_once file, per mpe]
[[email protected]: clear BUGFLAG_DONE in clear_once_table(), per mpe]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Andi Kleen <[email protected]>
Tested-by: Michael Ellerman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
