diff options
author | Borislav Petkov <bp@suse.de> | 2015-09-22 11:56:04 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2015-09-22 12:29:46 +0200 |
commit | 7ac8bf9bc9ba82aea763ef30671a34c6a2a39922 (patch) | |
tree | 7aa7d941e608c6376f5564e63b1042680e55fb92 /drivers/edac/edac_module.h | |
parent | 1f93e4a96c9109378204c147b3eec0d0e8100fde (diff) | |
download | linux-7ac8bf9bc9ba82aea763ef30671a34c6a2a39922.tar.gz linux-7ac8bf9bc9ba82aea763ef30671a34c6a2a39922.tar.bz2 linux-7ac8bf9bc9ba82aea763ef30671a34c6a2a39922.zip |
EDAC: Carve out debugfs functionality
... into a separate compilation unit and drop a couple of
CONFIG_EDAC_DEBUG ifdefferies. Rename edac_create_debug_nodes() to
edac_create_debugfs_nodes(), while at it.
No functionality change.
Cc: <linux-edac@vger.kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/edac_module.h')
-rw-r--r-- | drivers/edac/edac_module.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/edac/edac_module.h b/drivers/edac/edac_module.h index 26ecc52e073d..79a6c6e20819 100644 --- a/drivers/edac/edac_module.h +++ b/drivers/edac/edac_module.h @@ -63,12 +63,14 @@ extern void *edac_align_ptr(void **p, unsigned size, int n_elems); #ifdef CONFIG_EDAC_DEBUG int edac_debugfs_init(void); void edac_debugfs_exit(void); +int edac_create_debugfs_nodes(struct mem_ctl_info *mci); #else static inline int edac_debugfs_init(void) { return -ENODEV; } static inline void edac_debugfs_exit(void) {} +static inline int edac_create_debugfs_nodes(struct mem_ctl_info *mci) { return 0; } #endif /* |