| .. | .. |
|---|
| 28 | 28 | extern int edac_create_sysfs_mci_device(struct mem_ctl_info *mci, |
|---|
| 29 | 29 | const struct attribute_group **groups); |
|---|
| 30 | 30 | extern void edac_remove_sysfs_mci_device(struct mem_ctl_info *mci); |
|---|
| 31 | | -void edac_unregister_sysfs(struct mem_ctl_info *mci); |
|---|
| 32 | 31 | extern int edac_get_log_ue(void); |
|---|
| 33 | 32 | extern int edac_get_log_ce(void); |
|---|
| 34 | 33 | extern int edac_get_panic_on_ue(void); |
|---|
| .. | .. |
|---|
| 69 | 68 | #define edac_debugfs_remove_recursive debugfs_remove_recursive |
|---|
| 70 | 69 | #define edac_debugfs_remove debugfs_remove |
|---|
| 71 | 70 | #ifdef CONFIG_EDAC_DEBUG |
|---|
| 72 | | -int edac_debugfs_init(void); |
|---|
| 71 | +void edac_debugfs_init(void); |
|---|
| 73 | 72 | 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); |
|---|
| 75 | 74 | struct dentry *edac_debugfs_create_dir(const char *dirname); |
|---|
| 76 | 75 | struct dentry * |
|---|
| 77 | 76 | edac_debugfs_create_dir_at(const char *dirname, struct dentry *parent); |
|---|
| 78 | 77 | struct dentry * |
|---|
| 79 | 78 | edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent, |
|---|
| 80 | 79 | 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); |
|---|
| 85 | 86 | #else |
|---|
| 86 | | -static inline int edac_debugfs_init(void) { return -ENODEV; } |
|---|
| 87 | +static inline void edac_debugfs_init(void) { } |
|---|
| 87 | 88 | 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) { } |
|---|
| 89 | 90 | static inline struct dentry *edac_debugfs_create_dir(const char *dirname) { return NULL; } |
|---|
| 90 | 91 | static inline struct dentry * |
|---|
| 91 | 92 | edac_debugfs_create_dir_at(const char *dirname, struct dentry *parent) { return NULL; } |
|---|
| 92 | 93 | static inline struct dentry * |
|---|
| 93 | 94 | edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent, |
|---|
| 94 | 95 | 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) { } |
|---|
| 101 | 102 | #endif |
|---|
| 102 | 103 | |
|---|
| 103 | 104 | /* |
|---|