summaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/harddog.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2023-04-25 10:38:37 +0200
committerRichard Weinberger <richard@nod.at>2023-05-10 00:21:30 +0200
commit73a23d7710331a530e972903318528b75e5a5f58 (patch)
treee2ee9cc203736354c89a686f83839fbd7f87d011 /arch/um/drivers/harddog.h
parentLinux 6.4-rc1 (diff)
downloadlinux-73a23d7710331a530e972903318528b75e5a5f58.tar.xz
linux-73a23d7710331a530e972903318528b75e5a5f58.zip
um: harddog: fix modular build
Since we no longer (want to) export any libc symbols the _user portions of any drivers need to be built into image rather than the module. I missed this for the watchdog. Fix the watchdog accordingly. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/drivers/harddog.h')
-rw-r--r--arch/um/drivers/harddog.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/um/drivers/harddog.h b/arch/um/drivers/harddog.h
new file mode 100644
index 000000000000..6d9ea60e7133
--- /dev/null
+++ b/arch/um/drivers/harddog.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef UM_WATCHDOG_H
+#define UM_WATCHDOG_H
+
+int start_watchdog(int *in_fd_ret, int *out_fd_ret, char *sock);
+void stop_watchdog(int in_fd, int out_fd);
+int ping_watchdog(int fd);
+
+#endif /* UM_WATCHDOG_H */