From 66e5f8827de614e19ef75bcf32cf4a28417eecfd Mon Sep 17 00:00:00 2001 From: Stricted Date: Sat, 19 Jun 2021 22:46:42 +0000 Subject: [PATCH] treewide: Remove unknown warning build flags Change-Id: Ia6ebfc9a9438a0aff23a58fbb660b4e10f144db4 --- drivers/amlogic/Makefile | 8 +------- drivers/amlogic/dvb/demux/Makefile | 4 ++-- sound/soc/amlogic/Makefile | 3 --- sound/soc/codecs/amlogic/Makefile | 3 --- 4 files changed, 3 insertions(+), 15 deletions(-) diff --git a/drivers/amlogic/Makefile b/drivers/amlogic/Makefile index 12cf946e428e..aa16ec4c3002 100644 --- a/drivers/amlogic/Makefile +++ b/drivers/amlogic/Makefile @@ -7,18 +7,12 @@ ## Do not change. ########################################## -ifndef CONFIG_KASAN -KBUILD_CFLAGS += -Wlarger-than=28792 -KBUILD_CFLAGS += -Wstack-usage=1956 -else +ifdef CONFIG_KASAN ifeq ($(call cc-ifversion, -lt, 0500, y), y) $(error -----GCC VERSION TOO SMALL FOR KASAN -----) endif endif -# These 2 marked sentence is just for generate warning messages -#KBUILD_CFLAGS += -Wno-error=larger-than=28792 -#KBUILD_CFLAGS += -Wno-error=stack-usage=1856 obj-$(CONFIG_CPU_FREQ) += cpufreq/ diff --git a/drivers/amlogic/dvb/demux/Makefile b/drivers/amlogic/dvb/demux/Makefile index 5eac33aff3b2..6cced9990e52 100644 --- a/drivers/amlogic/dvb/demux/Makefile +++ b/drivers/amlogic/dvb/demux/Makefile @@ -4,8 +4,8 @@ obj-$(CONFIG_AMLOGIC_DVB_DMX) += dvb_demux.o -#ccflags-y += -I$(srctree)/drivers/media/dvb-core -I$(srctree)/drivers/gpio -I$(srctree)/include -fno-tree-scev-cprop -ccflags-y += -I$(srctree)/drivers/media/dvb-core -fno-tree-scev-cprop +#ccflags-y += -I$(srctree)/drivers/media/dvb-core -I$(srctree)/drivers/gpio -I$(srctree)/include +ccflags-y += -I$(srctree)/drivers/media/dvb-core dvb_demux-objs += aml_dvb.o dvb_demux-objs += aml_dsc.o diff --git a/sound/soc/amlogic/Makefile b/sound/soc/amlogic/Makefile index 98e8bf6bcc6b..db841bb1fa18 100644 --- a/sound/soc/amlogic/Makefile +++ b/sound/soc/amlogic/Makefile @@ -1,6 +1,3 @@ -KBUILD_CFLAGS += -Wlarger-than=28792 -KBUILD_CFLAGS += -Wstack-usage=1856 - obj-$(CONFIG_AMLOGIC_SND_SOC) += meson/ obj-$(CONFIG_AMLOGIC_SND_SOC) += auge/ obj-$(CONFIG_AMLOGIC_SND_SOC) += common/ diff --git a/sound/soc/codecs/amlogic/Makefile b/sound/soc/codecs/amlogic/Makefile index 348a63471f87..d616a3696f29 100644 --- a/sound/soc/codecs/amlogic/Makefile +++ b/sound/soc/codecs/amlogic/Makefile @@ -1,6 +1,3 @@ -KBUILD_CFLAGS += -Wlarger-than=28792 -KBUILD_CFLAGS += -Wstack-usage=1856 - #Amlogic snd-soc-dummy_codec-objs := dummy_codec.o snd-soc-pdm-dummy-objs := pdm_dummy.o -- 2.20.1