summary refs log tree commit diff
path: root/arch/sparc/include/asm/irq_32.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2017-09-10 15:20:03 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-09-10 09:55:35 -0700
commit4c2b5e0fab602b468ce4d8c4d78c99f2caa79a3e (patch)
treeb84000055f005cff95fca369b2f925492ddd42c8 /arch/sparc/include/asm/irq_32.h
parent7898f79654698dcea5a0876785796de67d527ee7 (diff)
downloadlinux-4c2b5e0fab602b468ce4d8c4d78c99f2caa79a3e.tar.gz
m68k: Add braces to __pmd(x) initializer to kill compiler warning
With gcc 4.1.2:

    include/linux/swapops.h: In function ‘swp_entry_to_pmd’:
    include/linux/swapops.h:294: warning: missing braces around initializer
    include/linux/swapops.h:294: warning: (near initialization for ‘(anonymous).pmd’)

Due to a GCC zero initializer bug (#53119), the standard "(pmd_t){ 0 }"
initializer is not accepted by all GCC versions.
In addition, on m68k pmd_t is an array instead of a single value, so we
need "(pmd_t){ { 0 }, }" instead of "(pmd_t){ 0 }".

Based on commit 9157259d16a8 ("mm: add pmd_t initializer __pmd() to
work around a GCC bug.") for sparc32.

Fixes: 616b8371539a ("mm: thp: enable thp migration in generic path")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sparc/include/asm/irq_32.h')
0 files changed, 0 insertions, 0 deletions