EDAC: Rename report status accessors
authorBorislav Petkov <bp@suse.de>
Sat, 4 Feb 2017 17:10:14 +0000 (18:10 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 10 Apr 2017 15:15:02 +0000 (17:15 +0200)
Change them to have the edac_ prefix.

No functionality change.

Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/acpi/acpi_extlog.c
drivers/edac/edac_mc.c
drivers/edac/pnd2_edac.c
drivers/edac/sb_edac.c
drivers/edac/skx_edac.c
include/linux/edac.h

index a15270a806fcab41bae160937cb09c11515056f2..502ea4dc208060d4daa2d1c296bf1b3545b4278a 100644 (file)
@@ -229,7 +229,7 @@ static int __init extlog_init(void)
        if (!(cap & MCG_ELOG_P) || !extlog_get_l1addr())
                return -ENODEV;
 
-       if (get_edac_report_status() == EDAC_REPORTING_FORCE) {
+       if (edac_get_report_status() == EDAC_REPORTING_FORCE) {
                pr_warn("Not loading eMCA, error reporting force-enabled through EDAC.\n");
                return -EPERM;
        }
@@ -285,8 +285,8 @@ static int __init extlog_init(void)
         * eMCA event report method has higher priority than EDAC method,
         * unless EDAC event report method is mandatory.
         */
-       old_edac_report_status = get_edac_report_status();
-       set_edac_report_status(EDAC_REPORTING_DISABLED);
+       old_edac_report_status = edac_get_report_status();
+       edac_set_report_status(EDAC_REPORTING_DISABLED);
        mce_register_decode_chain(&extlog_mce_dec);
        /* enable OS to be involved to take over management from BIOS */
        ((struct extlog_l1_head *)extlog_l1_addr)->flags |= FLAG_OS_OPTIN;
@@ -308,7 +308,7 @@ err:
 
 static void __exit extlog_exit(void)
 {
-       set_edac_report_status(old_edac_report_status);
+       edac_set_report_status(old_edac_report_status);
        mce_unregister_decode_chain(&extlog_mce_dec);
        ((struct extlog_l1_head *)extlog_l1_addr)->flags &= ~FLAG_OS_OPTIN;
        if (extlog_l1_addr)
index 536b65aa6facfebc590051db84bcf226609f20be..480072139b7aa00db3d27d9381c0e6eace04835e 100644 (file)
@@ -57,20 +57,20 @@ static void const *edac_mc_owner;
 
 static struct bus_type mc_bus[EDAC_MAX_MCS];
 
-int get_edac_report_status(void)
+int edac_get_report_status(void)
 {
        return edac_report;
 }
-EXPORT_SYMBOL_GPL(get_edac_report_status);
+EXPORT_SYMBOL_GPL(edac_get_report_status);
 
-void set_edac_report_status(int new)
+void edac_set_report_status(int new)
 {
        if (new == EDAC_REPORTING_ENABLED ||
            new == EDAC_REPORTING_DISABLED ||
            new == EDAC_REPORTING_FORCE)
                edac_report = new;
 }
-EXPORT_SYMBOL_GPL(set_edac_report_status);
+EXPORT_SYMBOL_GPL(edac_set_report_status);
 
 static int edac_report_set(const char *str, const struct kernel_param *kp)
 {
index 928e0dba41fc2351793a7924830ad53259bdfb6e..1cad5a9af8d008081d0bc5f5564ad931452ac002 100644 (file)
@@ -1349,7 +1349,7 @@ static int pnd2_mce_check_error(struct notifier_block *nb, unsigned long val, vo
        struct dram_addr daddr;
        char *type;
 
-       if (get_edac_report_status() == EDAC_REPORTING_DISABLED)
+       if (edac_get_report_status() == EDAC_REPORTING_DISABLED)
                return NOTIFY_DONE;
 
        mci = pnd2_mci;
index a65ea44e3b0bf66294c0c32effb774c9d3c23622..ea21cb651b3c0b2b23be44b8a03feaaeb27834f7 100644 (file)
@@ -3075,7 +3075,7 @@ static int sbridge_mce_check_error(struct notifier_block *nb, unsigned long val,
        struct sbridge_pvt *pvt;
        char *type;
 
-       if (get_edac_report_status() == EDAC_REPORTING_DISABLED)
+       if (edac_get_report_status() == EDAC_REPORTING_DISABLED)
                return NOTIFY_DONE;
 
        mci = get_mci_for_node_id(mce->socketid);
@@ -3441,7 +3441,7 @@ static int __init sbridge_init(void)
 
        if (rc >= 0) {
                mce_register_decode_chain(&sbridge_mce_dec);
-               if (get_edac_report_status() == EDAC_REPORTING_DISABLED)
+               if (edac_get_report_status() == EDAC_REPORTING_DISABLED)
                        sbridge_printk(KERN_WARNING, "Loading driver, error reporting disabled.\n");
                return 0;
        }
index 1159dba4671fef926afce7164cd278faf23c2e24..64bef6c9cfb4d3175838ec44cfda7a7aefc6a1a5 100644 (file)
@@ -971,7 +971,7 @@ static int skx_mce_check_error(struct notifier_block *nb, unsigned long val,
        struct mem_ctl_info *mci;
        char *type;
 
-       if (get_edac_report_status() == EDAC_REPORTING_DISABLED)
+       if (edac_get_report_status() == EDAC_REPORTING_DISABLED)
                return NOTIFY_DONE;
 
        /* ignore unless this is memory related with an address */
index faf87e1eca21d684c7b66a066a9da11b890f6ba7..8ae0f45fafd650f57b10b9db50cef9d91578506c 100644 (file)
@@ -30,8 +30,8 @@ struct device;
 extern int edac_op_state;
 
 struct bus_type *edac_get_sysfs_subsys(void);
-int get_edac_report_status(void);
-void set_edac_report_status(int new);
+int edac_get_report_status(void);
+void edac_set_report_status(int new);
 
 enum {
        EDAC_REPORTING_ENABLED,