[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/8] fix gcc9 build with -Werror=address-of-packed-member
From: |
Michael Chang |
Subject: |
[PATCH v2 0/8] fix gcc9 build with -Werror=address-of-packed-member |
Date: |
Thu, 11 Apr 2019 17:14:01 +0800 |
This patch set attempts to resolve the build failure in openSUSE build
service equipped with new gcc 9 compiler, which has added a new warning
flag -Waddress-of-packed-member.
The new warning performs the check for taking the address of packed
member directly to a pointer variable with higher alignment requirement
and the outcome is risky to memory alignment fault on some architecture
when deferencing it.
Please help to review.
Thanks.
v2: Disable -Werror=address-of-packed-member if its diagnose turns out
to be false positive.
Michael Chang (8):
cpio: disable gcc9 -Waddress-of-packed-member
jfs: disable gcc9 -Waddress-of-packed-member
hfs: fix gcc9 error -Waddress-of-packed-member
hfsplus: fix gcc9 error with -Waddress-of-packed-member
acpi: fix gcc9 error -Waddress-of-packed-member
usbtest: disable gcc9 -Waddress-of-packed-member
chainloader: fix gcc9 error -Waddress-of-packed-member
efi: fix gcc9 error -Waddress-of-packed-member
grub-core/commands/usbtest.c | 9 ++++++
grub-core/fs/cpio_common.c | 9 ++++++
grub-core/fs/hfsplus.c | 57 ++++++++++++++++++++++++++------------
grub-core/fs/jfs.c | 7 +++++
grub-core/kern/efi/efi.c | 27 ++++++++++++++++--
grub-core/loader/efi/chainloader.c | 12 ++++++--
include/grub/acpi.h | 2 +-
include/grub/hfs.h | 2 +-
8 files changed, 100 insertions(+), 25 deletions(-)
--
2.16.4
- [PATCH v2 0/8] fix gcc9 build with -Werror=address-of-packed-member,
Michael Chang <=
- [PATCH v2 7/8] chainloader: fix gcc9 error -Waddress-of-packed-member, Michael Chang, 2019/04/11
- [PATCH v2 3/8] hfs: fix gcc9 error -Waddress-of-packed-member, Michael Chang, 2019/04/11
- [PATCH v2 4/8] hfsplus: fix gcc9 error with -Waddress-of-packed-member, Michael Chang, 2019/04/11
- [PATCH v2 8/8] efi: fix gcc9 error -Waddress-of-packed-member, Michael Chang, 2019/04/11
- [PATCH v2 2/8] jfs: disable gcc9 -Waddress-of-packed-member, Michael Chang, 2019/04/11
- [PATCH v2 5/8] acpi: fix gcc9 error -Waddress-of-packed-member, Michael Chang, 2019/04/11
- [PATCH v2 6/8] usbtest: disable gcc9 -Waddress-of-packed-member, Michael Chang, 2019/04/11
- [PATCH v2 1/8] cpio: disable gcc9 -Waddress-of-packed-member, Michael Chang, 2019/04/11
- Re: [PATCH v2 0/8] fix gcc9 build with -Werror=address-of-packed-member, Daniel Kiper, 2019/04/18