Commit 9d4f9413 authored by Greg Ungerer's avatar Greg Ungerer

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: default avatarGreg Ungerer <gerg@uclinux.org>
parent 4f308e35
...@@ -72,10 +72,10 @@ struct thread_struct { ...@@ -72,10 +72,10 @@ struct thread_struct {
unsigned char fpstate[FPSTATESIZE]; /* floating point state */ unsigned char fpstate[FPSTATESIZE]; /* floating point state */
}; };
#define INIT_THREAD { \ #define INIT_THREAD { \
sizeof(init_stack) + (unsigned long) init_stack, 0, \ .ksp = sizeof(init_stack) + (unsigned long) init_stack, \
PS_S, __KERNEL_DS, \ .sr = PS_S, \
{0, 0}, 0, {0,}, {0, 0, 0}, {0,}, \ .fs = __KERNEL_DS, \
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment