[PATCH 5/7] Allow closure debugging without CONFIG_DEBUG_FS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes the build, although closure debugging is not much use without
it.
---
 block/bcache_util.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/block/bcache_util.c b/block/bcache_util.c
index 19846fb..b014e8c 100644
--- a/block/bcache_util.c
+++ b/block/bcache_util.c
@@ -531,7 +531,9 @@ module_exit(closure_debug_exit);
 static int __init closure_debug_init(void)
 {
 	spin_lock_init(&closure_lock);
+#ifdef CONFIG_DEBUG_FS
 	debug = debugfs_create_file("closures", 0400, NULL, NULL, &debug_ops);
+#endif
 	return 0;
 }
 
-- 
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux