Skip to content

Commit 3fd84a4

Browse files
arndbhdeller
authored andcommitted
parisc: use -fno-strict-aliasing for decompressor
An experimental patch series of mine reworks how warnings are processed in Kbuild. A side effect is a new warning about a harmless aliasing rule violation in an inline function: In file included from include/linux/rhashtable-types.h:15:0, from include/linux/ipc.h:7, from include/uapi/linux/sem.h:5, from include/linux/sem.h:5, from include/linux/sched.h:15, from include/linux/uaccess.h:6, from arch/parisc/boot/compressed/misc.c:7: include/linux/workqueue.h: In function 'work_static': include/linux/workqueue.h:212:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] return *work_data_bits(work) & WORK_STRUCT_STATIC; Make the decompressor use -fno-strict-aliasing like the rest of the kernel for consistency, and to ensure this warning never makes it into a release. Reported-by: kbuild test robot <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 0d341e0 commit 3fd84a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/parisc/boot/compressed/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ targets += real2.S firmware.c
1616

1717
KBUILD_CFLAGS := -D__KERNEL__ -O2 -DBOOTLOADER
1818
KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
19+
KBUILD_CFLAGS += -fno-strict-aliasing
1920
KBUILD_CFLAGS += $(cflags-y) -fno-delete-null-pointer-checks -fno-builtin-printf
2021
KBUILD_CFLAGS += -fno-PIE -mno-space-regs -mdisable-fpregs -Os
2122
ifndef CONFIG_64BIT

0 commit comments

Comments
 (0)