Skip to content

Commit e17a256

Browse files
mikeypaulusmack
authored andcommitted
powerpc: Fix compile warning in init_thread
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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent db7f37d commit e17a256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/asm-powerpc/processor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ struct thread_struct {
222222
.ksp_limit = INIT_SP_LIMIT, \
223223
.regs = (struct pt_regs *)INIT_SP - 1, /* XXX bogus, I think */ \
224224
.fs = KERNEL_DS, \
225-
.fpr = {0}, \
225+
.fpr = {{0}}, \
226226
.fpscr = { .val = 0, }, \
227227
.fpexc_mode = 0, \
228228
}

0 commit comments

Comments
 (0)