Commit bd58782
vmcoreinfo: make hwerr_data visible for debugging
If the kernel is compiled with LTO, hwerr_data symbol might be lost, and
vmcoreinfo doesn't have it dumped. This is currently seen in some
production kernels with LTO enabled.
Remove the static qualifier from hwerr_data so that the information is
still preserved when the kernel is built with LTO. Making hwerr_data a
global symbol ensures its debug info survives the LTO link process and
appears in kallsyms. Also document it, so it doesn't get removed in
the future as suggested by akpm.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 3fa805c ("vmcoreinfo: track and log recoverable hardware errors")
Signed-off-by: Breno Leitao <[email protected]>
Acked-by: Baoquan He <[email protected]>
Cc: Dave Young <[email protected]>
Cc: "Luck, Tony" <[email protected]>
Cc: Omar Sandoval <[email protected]>
Cc: Shuai Xue <[email protected]>
Cc: Vivek Goyal <[email protected]>
Cc: Zhiquan Li <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>1 parent 12b2285 commit bd58782
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
0 commit comments