Skip to content

Commit a97d262

Browse files
committed
EDAC: Unexport and make edac_subsys static
... and use the accessor instead. Signed-off-by: Borislav Petkov <[email protected]>
1 parent 733476c commit a97d262

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

drivers/edac/edac_module.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,10 @@ static void edac_workqueue_teardown(void)
9595
* sysfs object: /sys/devices/system/edac
9696
* need to export to other files
9797
*/
98-
struct bus_type edac_subsys = {
98+
static struct bus_type edac_subsys = {
9999
.name = "edac",
100100
.dev_name = "edac",
101101
};
102-
EXPORT_SYMBOL_GPL(edac_subsys);
103102

104103
static int edac_subsys_init(void)
105104
{

include/linux/edac.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ struct device;
2828
extern int edac_op_state;
2929
extern int edac_err_assert;
3030
extern atomic_t edac_handlers;
31-
extern struct bus_type edac_subsys;
3231

3332
extern int edac_handler_set(void);
3433
extern void edac_atomic_assert_error(void);

0 commit comments

Comments
 (0)