Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

EDAC: Rename report status accessors

Change them to have the edac_ prefix.

No functionality change.

Signed-off-by: Borislav Petkov <bp@suse.de>

+14 -14
+4 -4
drivers/acpi/acpi_extlog.c
··· 229 229 if (!(cap & MCG_ELOG_P) || !extlog_get_l1addr()) 230 230 return -ENODEV; 231 231 232 - if (get_edac_report_status() == EDAC_REPORTING_FORCE) { 232 + if (edac_get_report_status() == EDAC_REPORTING_FORCE) { 233 233 pr_warn("Not loading eMCA, error reporting force-enabled through EDAC.\n"); 234 234 return -EPERM; 235 235 } ··· 285 285 * eMCA event report method has higher priority than EDAC method, 286 286 * unless EDAC event report method is mandatory. 287 287 */ 288 - old_edac_report_status = get_edac_report_status(); 289 - set_edac_report_status(EDAC_REPORTING_DISABLED); 288 + old_edac_report_status = edac_get_report_status(); 289 + edac_set_report_status(EDAC_REPORTING_DISABLED); 290 290 mce_register_decode_chain(&extlog_mce_dec); 291 291 /* enable OS to be involved to take over management from BIOS */ 292 292 ((struct extlog_l1_head *)extlog_l1_addr)->flags |= FLAG_OS_OPTIN; ··· 308 308 309 309 static void __exit extlog_exit(void) 310 310 { 311 - set_edac_report_status(old_edac_report_status); 311 + edac_set_report_status(old_edac_report_status); 312 312 mce_unregister_decode_chain(&extlog_mce_dec); 313 313 ((struct extlog_l1_head *)extlog_l1_addr)->flags &= ~FLAG_OS_OPTIN; 314 314 if (extlog_l1_addr)
+4 -4
drivers/edac/edac_mc.c
··· 57 57 58 58 static struct bus_type mc_bus[EDAC_MAX_MCS]; 59 59 60 - int get_edac_report_status(void) 60 + int edac_get_report_status(void) 61 61 { 62 62 return edac_report; 63 63 } 64 - EXPORT_SYMBOL_GPL(get_edac_report_status); 64 + EXPORT_SYMBOL_GPL(edac_get_report_status); 65 65 66 - void set_edac_report_status(int new) 66 + void edac_set_report_status(int new) 67 67 { 68 68 if (new == EDAC_REPORTING_ENABLED || 69 69 new == EDAC_REPORTING_DISABLED || 70 70 new == EDAC_REPORTING_FORCE) 71 71 edac_report = new; 72 72 } 73 - EXPORT_SYMBOL_GPL(set_edac_report_status); 73 + EXPORT_SYMBOL_GPL(edac_set_report_status); 74 74 75 75 static int edac_report_set(const char *str, const struct kernel_param *kp) 76 76 {
+1 -1
drivers/edac/pnd2_edac.c
··· 1349 1349 struct dram_addr daddr; 1350 1350 char *type; 1351 1351 1352 - if (get_edac_report_status() == EDAC_REPORTING_DISABLED) 1352 + if (edac_get_report_status() == EDAC_REPORTING_DISABLED) 1353 1353 return NOTIFY_DONE; 1354 1354 1355 1355 mci = pnd2_mci;
+2 -2
drivers/edac/sb_edac.c
··· 3075 3075 struct sbridge_pvt *pvt; 3076 3076 char *type; 3077 3077 3078 - if (get_edac_report_status() == EDAC_REPORTING_DISABLED) 3078 + if (edac_get_report_status() == EDAC_REPORTING_DISABLED) 3079 3079 return NOTIFY_DONE; 3080 3080 3081 3081 mci = get_mci_for_node_id(mce->socketid); ··· 3441 3441 3442 3442 if (rc >= 0) { 3443 3443 mce_register_decode_chain(&sbridge_mce_dec); 3444 - if (get_edac_report_status() == EDAC_REPORTING_DISABLED) 3444 + if (edac_get_report_status() == EDAC_REPORTING_DISABLED) 3445 3445 sbridge_printk(KERN_WARNING, "Loading driver, error reporting disabled.\n"); 3446 3446 return 0; 3447 3447 }
+1 -1
drivers/edac/skx_edac.c
··· 971 971 struct mem_ctl_info *mci; 972 972 char *type; 973 973 974 - if (get_edac_report_status() == EDAC_REPORTING_DISABLED) 974 + if (edac_get_report_status() == EDAC_REPORTING_DISABLED) 975 975 return NOTIFY_DONE; 976 976 977 977 /* ignore unless this is memory related with an address */
+2 -2
include/linux/edac.h
··· 30 30 extern int edac_op_state; 31 31 32 32 struct bus_type *edac_get_sysfs_subsys(void); 33 - int get_edac_report_status(void); 34 - void set_edac_report_status(int new); 33 + int edac_get_report_status(void); 34 + void edac_set_report_status(int new); 35 35 36 36 enum { 37 37 EDAC_REPORTING_ENABLED,