summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2009-06-11 13:05:00 +1000
committerGreg Ungerer <gerg@uclinux.org>2009-06-11 13:09:11 +1000
commit9d4f94135385b565e2ce4a37f71b53d0fd3664e8 (patch)
tree690ad6fa2fa08793c861745db9d1a35a4648fb34
parent4f308e35a9bde9d6b671e8409157edb9065f117c (diff)
downloadtalos-obmc-linux-9d4f94135385b565e2ce4a37f71b53d0fd3664e8.tar.gz
talos-obmc-linux-9d4f94135385b565e2ce4a37f71b53d0fd3664e8.zip
m68knommu: enumerate INIT_THREAD fields properly
Use proper field value setting init INIT_THREAD macro. Fixes this: arch/m68knommu/kernel/init_task.c:27: warning: excess elements in array initializer arch/m68knommu/kernel/init_task.c:27: warning: (near initialization for ‘init_task.thread.fpstate’) Signed-off-by: Greg Ungerer <gerg@uclinux.org>
-rw-r--r--arch/m68k/include/asm/processor_no.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/m68k/include/asm/processor_no.h b/arch/m68k/include/asm/processor_no.h
index 91cba18acdd3..7a1e0ba35f5a 100644
--- a/arch/m68k/include/asm/processor_no.h
+++ b/arch/m68k/include/asm/processor_no.h
@@ -72,10 +72,10 @@ struct thread_struct {
unsigned char fpstate[FPSTATESIZE]; /* floating point state */
};
-#define INIT_THREAD { \
- sizeof(init_stack) + (unsigned long) init_stack, 0, \
- PS_S, __KERNEL_DS, \
- {0, 0}, 0, {0,}, {0, 0, 0}, {0,}, \
+#define INIT_THREAD { \
+ .ksp = sizeof(init_stack) + (unsigned long) init_stack, \
+ .sr = PS_S, \
+ .fs = __KERNEL_DS, \
}
/*
OpenPOWER on IntegriCloud