EDAC, ghes: Do not register instance if platform is not whitelisted
Borislav Petkov
maintainerQuoted 8 lines · Toshi
Umm..., I do not think this change is correct. This causes an error to
ghes_probe(), which disables GHES itself. ghes andghes_edacare separate modules. That is,ghes_edacworks on top of ghes as an optional module.I think the right fix is to simply remove the error message. This will make it consistent with the case of
CONFIG_EDAC_GHESdisabled. Please seeinclude/acpi/ghes.h.
I guess. Although an even right-er fix would be to not call ghes_edac_report_mem_error() at all, if there's no ghes_edac module registered.
That would need more dissecting though....