Explorar o código

EDAC: Unexport and make edac_subsys static

... and use the accessor instead.

Signed-off-by: Borislav Petkov <bp@suse.de>
Borislav Petkov %!s(int64=9) %!d(string=hai) anos
pai
achega
a97d262701
Modificáronse 2 ficheiros con 1 adicións e 3 borrados
  1. 1 2
      drivers/edac/edac_module.c
  2. 0 1
      include/linux/edac.h

+ 1 - 2
drivers/edac/edac_module.c

@@ -95,11 +95,10 @@ static void edac_workqueue_teardown(void)
  * sysfs object: /sys/devices/system/edac
  * sysfs object: /sys/devices/system/edac
  *	need to export to other files
  *	need to export to other files
  */
  */
-struct bus_type edac_subsys = {
+static struct bus_type edac_subsys = {
 	.name = "edac",
 	.name = "edac",
 	.dev_name = "edac",
 	.dev_name = "edac",
 };
 };
-EXPORT_SYMBOL_GPL(edac_subsys);
 
 
 static int edac_subsys_init(void)
 static int edac_subsys_init(void)
 {
 {

+ 0 - 1
include/linux/edac.h

@@ -28,7 +28,6 @@ struct device;
 extern int edac_op_state;
 extern int edac_op_state;
 extern int edac_err_assert;
 extern int edac_err_assert;
 extern atomic_t edac_handlers;
 extern atomic_t edac_handlers;
-extern struct bus_type edac_subsys;
 
 
 extern int edac_handler_set(void);
 extern int edac_handler_set(void);
 extern void edac_atomic_assert_error(void);
 extern void edac_atomic_assert_error(void);