path: root/Documentation/devicetree/bindings/mips/cpu_irq.txt
diff options
authorMaciej W. Rozycki <>2016-05-26 12:55:45 +0100
committerRalf Baechle <>2016-05-28 12:35:12 +0200
commit94cc36b84acc29f543b48bc5ed786011b112a666 (patch)
tree0693da19d725a35b41593c67335cba5c70e4de99 /Documentation/devicetree/bindings/mips/cpu_irq.txt
parent41cc07be42835a5c35b409af3914b8fcaedd0d72 (diff)
MIPS: VDSO: Build with `-fno-strict-aliasing'
Avoid an aliasing issue causing a build error in VDSO: In file included from include/linux/srcu.h:34:0, from include/linux/notifier.h:15, from ./arch/mips/include/asm/uprobes.h:9, from include/linux/uprobes.h:61, from include/linux/mm_types.h:13, from ./arch/mips/include/asm/vdso.h:14, from arch/mips/vdso/vdso.h:27, from arch/mips/vdso/gettimeofday.c:11: include/linux/workqueue.h: In function 'work_static': include/linux/workqueue.h:186:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] return *work_data_bits(work) & WORK_STRUCT_STATIC; ^ cc1: all warnings being treated as errors make[2]: *** [arch/mips/vdso/gettimeofday.o] Error 1 with a CONFIG_DEBUG_OBJECTS_WORK configuration and GCC 5.2.0. Include `-fno-strict-aliasing' along with compiler options used, as required for kernel code, fixing a problem present since the introduction of VDSO with commit ebb5e78cc634 ("MIPS: Initial implementation of a VDSO"). Thanks to Tejun for diagnosing this properly! Signed-off-by: Maciej W. Rozycki <> Reviewed-by: James Hogan <> Fixes: ebb5e78cc634 ("MIPS: Initial implementation of a VDSO") Cc: Tejun Heo <> Cc: Cc: # v4.3+ Patchwork: Signed-off-by: Ralf Baechle <>
Diffstat (limited to 'Documentation/devicetree/bindings/mips/cpu_irq.txt')
0 files changed, 0 insertions, 0 deletions