30 #include <linux/kernel.h>
31 #include <linux/module.h>
42 #define HEST_PFX "HEST: "
69 len = hest_esrc_len_tab[hest_type];
96 for (i = 0; i < hest_tab->error_source_count; i++) {
97 len = hest_esrc_len(hest_hdr);
100 "Unknown or unused hardware error source "
101 "type: %d for hardware error source: %d.\n",
105 if ((
void *)hest_hdr + len >
106 (
void *)hest_tab + hest_tab->header.length) {
108 "Table contents overflow for hardware error source: %d.\n",
113 rc =
func(hest_hdr, data);
117 hest_hdr = (
void *)hest_hdr + len;
149 for (i = 0; i < ghes_arr->
count; i++) {
178 static int __init hest_ghes_dev_register(
unsigned int ghes_count)
181 struct ghes_arr ghes_arr;
195 for (i = 0; i < ghes_arr.
count; i++)
200 static int __init setup_hest_disable(
char *
str)
206 __setup(
"hest_disable", setup_hest_disable);
212 unsigned int ghes_count = 0;
237 rc = hest_ghes_dev_register(ghes_count);