Skip to contentSkip to conversation

EDAC, ghes: Do not register instance if platform is not whitelisted

DISCUSSION Borislav Petkov 1 participant 1 message Apr 23, 2018 EDAC-core

lore
Share & tools
lore

Borislav Petkov

author maintainer
#0 lore raw
Quoted 8 lines · Toshi

Umm..., I do not think this change is correct. This causes an error to ghes_probe(), which disables GHES itself. ghes and ghes_edac are separate modules. That is, ghes_edac works 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_GHES disabled. Please see include/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....