2003-06-19 19:37:50

by David Mosberger

[permalink] [raw]
Subject: init_thread_union really needed by modules?

Is it really necessary for init_thread_union to be exported to
modules? If not, would you mind applying the attached patch. (We
haven't exported the symbol on ia64 for ages, with no apparent ill
effects.)

Furthermore, if this patch can be applied, we should be able to make
the init_thread_union local to arch/ARCH/kernel/init_task.c and
that in turn would let us remove its declaration from
include/linux/sched.h alltogether (i.e., no more ugly #ifdefs).

Thanks,

--david

===== kernel/ksyms.c 1.203 vs edited =====
--- 1.203/kernel/ksyms.c Wed Jun 11 19:53:38 2003
+++ edited/kernel/ksyms.c Thu Jun 19 12:46:35 2003
@@ -592,7 +592,6 @@
/* init task, for moving kthread roots - ought to export a function ?? */

EXPORT_SYMBOL(init_task);
-EXPORT_SYMBOL(init_thread_union);

EXPORT_SYMBOL(tasklist_lock);
EXPORT_SYMBOL(find_task_by_pid);