]> Git Repo - J-linux.git/commit
RAS: Avoid build errors when CONFIG_DEBUG_FS=n
authorYazen Ghannam <[email protected]>
Tue, 26 Mar 2024 20:32:52 +0000 (20:32 +0000)
committerBorislav Petkov (AMD) <[email protected]>
Tue, 26 Mar 2024 20:48:21 +0000 (21:48 +0100)
commita6b227d70d2ad9eb08adc3fe532ebb7ec88ac897
tree4a05ae89710992ac092359774d701cd29bdbb80b
parent9b195439e0c54b9b9b55b2d68706b48739911519
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: 9d2b6fa09d15 ("RAS: Export helper to get ras_debugfs_dir")
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218640
Reported-by: anthony s. knowles <[email protected]>
Signed-off-by: Yazen Ghannam <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Tested-by: anthony s. knowles <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
drivers/ras/debugfs.h
This page took 0.045766 seconds and 4 git commands to generate.