linux-stable/drivers/ras
Tony Luck 50865c14f3 RAS: Fix return value from show_trace()
Documentation/filesystems/seq_file.rst describes the possible return
values from a "show()" function used by single_open().

show_trace() returns the value of "trace_count". This could be
interpreted as "SEQ_SKIP", or just confuse the calling function.

Change to just return "0" to avoid confusing anyone reading this code
and possibly using as a template. Reading "daemon_active" was never
an intended use case.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20221018165900.109029-1-tony.luck@intel.com
2022-10-31 18:55:18 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile RAS: Build debugfs.o only when enabled in Kconfig 2019-08-08 17:44:02 +02:00
cec.c RAS/CEC: Reduce offline page threshold for Intel systems 2022-08-22 19:30:02 +02:00
debugfs.c RAS: Fix return value from show_trace() 2022-10-31 18:55:18 +01:00
debugfs.h
ras.c RAS: Use consistent types for UUIDs 2019-01-25 16:40:40 +01:00