[PATCH] RAS/AMD/FMPM: Fix build when debugfs is not enabled

From: Borislav Petkov
Date: Mon Mar 25 2024 - 14:48:23 EST


From: "Borislav Petkov (AMD)" <bp@xxxxxxxxx>

Have the driver depend on DEBUG_FS as it is useless without it.

Fixes: 6f15e617cc99 ("RAS: Introduce a FRU memory poison manager")
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218640
Reported-by: anthony s.k. <akira.2020@xxxxxxxxxxxxxx>
Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>
Cc: Yazen Ghannam <yazen.ghannam@xxxxxxx>
---
drivers/ras/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ras/Kconfig b/drivers/ras/Kconfig
index fc4f4bb94a4c..41697e326fa6 100644
--- a/drivers/ras/Kconfig
+++ b/drivers/ras/Kconfig
@@ -37,7 +37,7 @@ source "drivers/ras/amd/atl/Kconfig"
config RAS_FMPM
tristate "FRU Memory Poison Manager"
default m
- depends on AMD_ATL && ACPI_APEI
+ depends on AMD_ATL && ACPI_APEI && DEBUG_FS
help
Support saving and restoring memory error information across reboot
using ACPI ERST as persistent storage. Error information is saved with
--
2.43.0