diff mbox

blk-mq: fix compilation in !CONFIG_DEBUG_FS case

Message ID 9980eb1d180dc482953b8e473f607bec7411e2b1.1485548245.git.osandov@fb.com (mailing list archive)
State New, archived
Headers show

Commit Message

Omar Sandoval Jan. 27, 2017, 8:18 p.m. UTC
From: Omar Sandoval <osandov@fb.com>

My bad for not testing it.

Signed-off-by: Omar Sandoval <osandov@fb.com>
---
 block/blk-mq.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/block/blk-mq.h b/block/blk-mq.h
index 57cdbf6c0cee..f7b41dc5eb60 100644
--- a/block/blk-mq.h
+++ b/block/blk-mq.h
@@ -95,21 +95,22 @@  static inline void blk_mq_debugfs_init(void)
 {
 }
 
-int blk_mq_debugfs_register(struct request_queue *q, const char *name);
+static inline int blk_mq_debugfs_register(struct request_queue *q,
+					  const char *name)
 {
 	return 0;
 }
 
-void blk_mq_debugfs_unregister(struct request_queue *q)
+static inline void blk_mq_debugfs_unregister(struct request_queue *q)
 {
 }
 
-int blk_mq_debugfs_register_hctxs(struct request_queue *q)
+static inline int blk_mq_debugfs_register_hctxs(struct request_queue *q)
 {
 	return 0;
 }
 
-void blk_mq_debugfs_unregister_hctxs(struct request_queue *q)
+static inline void blk_mq_debugfs_unregister_hctxs(struct request_queue *q)
 {
 }
 #endif