From: Herton R. Krzesinski herton@redhat.com
Revert "Drop that for now"
This reverts commit 1f80f9253eb2b6a5f63e2053d8e54062791bcff7.
Unfortunately the commit message was cryptic on this one, but it was done probably to handle the same case as was already done with upstream commit 6f303d60534c4 ("gcc-9: silence 'address-of-packed-member' warning").
Thus the addition of -Wno-address-of-packed-member was already done in upstream commit above, we don't need to add it again in the initial list of KBUILD_CFLAGS.
I manually verified a random built file with "make KBUILD_VERBOSE=1 (...)" and checked that we don't have anymore -Wno-address-of-packed-member being passed two times to gcc.
Signed-off-by: Herton R. Krzesinski herton@redhat.com
diff --git a/Makefile b/Makefile index blahblah..blahblah 100644 --- a/Makefile +++ b/Makefile @@ -512,7 +512,6 @@ KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ -Werror=implicit-function-declaration -Werror=implicit-int \ - -Wno-address-of-packed-member \ -Werror=return-type -Wno-format-security \ -std=gnu89 KBUILD_CPPFLAGS := -D__KERNEL__
-- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1283
From: Justin M. Forbes on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1283#note_6369866...
Acked-by: Justin M. Forbes jforbes@fedoraproject.org (via approve button)
From: Patrick Talbert on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1283#note_6371692...
Acked-by: Patrick Talbert ptalbert@redhat.com (via approve button)
kernel@lists.fedoraproject.org