kbuild: Silence noisy GCC warnings up to GCC 10

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Change-Id: I400efda38e7909c6b86847f4abe0b381c1f1cb72
Signed-off-by: starlight5234 <starlight5234@protonmail.ch>
This commit is contained in:
Sultan Alsawaf 2020-11-28 19:56:52 -08:00 committed by Gagan Malvi
parent d0b023cafc
commit 467e04cbac
No known key found for this signature in database
GPG key ID: B932A7CE71E9198F

View file

@ -692,6 +692,13 @@ KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation)
KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow)
KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context)
KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
KBUILD_CFLAGS += $(call cc-disable-warning, attribute-alias)
KBUILD_CFLAGS += $(call cc-disable-warning, packed-not-aligned)
KBUILD_CFLAGS += $(call cc-disable-warning, psabi)
KBUILD_CFLAGS += $(call cc-disable-warning, restrict)
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-overflow)
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
KBUILD_CFLAGS += $(call cc-disable-warning, zero-length-bounds)
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os