Whamcloud - gitweb
LU-5829 libcfs: remove unnecessary EXPORT_SYMBOL
[fs/lustre-release.git] / libcfs / libcfs / watchdog.c
index fdb9a8c..514bcf9 100644 (file)
@@ -40,6 +40,7 @@
 
 #define DEBUG_SUBSYSTEM S_LNET
 
+#include <linux/kthread.h>
 #include <libcfs/libcfs.h>
 #include "tracefile.h"
 
@@ -202,6 +203,15 @@ static void lcw_dump_stack(struct lc_watchdog *lcw)
         }
 }
 
+/*
+ * Provided watchdog handlers
+ */
+
+static void lc_watchdog_dumplog(pid_t pid, void *data)
+{
+       libcfs_debug_dumplog_internal((void *)((long_ptr_t)pid));
+}
+
 static int lcw_dispatch_main(void *data)
 {
         int                 rc = 0;
@@ -477,16 +487,6 @@ void lc_watchdog_delete(struct lc_watchdog *lcw)
 }
 EXPORT_SYMBOL(lc_watchdog_delete);
 
-/*
- * Provided watchdog handlers
- */
-
-void lc_watchdog_dumplog(pid_t pid, void *data)
-{
-        libcfs_debug_dumplog_internal((void *)((long_ptr_t)pid));
-}
-EXPORT_SYMBOL(lc_watchdog_dumplog);
-
 #else   /* !defined(WITH_WATCHDOG) */
 
 struct lc_watchdog *lc_watchdog_add(int timeout,