summaryrefslogtreecommitdiff
path: root/drivers/edac/edac_module.h
diff options
context:
space:
mode:
authorJia He <justin.he@arm.com>2022-10-10 05:35:57 +0300
committerBorislav Petkov <bp@suse.de>2022-10-21 23:09:54 +0300
commit315bada690e0c4a5c268a1dd3601aefd3355773f (patch)
tree944ab33e07d51e69893ee76f73fa095b49f9b207 /drivers/edac/edac_module.h
parent802e7f1dfed7cc7fb309995e0c4138f08977fdfc (diff)
downloadlinux-315bada690e0c4a5c268a1dd3601aefd3355773f.tar.xz
EDAC: Check for GHES preference in the chipset-specific EDAC drivers
Call ghes_get_devices() to check whether ghes_edac should be used on the platform where it is preferred over the corresponding chipset-specific EDAC driver. Unlike the existing edac_get_owner() check, the ghes_get_devices() check works independent to the module_init ordering. [ bp: Massage. ] Suggested-by: Toshi Kani <toshi.kani@hpe.com> Signed-off-by: Jia He <justin.he@arm.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/20221010023559.69655-6-justin.he@arm.com
Diffstat (limited to 'drivers/edac/edac_module.h')
-rw-r--r--drivers/edac/edac_module.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/edac/edac_module.h b/drivers/edac/edac_module.h
index 50ed9f2425bb..763c076d96f2 100644
--- a/drivers/edac/edac_module.h
+++ b/drivers/edac/edac_module.h
@@ -11,6 +11,7 @@
#ifndef __EDAC_MODULE_H__
#define __EDAC_MODULE_H__
+#include <acpi/ghes.h>
#include "edac_mc.h"
#include "edac_pci.h"
#include "edac_device.h"