]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc: Fix compile warning in init_thread
authorMichael Neuling <mikey@neuling.org>
Tue, 1 Jul 2008 07:00:39 +0000 (17:00 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 3 Jul 2008 06:58:08 +0000 (16:58 +1000)
Currently we get this warning:
arch/powerpc/kernel/init_task.c:33: warning: missing braces around initializer
arch/powerpc/kernel/init_task.c:33: warning: (near initialization for 'init_task.thread.fpr[0]')

This fixes it.

Noticed by Stephen Rothwell.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/processor.h

index e93e72df4bca2208939de346f12baf3d56e49809..061cd17ba83b550ed93a9cb8d12ac9c0bebf8977 100644 (file)
@@ -222,7 +222,7 @@ struct thread_struct {
        .ksp_limit = INIT_SP_LIMIT, \
        .regs = (struct pt_regs *)INIT_SP - 1, /* XXX bogus, I think */ \
        .fs = KERNEL_DS, \
-       .fpr = {0}, \
+       .fpr = {{0}}, \
        .fpscr = { .val = 0, }, \
        .fpexc_mode = 0, \
 }