[PATCH 05/11] EDAC: Move edac_op_state to edac_mc.c

From: Borislav Petkov
Date: Thu Apr 06 2017 - 05:07:15 EST


From: Borislav Petkov <bp@xxxxxxx>

... as part of moving stuff away from edac_stub.c

Signed-off-by: Borislav Petkov <bp@xxxxxxx>
---
drivers/edac/edac_mc.c | 3 +++
drivers/edac/edac_stub.c | 3 ---
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c
index 482b6aea1ce7..681387d20fb9 100644
--- a/drivers/edac/edac_mc.c
+++ b/drivers/edac/edac_mc.c
@@ -40,6 +40,9 @@
#define edac_atomic_scrub(va, size) do { } while (0)
#endif

+int edac_op_state = EDAC_OPSTATE_INVAL;
+EXPORT_SYMBOL_GPL(edac_op_state);
+
/* lock to memory controller's control array */
static DEFINE_MUTEX(mem_ctls_mutex);
static LIST_HEAD(mc_devices);
diff --git a/drivers/edac/edac_stub.c b/drivers/edac/edac_stub.c
index f02d21d8130f..aa31cbd17cd2 100644
--- a/drivers/edac/edac_stub.c
+++ b/drivers/edac/edac_stub.c
@@ -17,9 +17,6 @@
#include <linux/atomic.h>
#include <linux/device.h>

-int edac_op_state = EDAC_OPSTATE_INVAL;
-EXPORT_SYMBOL_GPL(edac_op_state);
-
int edac_report_status = EDAC_REPORTING_ENABLED;
EXPORT_SYMBOL_GPL(edac_report_status);

--
2.11.0