hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/edac/edac_module.h
....@@ -28,7 +28,6 @@
2828 extern int edac_create_sysfs_mci_device(struct mem_ctl_info *mci,
2929 const struct attribute_group **groups);
3030 extern void edac_remove_sysfs_mci_device(struct mem_ctl_info *mci);
31
-void edac_unregister_sysfs(struct mem_ctl_info *mci);
3231 extern int edac_get_log_ue(void);
3332 extern int edac_get_log_ce(void);
3433 extern int edac_get_panic_on_ue(void);
....@@ -57,7 +56,7 @@
5756 bool edac_mod_work(struct delayed_work *work, unsigned long delay);
5857
5958 extern void edac_device_reset_delay_period(struct edac_device_ctl_info
60
- *edac_dev, unsigned long value);
59
+ *edac_dev, unsigned long msec);
6160 extern void edac_mc_reset_delay_period(unsigned long value);
6261
6362 extern void *edac_align_ptr(void **p, unsigned size, int n_elems);
....@@ -69,35 +68,37 @@
6968 #define edac_debugfs_remove_recursive debugfs_remove_recursive
7069 #define edac_debugfs_remove debugfs_remove
7170 #ifdef CONFIG_EDAC_DEBUG
72
-int edac_debugfs_init(void);
71
+void edac_debugfs_init(void);
7372 void edac_debugfs_exit(void);
74
-int edac_create_debugfs_nodes(struct mem_ctl_info *mci);
73
+void edac_create_debugfs_nodes(struct mem_ctl_info *mci);
7574 struct dentry *edac_debugfs_create_dir(const char *dirname);
7675 struct dentry *
7776 edac_debugfs_create_dir_at(const char *dirname, struct dentry *parent);
7877 struct dentry *
7978 edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent,
8079 void *data, const struct file_operations *fops);
81
-struct dentry *
82
-edac_debugfs_create_x8(const char *name, umode_t mode, struct dentry *parent, u8 *value);
83
-struct dentry *
84
-edac_debugfs_create_x16(const char *name, umode_t mode, struct dentry *parent, u16 *value);
80
+void edac_debugfs_create_x8(const char *name, umode_t mode,
81
+ struct dentry *parent, u8 *value);
82
+void edac_debugfs_create_x16(const char *name, umode_t mode,
83
+ struct dentry *parent, u16 *value);
84
+void edac_debugfs_create_x32(const char *name, umode_t mode,
85
+ struct dentry *parent, u32 *value);
8586 #else
86
-static inline int edac_debugfs_init(void) { return -ENODEV; }
87
+static inline void edac_debugfs_init(void) { }
8788 static inline void edac_debugfs_exit(void) { }
88
-static inline int edac_create_debugfs_nodes(struct mem_ctl_info *mci) { return 0; }
89
+static inline void edac_create_debugfs_nodes(struct mem_ctl_info *mci) { }
8990 static inline struct dentry *edac_debugfs_create_dir(const char *dirname) { return NULL; }
9091 static inline struct dentry *
9192 edac_debugfs_create_dir_at(const char *dirname, struct dentry *parent) { return NULL; }
9293 static inline struct dentry *
9394 edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent,
9495 void *data, const struct file_operations *fops) { return NULL; }
95
-static inline struct dentry *
96
-edac_debugfs_create_x8(const char *name, umode_t mode,
97
- struct dentry *parent, u8 *value) { return NULL; }
98
-static inline struct dentry *
99
-edac_debugfs_create_x16(const char *name, umode_t mode,
100
- struct dentry *parent, u16 *value) { return NULL; }
96
+static inline void edac_debugfs_create_x8(const char *name, umode_t mode,
97
+ struct dentry *parent, u8 *value) { }
98
+static inline void edac_debugfs_create_x16(const char *name, umode_t mode,
99
+ struct dentry *parent, u16 *value) { }
100
+static inline void edac_debugfs_create_x32(const char *name, umode_t mode,
101
+ struct dentry *parent, u32 *value) { }
101102 #endif
102103
103104 /*