[ubicom32]: add 2.6.32 support
[openwrt/svn-archive/archive.git] / target / linux / ubicom32 / files / arch / ubicom32 / kernel / init_task.c
index ff0634424d657a76730e2cc5698ae235273c4f16..58baf52709cc14f38bf8fd6d5770caa8106590c4 100644 (file)
 #include <linux/mqueue.h>
 #include <linux/uaccess.h>
 #include <asm/pgtable.h>
+#include <linux/version.h>
 
 ///static struct fs_struct init_fs = INIT_FS;
 static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
 static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
 struct mm_struct init_mm = INIT_MM(init_mm);
 EXPORT_SYMBOL(init_mm);
+#endif
 
 /*
  * Initial task structure.