init_thread_union really needed by modules?

From: David Mosberger (davidm@napali.hpl.hp.com)
Date: Thu Jun 19 2003 - 14:51:45 EST


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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 23 2003 - 22:00:30 EST