aboutsummaryrefslogtreecommitdiffstats
path: root/module/spl/spl-generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/spl/spl-generic.c')
-rw-r--r--module/spl/spl-generic.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c
index b81dabc56..8e0ef9263 100644
--- a/module/spl/spl-generic.c
+++ b/module/spl/spl-generic.c
@@ -253,6 +253,22 @@ ddi_copyout(const void *from, void *to, size_t len, int flags)
}
EXPORT_SYMBOL(ddi_copyout);
+#ifndef HAVE_PUT_TASK_STRUCT
+/*
+ * This is only a stub function which should never be used. The SPL should
+ * never be putting away the last reference on a task structure so this will
+ * not be called. However, we still need to define it so the module does not
+ * have undefined symbol at load time. That all said if this impossible
+ * thing does somehow happen SBUG() immediately so we know about it.
+ */
+void
+__put_task_struct(struct task_struct *t)
+{
+ SBUG();
+}
+EXPORT_SYMBOL(__put_task_struct);
+#endif /* HAVE_PUT_TASK_STRUCT */
+
struct new_utsname *__utsname(void)
{
#ifdef HAVE_INIT_UTSNAME