From ef9fb88a64d77b734d50fd1e1298af37a019d5d9 Mon Sep 17 00:00:00 2001 From: Prakruthi Deepak Heragu Date: Wed, 6 May 2020 23:37:19 -0700 Subject: [PATCH] haven: Fix compilation error when DEBUG_FS is disabled Return proper value when DEBUG_FS is disabled. Change-Id: I6d46dcac6c6321e1a19468a81906e5f98976d29b Signed-off-by: Prakruthi Deepak Heragu --- drivers/virt/haven/hh_ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virt/haven/hh_ctrl.c b/drivers/virt/haven/hh_ctrl.c index 9f27408301d4..62c6cee60633 100644 --- a/drivers/virt/haven/hh_ctrl.c +++ b/drivers/virt/haven/hh_ctrl.c @@ -163,7 +163,7 @@ static void __exit hh_dbgfs_unregister(void) } #else /* !defined (CONFIG_DEBUG_FS) */ static inline int hh_dbgfs_register(void) { return 0; } -static inline void hh_dbgfs_unregister(void) { return 0; } +static inline void hh_dbgfs_unregister(void) { return; } #endif static int __init hh_ctrl_init(void)