aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2004-08-22 22:32:18 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-22 22:32:18 -0700
commitcab7447082fbfa064ef466b061c40f79b1638f8e (patch)
tree63f6163138303c7977a39020d8fb25747250f306 /include
parentb83f8c40b9837710576141d002dff2fd4132bdf0 (diff)
downloadhistory-cab7447082fbfa064ef466b061c40f79b1638f8e.tar.gz
[PATCH] ppc64: C99 initializers in INIT_THREAD
Fairly trivial PPC64 cleanup. This patch makes the ppc64 INIT_THREAD #define use C99 initializers, which will make it less likely to get broken if we need to change thread_struct. Signed-off-by: David Gibson <dwg@au1.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc64/processor.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/asm-ppc64/processor.h b/include/asm-ppc64/processor.h
index d5e383732c5cd3..13d3b96708f259 100644
--- a/include/asm-ppc64/processor.h
+++ b/include/asm-ppc64/processor.h
@@ -559,12 +559,12 @@ struct thread_struct {
#define INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack)
#define INIT_THREAD { \
- INIT_SP, /* ksp */ \
- (struct pt_regs *)INIT_SP - 1, /* regs */ \
- KERNEL_DS, /*fs*/ \
- {0}, /* fpr */ \
- 0, /* fpscr */ \
- MSR_FE0|MSR_FE1, /* fpexc_mode */ \
+ .ksp = INIT_SP, \
+ .regs = (struct pt_regs *)INIT_SP - 1, \
+ .fs = KERNEL_DS, \
+ .fpr = {0}, \
+ .fpscr = 0, \
+ .fpexc_mode = MSR_FE0|MSR_FE1, \
}
/*