linux/drivers/ras
Yazen Ghannam a6b227d70d RAS: Avoid build errors when CONFIG_DEBUG_FS=n
A new helper was introduced for RAS modules to be able to get the RAS
subsystem debugfs root directory. The helper is defined in debugfs.c
which is only built when CONFIG_DEBUG_FS=y.

However, it's possible that the modules would include debugfs support
for optional functionality. One current example is the fmpm module. In
this case, a build error will occur when CONFIG_RAS_FMPM is selected and
CONFIG_DEBUG_FS=n.

Add an inline helper function stub for the CONFIG_DEBUG_FS=n case as the
fmpm module can function without the debugfs functionality too.

Fixes: 9d2b6fa09d ("RAS: Export helper to get ras_debugfs_dir")
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218640
Reported-by: anthony s. knowles <akira.2020@protonmail.com>
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: anthony s. knowles <akira.2020@protonmail.com>
Link: https://lore.kernel.org/r/20240325183755.776-1-bp@alien8.de
2024-03-26 21:48:21 +01:00
..
amd RAS/AMD/FMPM: Safely handle saved records of various sizes 2024-03-25 19:00:44 +01:00
cec.c RAS: Export helper to get ras_debugfs_dir 2024-03-01 16:55:10 +01:00
debugfs.c RAS: Export helper to get ras_debugfs_dir 2024-03-01 16:55:10 +01:00
debugfs.h RAS: Avoid build errors when CONFIG_DEBUG_FS=n 2024-03-26 21:48:21 +01:00
Kconfig RAS: Introduce a FRU memory poison manager 2024-02-20 18:56:15 +01:00
Makefile RAS: Introduce a FRU memory poison manager 2024-02-20 18:56:15 +01:00
ras.c